java.lang.Object
org.jfree.chart.axis.Tick
org.jfree.chart.axis.CategoryTick
- All Implemented Interfaces:
Serializable
,Cloneable
A tick for a
CategoryAxis
.- See Also:
-
Constructor Summary
ConstructorDescriptionCategoryTick
(Comparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle) Creates a new tick. -
Method Summary
Methods inherited from class org.jfree.chart.axis.Tick
clone, 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
-
getCategory
Returns the category.- Returns:
- The category.
-
getLabel
Returns the label.- Returns:
- The label.
-
getLabelAnchor
Returns the label anchor.- Returns:
- The label anchor.
-
equals
Tests this category tick for equality with an arbitrary object. -
hashCode
public int hashCode()Returns a hash code for this object.
-