org.jfree.chart.axis

Class NumberTick

Implemented Interfaces:
Cloneable, Serializable
Known Direct Subclasses:
CyclicNumberAxis.CycleBoundTick

public class NumberTick
extends ValueTick

A numerical tick.

Constructor Summary

NumberTick(Number number, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.
NumberTick(TickType tickType, double value, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new tick.

Method Summary

Number
getNumber()
Returns the number.

Methods inherited from class org.jfree.chart.axis.ValueTick

equals, getTickType, getValue

Methods inherited from class org.jfree.chart.axis.Tick

clone, equals, getAngle, getRotationAnchor, getText, getTextAnchor, toString

Constructor Details

NumberTick

public NumberTick(Number number,
                  String label,
                  TextAnchor textAnchor,
                  TextAnchor rotationAnchor,
                  double angle)
Creates a new tick.
Parameters:
number - the number (null not permitted).
label - the label.
textAnchor - the part of the label that is aligned with the anchor point.
rotationAnchor - defines the rotation point relative to the text.
angle - the rotation angle (in radians).

NumberTick

public NumberTick(TickType tickType,
                  double value,
                  String label,
                  TextAnchor textAnchor,
                  TextAnchor rotationAnchor,
                  double angle)
Creates a new tick.
Parameters:
tickType - the tick type.
value - the value.
label - the label.
textAnchor - the part of the label that is aligned with the anchor point.
rotationAnchor - defines the rotation point relative to the text.
angle - the rotation angle (in radians).
Since:
1.0.7

Method Details

getNumber

public Number getNumber()
Returns the number.
Returns:
The number.