com.jrefinery.data
Class DateRange

java.lang.Object
  extended by com.jrefinery.data.Range
      extended by com.jrefinery.data.DateRange

public class DateRange
extends Range

An axis range specified in terms of two java.util.Date objects.


Field Summary
protected  java.util.Date lowerDate
          The lower bound for the axis.
protected  java.util.Date upperDate
          The upper bound for the axis.
 
Fields inherited from class com.jrefinery.data.Range
lower, upper
 
Constructor Summary
DateRange()
          Default constructor.
DateRange(java.util.Date lower, java.util.Date upper)
          Constructs a new DateAxisRange.
DateRange(double lower, double upper)
          Constructs a new DateAxisRange.
DateRange(Range other)
          Constructs a new DateAxisRange based on another range.
 
Method Summary
 java.util.Date getLowerDate()
          Returns the lower bound for the axis.
 java.util.Date getUpperDate()
          Returns the upper bound for the axis.
 
Methods inherited from class com.jrefinery.data.Range
combine, contains, getCentralValue, getLength, getLowerBound, getUpperBound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lowerDate

protected java.util.Date lowerDate
The lower bound for the axis.


upperDate

protected java.util.Date upperDate
The upper bound for the axis.

Constructor Detail

DateRange

public DateRange()
Default constructor.


DateRange

public DateRange(java.util.Date lower,
                 java.util.Date upper)
Constructs a new DateAxisRange.

Parameters:
lower - The lower bound.
upper - The upper bound.

DateRange

public DateRange(double lower,
                 double upper)
Constructs a new DateAxisRange.


DateRange

public DateRange(Range other)
Constructs a new DateAxisRange based on another range.

The other range may not be a DateAxisRange. If it is not, the upper and lower bounds are evaluated as milliseconds since midnight GMT, 1-Jan-1970.

Parameters:
other - The other range.
Method Detail

getLowerDate

public java.util.Date getLowerDate()
Returns the lower bound for the axis.


getUpperDate

public java.util.Date getUpperDate()
Returns the upper bound for the axis.



Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.