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:
-
Constructor Summary
ConstructorsConstructorDescriptionXYAnnotationEntity(Shape hotspot, int rendererIndex, String toolTipText, String urlText) Creates a new entity. -
Method Summary
Modifier and TypeMethodDescriptionbooleanEnsures symmetry between super/subclass implementations of equals.booleanTests the entity for equality with an arbitrary object.intReturns the renderer index.inthashCode()Returns a hash code for this instance.voidsetRendererIndex(int index) Sets the renderer index.Methods inherited from class org.jfree.chart.entity.ChartEntity
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText, toString
-
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
Returns the renderer index.- Returns:
- The renderer index.
-
setRendererIndex
Sets the renderer index.- Parameters:
index- the item index (zero-based).
-
equals
Tests the entity for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
canEqual
Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.- Overrides:
canEqualin classChartEntity- Parameters:
other- Object- Returns:
- true ONLY if the parameter is THIS class type
-
hashCode
Description copied from class:ChartEntityReturns a hash code for this instance.- Overrides:
hashCodein classChartEntity- Returns:
- A hash code.
-