public abstract class

Tick

extends Object
implements Serializable Cloneable
java.lang.Object
   ↳ org.jfree.chart.axis.Tick
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

The base class used to represent labelled ticks along an axis.

Summary

Public Constructors
Tick(String text, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

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.

Public Methods

public Object clone ()

Returns a clone of the tick.

Returns
  • A clone.
Throws
CloneNotSupportedException if there is a problem cloning.

public boolean equals (Object obj)

Tests this tick for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public double getAngle ()

Returns the angle.

Returns
  • The angle.

public TextAnchor getRotationAnchor ()

Returns the text anchor that defines the point around which the label is rotated.

Returns
  • A text anchor (never null).

public String getText ()

Returns the text version of the tick value.

Returns
  • A string (possibly null;

public TextAnchor getTextAnchor ()

Returns the text anchor.

Returns
  • The text anchor (never null).

public String toString ()

Returns a string representation of the tick.

Returns
  • A string.