- java.lang.Object
-
- org.jfree.chart.axis.Tick
-
- org.jfree.chart.axis.CategoryTick
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CategoryTick extends Tick
A tick for aCategoryAxis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CategoryTick(Comparable<?> category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle)Creates a new tick.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests this category tick for equality with an arbitrary object.Comparable<?>getCategory()Returns the category.TextBlockgetLabel()Returns the label.TextBlockAnchorgetLabelAnchor()Returns the label anchor.inthashCode()Returns a hash code for this object.-
Methods inherited from class org.jfree.chart.axis.Tick
clone, getAngle, getRotationAnchor, getText, getTextAnchor, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
getCategory
public Comparable<?> getCategory()
Returns the category.- Returns:
- The category.
-
getLabelAnchor
public TextBlockAnchor getLabelAnchor()
Returns the label anchor.- Returns:
- The label anchor.
-
equals
public boolean equals(Object obj)
Tests this category tick for equality with an arbitrary object.
-
-