org.jfree.chart.axis

Class DateTick

Implemented Interfaces:
Cloneable, Serializable

public class DateTick
extends ValueTick

A tick used by the DateAxis class.

Constructor Summary

DateTick(Date date, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new date tick.

Method Summary

boolean
equals(Object obj)
Tests this tick for equality with an arbitrary object.
Date
getDate()
Returns the date.
int
hashCode()
Returns a hash code for this object.

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

equals, getValue

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

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

Constructor Details

DateTick

public DateTick(Date date,
                String label,
                TextAnchor textAnchor,
                TextAnchor rotationAnchor,
                double angle)
Creates a new date tick.
Parameters:
date - the date.
label - the label.
textAnchor - the part of the label that is aligned to the anchor point.
rotationAnchor - defines the rotation point relative to the text.
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 ValueTick
Parameters:
obj - the object to test (null permitted).
Returns:
A boolean.

getDate

public Date getDate()
Returns the date.
Returns:
The date.

hashCode

public int hashCode()
Returns a hash code for this object.
Returns:
A hash code.