org.jfree.chart.axis
Class Tick
java.lang.Objectorg.jfree.chart.axis.Tick
- Cloneable, Serializable
public abstract class Tickextends java.lang.Object
implements Serializable, Cloneable
The base class used to represent labelled ticks along an axis.
Tick(String text, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)- Creates a new tick.
|
Object | clone()- Returns a clone of the tick.
|
boolean | equals(Object obj)- Tests this tick for equality with an arbitrary object.
|
double | getAngle()- Returns the angle.
|
TextAnchor | getRotationAnchor()- Returns the text anchor that defines the point around which the label is
rotated.
|
String | getText()- Returns the text version of the tick value.
|
TextAnchor | getTextAnchor()- Returns the text anchor.
|
String | toString()- Returns a string representation of the tick.
|
Tick
public Tick(String text,
TextAnchor textAnchor,
TextAnchor rotationAnchor,
double angle) Creates a new tick.
text - the formatted version of the tick value.textAnchor - the text anchor (null not permitted).rotationAnchor - the rotation anchor (null not
permitted).angle - the angle.
clone
public Object clone()
throws CloneNotSupportedException Returns a clone of the tick.
equals
public boolean equals(Object obj)
Tests this tick for equality with an arbitrary object.
obj - the object (null permitted).
getAngle
public double getAngle()
Returns the angle.
getRotationAnchor
public TextAnchor getRotationAnchor()
Returns the text anchor that defines the point around which the label is
rotated.
- A text anchor (never
null).
getText
public String getText()
Returns the text version of the tick value.
getTextAnchor
public TextAnchor getTextAnchor()
Returns the text anchor.
- The text anchor (never
null).
toString
public String toString()
Returns a string representation of the tick.