jas.plot
Class DateAxis
java.lang.Object
|
+--jas.plot.AxisType
|
+--jas.plot.DateAxis
- All Implemented Interfaces:
- CoordinateTransformation, DateCoordinateTransformation, java.io.Externalizable, java.io.Serializable
- public final class DateAxis
- extends AxisType
- implements DateCoordinateTransformation
This class implements a simple date axis, where values on the axis are particular
instances in time. The dates are impemented with long
values, representing
the number of milliseconds after midnight on Jan 1, 1970 GMT.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateAxis
public DateAxis()
convert
public double convert(long d)
- Description copied from interface:
DateCoordinateTransformation
- Returns a pixel value on the axis for the given date value.
- Specified by:
convert
in interface DateCoordinateTransformation
map
public long map(double i)
- Description copied from interface:
DateCoordinateTransformation
- Returns a date value for the given pixel value.
- Specified by:
map
in interface DateCoordinateTransformation
setMin
public void setMin(long min)
setMax
public void setMax(long max)
getDataMin
public long getDataMin()
getDataMax
public long getDataMax()
getAxisMin
public long getAxisMin()
- Description copied from interface:
DateCoordinateTransformation
- Returns the minimum value on the axis.
- Specified by:
getAxisMin
in interface DateCoordinateTransformation
getAxisMax
public long getAxisMax()
- Description copied from interface:
DateCoordinateTransformation
- Returns the maximum value on the axis.
- Specified by:
getAxisMax
in interface DateCoordinateTransformation
setTimeZone
public void setTimeZone(java.util.TimeZone z)
getTimeZone
public java.util.TimeZone getTimeZone()
setUseSuggestedRange
public void setUseSuggestedRange(boolean useSuggestedRange)
getUseSuggestedRange
public boolean getUseSuggestedRange()
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException