Package org.jfree.chart.entity
Class CategoryLabelEntity
java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.TickLabelEntity
org.jfree.chart.entity.CategoryLabelEntity
- All Implemented Interfaces:
- Serializable,- Cloneable,- PublicCloneable
An entity to represent the labels on a 
CategoryAxis.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCategoryLabelEntity(Comparable key, Shape area, String toolTipText, String urlText) Creates a new entity.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanEnsures symmetry between super/subclass implementations of equals.booleanTests this instance for equality with an arbitrary object.getKey()Returns the category key.inthashCode()Returns a hash code for this instance.toString()Returns a string representation of this entity.Methods inherited from class org.jfree.chart.entity.ChartEntityclone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
- 
Constructor Details- 
CategoryLabelEntityCreates a new entity.- Parameters:
- key- the category key (- nullnot permitted).
- area- the hotspot.
- toolTipText- the tool tip text.
- urlText- the URL text.
 
 
- 
- 
Method Details- 
getKeyReturns the category key.- Returns:
- The category key.
 
- 
equalsTests this instance for equality with an arbitrary object.- Overrides:
- equalsin class- ChartEntity
- Parameters:
- obj- the object (- nullpermitted).
- Returns:
- A boolean.
 
- 
canEqualEnsures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.- Overrides:
- canEqualin class- ChartEntity
- Parameters:
- other- Object
- Returns:
- true ONLY if the parameter is THIS class type
 
- 
hashCodeReturns a hash code for this instance.- Overrides:
- hashCodein class- ChartEntity
- Returns:
- A hash code.
 
- 
toStringReturns a string representation of this entity. This is primarily useful for debugging.- Overrides:
- toStringin class- ChartEntity
- Returns:
- A string representation of this entity.
 
 
-