Module org.jfree.chart
Package org.jfree.chart.entity
Class CategoryLabelEntity<C extends Comparable<C>>
- java.lang.Object
-
- org.jfree.chart.entity.ChartEntity
-
- org.jfree.chart.entity.TickLabelEntity
-
- org.jfree.chart.entity.CategoryLabelEntity<C>
-
- Type Parameters:
C- the type for the category keys.
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable
public class CategoryLabelEntity<C extends Comparable<C>> extends TickLabelEntity
An entity to represent the labels on aCategoryAxis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CategoryLabelEntity(C key, Shape area, 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 this instance for equality with an arbitrary object.CgetKey()Returns the category key.inthashCode()Returns a hash code for this instance.StringtoString()Returns a string representation of this entity.-
Methods inherited from class org.jfree.chart.entity.ChartEntity
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
-
-
-
-
Constructor Detail
-
CategoryLabelEntity
public CategoryLabelEntity(C key, Shape area, String toolTipText, String urlText)
Creates a new entity.- Parameters:
key- the category key.area- the hotspot.toolTipText- the tool tip text.urlText- the URL text.
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code for this instance.- Overrides:
hashCodein classChartEntity- Returns:
- A hash code.
-
toString
public String toString()
Returns a string representation of this entity. This is primarily useful for debugging.- Overrides:
toStringin classChartEntity- Returns:
- A string representation of this entity.
-
-