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:
java.io.Serializable,java.lang.Cloneable,PublicCloneable
public class CategoryLabelEntity extends TickLabelEntity
An entity to represent the labels on aCategoryAxis.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ComparablekeyThe category key.
-
Constructor Summary
Constructors Constructor Description CategoryLabelEntity(java.lang.Comparable key, java.awt.Shape area, java.lang.String toolTipText, java.lang.String urlText)Creates a new entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEqual(java.lang.Object other)Ensures symmetry between super/subclass implementations of equals.booleanequals(java.lang.Object obj)Tests this instance for equality with an arbitrary object.java.lang.ComparablegetKey()Returns the category key.inthashCode()Returns a hash code for this instance.java.lang.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(java.lang.Comparable key, java.awt.Shape area, java.lang.String toolTipText, java.lang.String urlText)Creates a new entity.- Parameters:
key- the category key (nullnot permitted).area- the hotspot.toolTipText- the tool tip text.urlText- the URL text.
-
-
Method Detail
-
getKey
public java.lang.Comparable getKey()
Returns the category key.- Returns:
- The category key.
-
equals
public boolean equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
canEqual
public boolean canEqual(java.lang.Object other)
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
public int hashCode()
Returns a hash code for this instance.- Overrides:
hashCodein classChartEntity- Returns:
- A hash code.
-
toString
public java.lang.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.
-
-