jas2.plot
Class DateAxis
- java.lang.Object
-
- jas2.plot.AxisType
-
- jas2.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 withlongvalues, representing the number of milliseconds after midnight on Jan 1, 1970 GMT.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DateAxis()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleconvert(long d)Returns a pixel value on the axis for the given date value.longgetAxisMax()Returns the maximum value on the axis.longgetAxisMin()Returns the minimum value on the axis.longgetDataMax()longgetDataMin()java.util.TimeZonegetTimeZone()booleangetUseSuggestedRange()longmap(double i)Returns a date value for the given pixel value.voidreadExternal(java.io.ObjectInput in)voidsetMax(long max)voidsetMin(long min)voidsetTimeZone(java.util.TimeZone z)voidsetUseSuggestedRange(boolean useSuggestedRange)voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
convert
public double convert(long d)
Description copied from interface:DateCoordinateTransformationReturns a pixel value on the axis for the given date value.- Specified by:
convertin interfaceDateCoordinateTransformation
-
map
public long map(double i)
Description copied from interface:DateCoordinateTransformationReturns a date value for the given pixel value.- Specified by:
mapin interfaceDateCoordinateTransformation
-
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:DateCoordinateTransformationReturns the minimum value on the axis.- Specified by:
getAxisMinin interfaceDateCoordinateTransformation
-
getAxisMax
public long getAxisMax()
Description copied from interface:DateCoordinateTransformationReturns the maximum value on the axis.- Specified by:
getAxisMaxin interfaceDateCoordinateTransformation
-
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- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG