org.jfree.chart.axis

Class Tick

public abstract class Tick extends Object implements Serializable, Cloneable

The base class used to represent labelled ticks along an axis.
Constructor Summary
Tick(String text, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.
Method Summary
Objectclone()
Returns a clone of the tick.
booleanequals(Object obj)
Tests this tick for equality with an arbitrary object.
doublegetAngle()
Returns the angle.
TextAnchorgetRotationAnchor()
Returns the text anchor that defines the point around which the label is rotated.
StringgetText()
Returns the text version of the tick value.
TextAnchorgetTextAnchor()
Returns the text anchor.
StringtoString()
Returns a string representation of the tick.

Constructor Detail

Tick

public Tick(String text, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.

Parameters: 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.

Method Detail

clone

public Object clone()
Returns a clone of the tick.

Returns: A clone.

Throws: CloneNotSupportedException if there is a problem cloning.

equals

public boolean equals(Object obj)
Tests this tick for equality with an arbitrary object.

Parameters: obj the object (null permitted).

Returns: A boolean.

getAngle

public double getAngle()
Returns the angle.

Returns: The angle.

getRotationAnchor

public TextAnchor getRotationAnchor()
Returns the text anchor that defines the point around which the label is rotated.

Returns: A text anchor (never null).

getText

public String getText()
Returns the text version of the tick value.

Returns: A string (possibly null;

getTextAnchor

public TextAnchor getTextAnchor()
Returns the text anchor.

Returns: The text anchor (never null).

toString

public String toString()
Returns a string representation of the tick.

Returns: A string.