Package com.inet.report.chart.axis
Class NumberRange
java.lang.Object
com.inet.report.chart.axis.NumberRange
- All Implemented Interfaces:
Serializable
Class representing a range of number values.
- Since:
- 8.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a range of the number values.NumberRange
(double lower, double upper) Creates a range for the number values given. -
Method Summary
Modifier and TypeMethodDescriptionReturns the manually set lower bound of this range.Returns the manually set upper bound of this range.boolean
Returns whether or not the range will be defined automatically instead of using the manually set values.void
setAutoRange
(boolean autoRange) Sets whether or not the range will be defined automatically instead of using the manually set values.void
setLowerBound
(Double lower) Manually sets the lower bound of this range.void
setUpperBound
(Double upper) Sets the manually set upper bound of this range.
-
Constructor Details
-
NumberRange
public NumberRange()Creates a range of the number values. The default state of this range is that it is to be generated automatically at run-time.- Since:
- 8.0
-
NumberRange
public NumberRange(double lower, double upper) Creates a range for the number values given.- Parameters:
lower
- the lower bound of rangeupper
- the upper bound of range- Throws:
IllegalArgumentException
- if the upper value is less than the lower value- Since:
- 8.0
-
-
Method Details
-
isAutoRange
public boolean isAutoRange()Returns whether or not the range will be defined automatically instead of using the manually set values.- Returns:
- the flag.
- Since:
- 8.0
- See Also:
-
setAutoRange
public void setAutoRange(boolean autoRange) Sets whether or not the range will be defined automatically instead of using the manually set values.- Parameters:
autoRange
- whether the range will be defined automatically- Since:
- 8.0
- See Also:
-
getLowerBound
Returns the manually set lower bound of this range. Note that this value will only be used if this range is set to not be automatic, but manual.- Returns:
- the lower bound or
null
if this bound was not set - Since:
- 8.0
- See Also:
-
setLowerBound
Manually sets the lower bound of this range. Note that this value will only be used if this range is set to not be automatic, but manual.- Parameters:
lower
- the lower bound of this range- Throws:
IllegalArgumentException
- if the parameter is greater than upper bound.- Since:
- 8.0
- See Also:
-
getUpperBound
Returns the manually set upper bound of this range. Note that this value will only be used if this range is set to not be automatic, but manual.- Returns:
- the upper bound or
null
if this bound was not set. - Since:
- 8.0
- See Also:
-
setUpperBound
Sets the manually set upper bound of this range. Note that this value will only be used if this range is set to not be automatic, but manual.- Parameters:
upper
- the upper bound of this range- Throws:
IllegalArgumentException
- if the parameter is less than lower bound.- Since:
- 8.0
- See Also:
-