- java.lang.Object
-
- org.jfree.chart.entity.ChartEntity
-
- org.jfree.chart.entity.XYAnnotationEntity
-
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable
public class XYAnnotationEntity extends ChartEntity implements Serializable
A chart entity that represents an annotation on anXYPlot.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XYAnnotationEntity(Shape hotspot, int rendererIndex, String toolTipText, String urlText)Creates a new entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests the entity for equality with an arbitrary object.intgetRendererIndex()Returns the renderer index.voidsetRendererIndex(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
-
-
-
-
Constructor Detail
-
XYAnnotationEntity
public XYAnnotationEntity(Shape hotspot, int rendererIndex, String toolTipText, String urlText)
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 Detail
-
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
public boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
-