main/plugins/org.talend.libraries.jfreechart.jars/lib_src/jfreechart-1.0.12/source/org/jfree/chart/annotations/AbstractXYAnnotation.java
/**
     * A utility method for adding an {@link XYAnnotationEntity} to
     * a {@link PlotRenderingInfo} instance.
     *
     * @param info  the plot rendering info (<code>null</code> permitted).
     * @param hotspot  the hotspot area.
     * @param rendererIndex  the renderer index.
     * @param toolTipText  the tool tip text.
     * @param urlText  the URL text.
     */
A utility method for adding an  XYAnnotationEntity to
a  PlotRenderingInfo instance.

@param info  the plot rendering info (null permitted).
@param hotspot  the hotspot area.
@param rendererIndex  the renderer index.
@param toolTipText  the tool tip text.
@param urlText  the URL text.
A utility method for adding an XYAnnotationEntity to a PlotRenderingInfo instance . @param info the plot rendering info ( null permitted ) . @param hotspot the hotspot area . @param rendererIndex the renderer index . @param toolTipText the tool tip text . @param urlText the URL text .
protected void addEntity(PlotRenderingInfo info,
                             Shape hotspot, int rendererIndex,
                             String toolTipText, String urlText) {
        if (info == null) {
            return;
        }
        EntityCollection entities = info.getOwner().getEntityCollection();
        if (entities == null) {
            return;
        }
        XYAnnotationEntity entity = new XYAnnotationEntity(hotspot,
                rendererIndex, toolTipText, urlText);
        entities.add(entity);
    }
protected void addEntity ( PlotRenderingInfo info , Shape hotspot , int rendererIndex , String toolTipText , String urlText ) { if ( info == null ) { return ; } EntityCollection entities = info . getOwner ( ) . getEntityCollection ( ) ; if ( entities == null ) { return ; } XYAnnotationEntity entity = new XYAnnotationEntity ( hotspot , rendererIndex , toolTipText , urlText ) ; entities . add ( entity ) ; }
A utility method for adding an {@link XYAnnotationEntity} to
 a {@link PlotRenderingInfo} instance.
A utility method for adding an { @link XYAnnotationEntity } to a { @link PlotRenderingInfo } instance .