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 Summary
ConstructorDescriptionCategoryLabelEntity
(Comparable key, Shape area, String toolTipText, String urlText) Creates a new entity. -
Method Summary
Methods inherited from class org.jfree.chart.entity.ChartEntity
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
-
Constructor Details
-
CategoryLabelEntity
Creates a new entity.- Parameters:
key
- the category key.area
- the hotspot.toolTipText
- the tool tip text.urlText
- the URL text.
-
-
Method Details
-
getKey
Returns the category key.- Returns:
- The category key.
-
equals
Tests this instance for equality with an arbitrary object.- Overrides:
equals
in classChartEntity
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()Returns a hash code for this instance.- Overrides:
hashCode
in classChartEntity
- Returns:
- A hash code.
-
toString
Returns a string representation of this entity. This is primarily useful for debugging.- Overrides:
toString
in classChartEntity
- Returns:
- A string representation of this entity.
-