org.jfree.chart.entity

Class CategoryLabelEntity

Implemented Interfaces:
Cloneable, PublicCloneable, Serializable

public class CategoryLabelEntity
extends TickLabelEntity

An entity to represent the labels on a CategoryAxis.
Since:
1.0.3

Constructor Summary

CategoryLabelEntity(Comparable key, Shape area, String toolTipText, String urlText)
Creates a new entity.

Method Summary

boolean
equals(Object obj)
Tests this instance for equality with an arbitrary object.
Comparable
getKey()
Returns the category key.
int
hashCode()
Returns a hash code for this instance.
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, hashCode, setArea, setToolTipText, setURLText, toString

Constructor Details

CategoryLabelEntity

public CategoryLabelEntity(Comparable 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 Details

equals

public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
Overrides:
equals in interface ChartEntity
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

getKey

public Comparable getKey()
Returns the category key.
Returns:
The category key.

hashCode

public int hashCode()
Returns a hash code for this instance.
Overrides:
hashCode in interface ChartEntity
Returns:
A hash code.

toString

public String toString()
Returns a string representation of this entity. This is primarily useful for debugging.
Overrides:
toString in interface ChartEntity
Returns:
A string representation of this entity.