org.jfree.chart.axis

Class ValueTick

Implemented Interfaces:
Cloneable, Serializable
Known Direct Subclasses:
DateTick, NumberTick

public abstract class ValueTick
extends Tick

A value tick.

Constructor Summary

ValueTick(double value, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new value tick.

Method Summary

boolean
equals(Object obj)
Tests this tick for equality with an arbitrary object.
double
getValue()
Returns the value.

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

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

Constructor Details

ValueTick

public ValueTick(double value,
                 String label,
                 TextAnchor textAnchor,
                 TextAnchor rotationAnchor,
                 double angle)
Creates a new value tick.
Parameters:
value - the value.
label - the label.
textAnchor - the part of the label that is aligned to the anchor point.
rotationAnchor - defines the rotation point relative to the label.
angle - the rotation angle (in radians).

Method Details

equals

public boolean equals(Object obj)
Tests this tick for equality with an arbitrary object.
Overrides:
equals in interface Tick
Parameters:
obj - the object to test (null permitted).
Returns:
A boolean.

getValue

public double getValue()
Returns the value.
Returns:
The value.