Package org.jfree.chart.axis
Class CategoryTick
- java.lang.Object
-
- org.jfree.chart.axis.Tick
-
- org.jfree.chart.axis.CategoryTick
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class CategoryTick extends Tick
A tick for aCategoryAxis
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Comparable
category
The category.private TextBlock
label
The label.private TextBlockAnchor
labelAnchor
The label anchor.
-
Constructor Summary
Constructors Constructor Description CategoryTick(java.lang.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 boolean
canEqual(java.lang.Object other)
Ensures symmetry between super/subclass implementations of equals.boolean
equals(java.lang.Object obj)
Tests this category tick for equality with an arbitrary object.java.lang.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, getAngle, getRotationAnchor, getText, getTextAnchor, toString
-
-
-
-
Field Detail
-
category
private final java.lang.Comparable category
The category.
-
label
private final TextBlock label
The label.
-
labelAnchor
private final TextBlockAnchor labelAnchor
The label anchor.
-
-
Constructor Detail
-
CategoryTick
public CategoryTick(java.lang.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 java.lang.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.
-
equals
public boolean equals(java.lang.Object obj)
Tests this category tick for equality with an arbitrary object.
-
canEqual
public boolean canEqual(java.lang.Object other)
Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.
-
-