org.jfree.chart.entity

Class CategoryLabelEntity

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
booleanequals(Object obj)
Tests this instance for equality with an arbitrary object.
ComparablegetKey()
Returns the category key.
inthashCode()
Returns a hash code for this instance.
StringtoString()
Returns a string representation of this entity.

Constructor Detail

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 Detail

equals

public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.

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.

Returns: A hash code.

toString

public String toString()
Returns a string representation of this entity. This is primarily useful for debugging.

Returns: A string representation of this entity.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.