Package org.jfree.chart.axis
Class DateTick
- java.lang.Object
-
- org.jfree.chart.axis.Tick
-
- org.jfree.chart.axis.ValueTick
-
- org.jfree.chart.axis.DateTick
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class DateTick extends ValueTick
A tick used by theDateAxis
class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Date
date
The date.
-
Constructor Summary
Constructors Constructor Description DateTick(java.util.Date date, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new date tick.DateTick(TickType tickType, java.util.Date date, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new date tick.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Tests this tick for equality with an arbitrary object.java.util.Date
getDate()
Returns the date.int
hashCode()
Returns a hash code for this object.-
Methods inherited from class org.jfree.chart.axis.ValueTick
getTickType, getValue
-
Methods inherited from class org.jfree.chart.axis.Tick
canEqual, clone, getAngle, getRotationAnchor, getText, getTextAnchor, toString
-
-
-
-
Constructor Detail
-
DateTick
public DateTick(java.util.Date date, java.lang.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).
-
DateTick
public DateTick(TickType tickType, java.util.Date date, java.lang.String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new date tick.- Parameters:
tickType
- the tick type (null
not permitted).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).
-
-