|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.axis.Axis com.jidesoft.chart.axis.TimeAxis
public class TimeAxis
An axis class specialised for time-based values. The values along the axis are
given as the number of milliseconds since 00:00hrs on January 1st 1970, which
is the same as the value returned when you call System.currentTimeMillis()
.
Note that as all axis types are based on double values, it is sometimes necessary to cast from a long to a double when adding time points or to cast from a double to a long when reading them off a chart.
Field Summary |
---|
Fields inherited from class com.jidesoft.chart.axis.Axis |
---|
MIN_RESOLUTION, PROPERTY_AXIS_COLOR, PROPERTY_LABEL, PROPERTY_MINOR_TICK_COLOR, PROPERTY_MINOR_TICK_LENGTH, PROPERTY_RANGE, PROPERTY_STROKE, PROPERTY_TICK_CALCULATOR, PROPERTY_TICK_COLOR, PROPERTY_TICK_FONT, PROPERTY_TICK_LABEL_COLOR, PROPERTY_TICK_LENGTH, PROPERTY_TICKS, PROPERTY_UPDATE_OTHER_AXES |
Constructor Summary | |
---|---|
TimeAxis()
Constructs a time axis with a default time range and tick calculator. |
|
TimeAxis(AutoPositionedLabel label)
Constructs a time axis with a default time range and tick calculator, and sets the supplied object to be the label for the axis. |
|
TimeAxis(long min,
long max)
Constructs a time axis using the supplied time range. |
|
TimeAxis(String text)
Constructs a time axis with a default time range and tick calculator, and uses the supplied text as the axis label. |
|
TimeAxis(TimeRange timeRange)
Constructs a time axis using the supplied time range |
|
TimeAxis(TimeRange timeRange,
String text)
Constructs a time axis using the supplied time range and the text as the axis label |
Method Summary | |
---|---|
protected TimeRange |
createDefaultRange()
|
DateFormat |
getDateFormat()
|
AxisQuantity |
getQuantity()
Returns the TIME quantity |
TimeZone |
getTimeZone()
|
protected void |
init()
|
void |
setDateFormat(DateFormat dateFormat)
|
void |
setTimeZone(TimeZone timeZone)
|
TimeAxis |
withDateFormat(DateFormat dateFormat)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeAxis()
public TimeAxis(String text)
text
- the text for the axis labelpublic TimeAxis(AutoPositionedLabel label)
label
- the axis labelpublic TimeAxis(long min, long max)
min
- the minimum value of the time range, in milliseconds since Jan 1st 1970max
- the maximum value of the time range, in milliseconds since Jan 1st 1970public TimeAxis(TimeRange timeRange)
timeRange
- the time range to use for the axispublic TimeAxis(TimeRange timeRange, String text)
timeRange
- the time range to use for the axistext
- the text to use for the axis labelMethod Detail |
---|
protected TimeRange createDefaultRange()
protected void init()
public void setDateFormat(DateFormat dateFormat)
public DateFormat getDateFormat()
public TimeAxis withDateFormat(DateFormat dateFormat)
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public AxisQuantity getQuantity()
getQuantity
in class Axis
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |