jas.plot
Class DateAxis
java.lang.Object
jas.plot.AxisType
jas.plot.DateAxis
- All Implemented Interfaces:
- CoordinateTransformation, DateCoordinateTransformation, Externalizable, 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.
- Author:
- Jonas Gifford
- 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(TimeZone z)
getTimeZone
public TimeZone getTimeZone()
setUseSuggestedRange
public void setUseSuggestedRange(boolean useSuggestedRange)
getUseSuggestedRange
public boolean getUseSuggestedRange()
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2000-2009 FreeHEP. All Rights Reserved.