Package org.jfree.chart.entity
Class XYAnnotationEntity
java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.XYAnnotationEntity
- All Implemented Interfaces:
Serializable
,Cloneable
,PublicCloneable
A chart entity that represents an annotation on an
XYPlot
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The renderer index.private static final long
For serialization. -
Constructor Summary
ConstructorsConstructorDescriptionXYAnnotationEntity
(Shape hotspot, int rendererIndex, String toolTipText, String urlText) Creates a new entity. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests the entity for equality with an arbitrary object.int
Returns the renderer index.void
setRendererIndex
(int index) Sets the renderer index.Methods inherited from class org.jfree.chart.entity.ChartEntity
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, hashCode, setArea, setToolTipText, setURLText, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
rendererIndex
private int rendererIndexThe renderer index.
-
-
Constructor Details
-
XYAnnotationEntity
Creates a new entity.- Parameters:
hotspot
- the area.rendererIndex
- the rendererIndex (zero-based index).toolTipText
- the tool tip text.urlText
- the URL text for HTML image maps.
-
-
Method Details
-
getRendererIndex
public int getRendererIndex()Returns the renderer index.- Returns:
- The renderer index.
-
setRendererIndex
public void setRendererIndex(int index) Sets the renderer index.- Parameters:
index
- the item index (zero-based).
-
equals
Tests the entity for equality with an arbitrary object.- Overrides:
equals
in classChartEntity
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-