| java.lang.Object org.jfree.data.Range org.jfree.data.time.DateRange
DateRange | public class DateRange extends Range implements Serializable(Code) | | A range specified in terms of two java.util.Date objects.
Instances of this class are immutable.
|
Constructor Summary | |
public | DateRange() Default constructor. | public | DateRange(Date lower, Date upper) Constructs a new range. | public | DateRange(double lower, double upper) Constructs a new range using two values that will be interpreted as
"milliseconds since midnight GMT, 1-Jan-1970". | public | DateRange(Range other) Constructs a new range that is based on another
Range . |
Method Summary | |
public Date | getLowerDate() Returns the lower (earlier) date for the range. | public Date | getUpperDate() Returns the upper (later) date for the range. | public String | toString() Returns a string representing the date range (useful for debugging). |
DateRange | public DateRange()(Code) | | Default constructor.
|
DateRange | public DateRange(Date lower, Date upper)(Code) | | Constructs a new range.
Parameters: lower - the lower bound (null not permitted). Parameters: upper - the upper bound (null not permitted). |
DateRange | public DateRange(double lower, double upper)(Code) | | Constructs a new range using two values that will be interpreted as
"milliseconds since midnight GMT, 1-Jan-1970".
Parameters: lower - the lower (oldest) date. Parameters: upper - the upper (most recent) date. |
DateRange | public DateRange(Range other)(Code) | | Constructs a new range that is based on another
Range . The
other range does not have to be a
DateRange . If it is not, the
upper and lower bounds are evaluated as milliseconds since midnight
GMT, 1-Jan-1970.
Parameters: other - the other range (null not permitted). |
getLowerDate | public Date getLowerDate()(Code) | | Returns the lower (earlier) date for the range.
The lower date for the range. |
getUpperDate | public Date getUpperDate()(Code) | | Returns the upper (later) date for the range.
The upper date for the range. |
toString | public String toString()(Code) | | Returns a string representing the date range (useful for debugging).
A string representing the date range. |
|
|