public class DateRange
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DateRange()
Creates a range controller for the date values.
|
DateRange(java.util.Date lower,
java.util.Date upper)
Sets a specific range, causing this range to
no longer be an automatic range.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getLowerBound()
Returns the manually set lower bound.
|
java.util.Date |
getUpperBound()
Returns the upper bound.
|
boolean |
isAutoRange()
Returns whether or not the range will be defined automatically, i.e. at
run-time, and depending on the values in the chart.
|
void |
setAutoRange(boolean autoRange)
Sets whether or not the range is to be defined automatically, i.e. at
run-time, and depending on the values in the chart.
|
void |
setLowerBound(java.util.Date lower)
Manually sets the lower bound.
|
void |
setUpperBound(java.util.Date upper)
Manually sets the upper bound.
|
public DateRange()
public DateRange(java.util.Date lower, java.util.Date upper)
lower
- the lower bound of rangeupper
- the upper bound of rangejava.lang.IllegalArgumentException
- if lower or upper is null or if the upper value is lower than the lower valuepublic boolean isAutoRange()
setAutoRange(boolean)
public void setAutoRange(boolean autoRange)
autoRange
- whether the range is to be defined automatically at run-timeisAutoRange()
public java.util.Date getLowerBound()
setLowerBound(Date)
public void setLowerBound(java.util.Date lower)
lower
- the lower bound (null
not permitted)java.lang.IllegalArgumentException
- if the parameter is greater than upper bound.getLowerBound()
public java.util.Date getUpperBound()
setUpperBound(Date)
public void setUpperBound(java.util.Date upper)
upper
- the upper bound (null
not permitted)java.lang.IllegalArgumentException
- if the parameter is less than lower bound.getUpperBound()
Copyright © 1999-2020 by i-net software GmbH