public class

DateTick

extends ValueTick
java.lang.Object
   ↳ org.jfree.chart.axis.Tick
     ↳ org.jfree.chart.axis.ValueTick
       ↳ org.jfree.chart.axis.DateTick

Class Overview

A tick used by the DateAxis class.

Summary

Public Constructors
DateTick(Date date, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new date tick.
DateTick(TickType tickType, Date date, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
Creates a new date tick.
Public Methods
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.
[Expand]
Inherited Methods
From class org.jfree.chart.axis.ValueTick
From class org.jfree.chart.axis.Tick
From class java.lang.Object

Public Constructors

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).

public DateTick (TickType tickType, Date date, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)

Creates a new date tick.

Parameters
tickType the tick type.
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).

Public Methods

public boolean equals (Object obj)

Tests this tick for equality with an arbitrary object.

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

public Date getDate ()

Returns the date.

Returns
  • The date.

public int hashCode ()

Returns a hash code for this object.

Returns
  • A hash code.