public class Date_Axis_Units
extends java.lang.Object
The getTickUnits
method produces a TickUnitSource
from an input TimeZone
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Modifier and Type | Method and Description |
---|---|
static org.jfree.chart.axis.TickUnits |
getTickUnits(java.util.TimeZone timeZone)
Gets a new set of tick units with date axis units formatted for MRO
operations, using the supplied time zone.
|
public static final java.lang.String ID
public static org.jfree.chart.axis.TickUnits getTickUnits(java.util.TimeZone timeZone)
To ensure that the ticks match the date axis, this method should be invoked with the same time zone as that used in the date axis, e.g.:
DateAxis axis = new DateAxis ("Date (UTC)", TimeZone.getTimeZone ("UTC")); TickUnits units = Date_Axis_Units.getTickUnits (axis.getTimeZone ());
timeZone
- the time zone for the date axis units; if null,
the system default time zone will be used.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona