org.jfree.chart.axis

Class CategoryTick

Implemented Interfaces:
Cloneable, Serializable

public class CategoryTick
extends Tick

A tick for a CategoryAxis.

Constructor Summary

CategoryTick(Comparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.

Method Summary

boolean
equals(Object obj)
Tests this category tick for equality with an arbitrary object.
Comparable
getCategory()
Returns the category.
TextBlock
getLabel()
Returns the label.
TextBlockAnchor
getLabelAnchor()
Returns the label anchor.
int
hashCode()
Returns a hash code for this object.

Methods inherited from class org.jfree.chart.axis.Tick

clone, equals, getAngle, getRotationAnchor, getText, getTextAnchor, toString

Constructor Details

CategoryTick

public CategoryTick(Comparable category,
                    TextBlock label,
                    TextBlockAnchor labelAnchor,
                    TextAnchor rotationAnchor,
                    double angle)
Creates a new tick.
Parameters:
category - the category.
label - the label.
labelAnchor - the label anchor.
rotationAnchor - the rotation anchor.
angle - the rotation angle (in radians).

Method Details

equals

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

getCategory

public Comparable getCategory()
Returns the category.
Returns:
The category.

getLabel

public TextBlock getLabel()
Returns the label.
Returns:
The label.

getLabelAnchor

public TextBlockAnchor getLabelAnchor()
Returns the label anchor.
Returns:
The label anchor.

hashCode

public int hashCode()
Returns a hash code for this object.
Returns:
A hash code.