|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.range.NumberRange
com.ijchart.xychart.range.DateRange
public class DateRange
Title: IJChart
Description: a chart library for the Java(tm) platform.
A range specified in terms of two java.util.Date objects. Instances of this class are immutable.Copyright: Copyright (c) 2013
Company:
| Field Summary |
|---|
| Fields inherited from class com.ijchart.xychart.range.NumberRange |
|---|
RANGE_ZERO |
| Constructor Summary | |
|---|---|
DateRange(java.util.Date lower,
java.util.Date upper)
Constructs a new range. |
|
DateRange(long lower,
long upper)
Constructs a new range using two values that will be interpreted as "milliseconds since midnight GMT, 1-Jan-1970". |
|
DateRange(NumberRange other)
Constructs a new range that is based on another NumberRange. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Tests the marker for equality with an arbitrary double. |
java.util.Date |
getLowerDate()
Returns the lower (earlier) date for the range. |
java.util.Date |
getUpperDate()
Returns the upper (later) date for the range. |
int |
hashCode()
Returns a hash code. |
java.lang.String |
toString()
Returns a string representing the date range (useful for debugging). |
| Methods inherited from class com.ijchart.xychart.range.NumberRange |
|---|
contains, getCentralValue, getLength, getLowerBound, getUpperBound, resizeRange, resizeRange, resizeRange2, zoomRange |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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(long lower,
long upper)
lower -
The lower (oldest) date.upper -
The upper (most recent) date.public DateRange(NumberRange other)
NumberRange. 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()
public java.util.Date getUpperDate()
public boolean equals(java.lang.Object obj)
equals in class NumberRangeobj - the double (null permitted).
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class NumberRangejava.lang.CloneNotSupportedExceptionpublic int hashCode()
hashCode in class NumberRangepublic java.lang.String toString()
toString in class NumberRange
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||