afreechart/src/main/java/org/afree/chart/plot/Plot.java
/**
     * Creates a plot entity that contains a reference to the plot and the data
     * area as shape.
     * 
     * @param dataArea
     *            the data area used as hot spot for the entity.
     * @param plotState
     *            the plot rendering info containing a reference to the
     *            EntityCollection.
     * @param toolTip
     *            the tool tip (defined in the respective Plot subclass) (
     *            <code>null</code> permitted).
     * @param urlText
     *            the url (defined in the respective Plot subclass) (
     *            <code>null</code> permitted).
     * 
     * @since JFreeChart 1.0.13
     */
Creates a plot entity that contains a reference to the plot and the data
area as shape.

@param dataArea
the data area used as hot spot for the entity.
@param plotState
the plot rendering info containing a reference to the
EntityCollection.
@param toolTip
the tool tip (defined in the respective Plot subclass) (
null permitted).
@param urlText
the url (defined in the respective Plot subclass) (
null permitted).


Creates a plot entity that contains a reference to the plot and the data area as shape . @param dataArea the data area used as hot spot for the entity . @param plotState the plot rendering info containing a reference to the EntityCollection . @param toolTip the tool tip ( defined in the respective Plot subclass ) ( null permitted ) . @param urlText the url ( defined in the respective Plot subclass ) ( null permitted ) .
protected void createAndAddEntity(RectShape dataArea,
            PlotRenderingInfo plotState, String toolTip, String urlText) {
        if (plotState != null && plotState.getOwner() != null) {
            EntityCollection e = plotState.getOwner().getEntityCollection();
            if (e != null) {
                e.add(new PlotEntity(dataArea, this, toolTip, urlText));
            }
        }
    }
protected void createAndAddEntity ( RectShape dataArea , PlotRenderingInfo plotState , String toolTip , String urlText ) { if ( plotState != null && plotState . getOwner ( ) != null ) { EntityCollection e = plotState . getOwner ( ) . getEntityCollection ( ) ; if ( e != null ) { e . add ( new PlotEntity ( dataArea , this , toolTip , urlText ) ) ; } } }
Creates a plot entity that contains a reference to the plot and the data
 area as shape.
Creates a plot entity that contains a reference to the plot and the data area as shape .