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

Fields inherited from class jas.plot.AxisType
axis
 
Constructor Summary
DateAxis()
           
 
Method Summary
 double convert(long d)
          Returns a pixel value on the axis for the given date value.
 long getAxisMax()
          Returns the maximum value on the axis.
 long getAxisMin()
          Returns the minimum value on the axis.
 long getDataMax()
           
 long getDataMin()
           
 java.util.TimeZone getTimeZone()
           
 boolean getUseSuggestedRange()
           
 long map(double i)
          Returns a date value for the given pixel value.
 void readExternal(java.io.ObjectInput in)
           
 void setMax(long max)
           
 void setMin(long min)
           
 void setTimeZone(java.util.TimeZone z)
           
 void setUseSuggestedRange(boolean useSuggestedRange)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class jas.plot.AxisType
getAxis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateAxis

public DateAxis()
Method Detail

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