|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.data.Range org.jfree.data.time.DateRange
public class DateRange
A range specified in terms of two java.util.Date
objects.
Instances of this class are immutable.
Constructor Summary | |
---|---|
DateRange()
Default constructor. |
|
DateRange(java.util.Date lower,
java.util.Date upper)
Constructs a new range. |
|
DateRange(double lower,
double upper)
Constructs a new range using two values that will be interpreted as "milliseconds since midnight GMT, 1-Jan-1970". |
|
DateRange(Range other)
Constructs a new range that is based on another Range . |
Method Summary | |
---|---|
java.util.Date |
getLowerDate()
Returns the lower (earlier) date for the range. |
long |
getLowerMillis()
Returns the lower bound of the range in milliseconds. |
java.util.Date |
getUpperDate()
Returns the upper (later) date for the range. |
long |
getUpperMillis()
Returns the upper bound of the range in milliseconds. |
java.lang.String |
toString()
Returns a string representing the date range (useful for debugging). |
Methods inherited from class org.jfree.data.Range |
---|
combine, constrain, contains, equals, expand, expandToInclude, getCentralValue, getLength, getLowerBound, getUpperBound, hashCode, intersects, intersects, scale, shift, shift |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DateRange()
public DateRange(java.util.Date lower, java.util.Date upper)
lower
- the lower bound (null
not permitted).upper
- the upper bound (null
not permitted).public DateRange(double lower, double upper)
lower
- the lower (oldest) date.upper
- the upper (most recent) date.public DateRange(Range other)
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.
other
- the other range (null
not permitted).Method Detail |
---|
public java.util.Date getLowerDate()
getLowerMillis()
public long getLowerMillis()
getLowerDate()
public java.util.Date getUpperDate()
getUpperMillis()
public long getUpperMillis()
getUpperDate()
public java.lang.String toString()
toString
in class Range
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |