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.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
- public class CategoryLabelEntity
- extends TickLabelEntity
An entity to represent the labels on a CategoryAxis
.
- Since:
- 1.0.3
- See Also:
- Serialized Form
Constructor Summary |
CategoryLabelEntity(java.lang.Comparable key,
java.awt.Shape area,
java.lang.String toolTipText,
java.lang.String urlText)
Creates a new entity. |
Method Summary |
java.lang.Comparable |
getKey()
Returns the category key. |
java.lang.String |
toString()
Returns a string representation of this entity. |
Methods inherited from class org.jfree.chart.entity.ChartEntity |
clone, equals, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.area
- the hotspot.toolTipText
- the tool tip text.urlText
- the URL text.
getKey
public java.lang.Comparable getKey()
- Returns the category key.
- Returns:
- The category key.
toString
public java.lang.String toString()
- Returns a string representation of this entity. This is primarily
useful for debugging.
- Overrides:
toString
in class ChartEntity
- Returns:
- A string representation of this entity.