Package org.jfree.chart.axis
Class CategoryTick
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
ConstructorsConstructorDescriptionCategoryTick(Comparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle) Creates a new tick. -
Method Summary
Modifier and TypeMethodDescriptionbooleanEnsures symmetry between super/subclass implementations of equals.booleanTests this category tick for equality with an arbitrary object.Returns the category.getLabel()Returns the label.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 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. -
canEqual
Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance. -
hashCode
Returns a hash code for this object.
-