org.jfree.chart.axis
Class Tick

java.lang.Object
  extended byorg.jfree.chart.axis.Tick
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
CategoryTick, ValueTick

public abstract class Tick
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Represents the dimensions of a tick on an axis (used during the process of drawing a chart, but not retained).

Author:
David Gilbert
See Also:
Serialized Form

Constructor Summary
Tick(java.lang.String text, org.jfree.ui.TextAnchor textAnchor, org.jfree.ui.TextAnchor rotationAnchor, double angle)
          Creates a new tick.
 
Method Summary
 java.lang.Object clone()
          Clone the object values too if possible
 double getAngle()
          Returns the angle.
 org.jfree.ui.TextAnchor getRotationAnchor()
          Returns the rotation anchor.
 java.lang.String getText()
          Returns the text version of the tick value.
 org.jfree.ui.TextAnchor getTextAnchor()
          Returns the text anchor.
 java.lang.String toString()
          Returns a string representation of the tick.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tick

public Tick(java.lang.String text,
            org.jfree.ui.TextAnchor textAnchor,
            org.jfree.ui.TextAnchor rotationAnchor,
            double angle)
Creates a new tick.

Parameters:
text - the formatted version of the tick value.
textAnchor - the text anchor.
rotationAnchor - the rotation anchor.
angle - the angle.
Method Detail

getText

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

Returns:
the formatted version of the tick value;

getTextAnchor

public org.jfree.ui.TextAnchor getTextAnchor()
Returns the text anchor.

Returns:
The text anchor.

getRotationAnchor

public org.jfree.ui.TextAnchor getRotationAnchor()
Returns the rotation anchor.

Returns:
The rotation anchor.

getAngle

public double getAngle()
Returns the angle.

Returns:
The angle.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone the object values too if possible

Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

toString

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

Returns:
a string.