java.lang.Object | |
↳ | org.jfree.data.Range |
![]() |
Represents an immutable range of values.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new range.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new range by combining two existing ranges.
| |||||||||||
Returns the value within the range that is closest to the specified
value.
| |||||||||||
Returns
true if the range contains the specified value and
false otherwise. | |||||||||||
Tests this object for equality with an arbitrary object.
| |||||||||||
Creates a new range by adding margins to an existing range.
| |||||||||||
Returns a range that includes all the values in the specified
range AND the specified value . | |||||||||||
Returns the central value for the range.
| |||||||||||
Returns the length of the range.
| |||||||||||
Returns the lower bound for the range.
| |||||||||||
Returns the upper bound for the range.
| |||||||||||
Returns a hash code.
| |||||||||||
Returns
true if the range intersects with the specified
range, and false otherwise. | |||||||||||
Returns
true if the range intersects with the specified
range, and false otherwise. | |||||||||||
Scales the range by the specified factor.
| |||||||||||
Shifts the range by the specified amount.
| |||||||||||
Shifts the range by the specified amount.
| |||||||||||
Returns a string representation of this Range.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new range.
lower | the lower bound (must be <= upper bound). |
---|---|
upper | the upper bound (must be >= lower bound). |
Creates a new range by combining two existing ranges.
Note that:
null
, in which case the other
range is returned;null
the return value is
null
.range1 | the first range (null permitted). |
---|---|
range2 | the second range (null permitted). |
null
).
Returns the value within the range that is closest to the specified value.
value | the value. |
---|
Returns true
if the range contains the specified value and
false
otherwise.
value | the value to lookup. |
---|
true
if the range contains the specified value.
Tests this object for equality with an arbitrary object.
obj | the object to test against (null permitted). |
---|
Creates a new range by adding margins to an existing range.
range | the range (null not permitted). |
---|---|
lowerMargin | the lower margin (expressed as a percentage of the range length). |
upperMargin | the upper margin (expressed as a percentage of the range length). |
Returns a range that includes all the values in the specified
range
AND the specified value
.
range | the range (null permitted). |
---|---|
value | the value that must be included. |
Returns the central value for the range.
Returns the length of the range.
Returns the lower bound for the range.
Returns the upper bound for the range.
Returns a hash code.
Returns true
if the range intersects with the specified
range, and false
otherwise.
range | another range (null not permitted). |
---|
Returns true
if the range intersects with the specified
range, and false
otherwise.
b0 | the lower bound (should be <= b1). |
---|---|
b1 | the upper bound (should be >= b0). |
Scales the range by the specified factor.
base | the base range (null not permitted). |
---|---|
factor | the scaling factor (must be non-negative). |
Shifts the range by the specified amount.
base | the base range (null not permitted). |
---|---|
delta | the shift amount. |
allowZeroCrossing | a flag that determines whether or not the bounds of the range are allowed to cross zero after adjustment. |
Shifts the range by the specified amount.
base | the base range (null not permitted). |
---|---|
delta | the shift amount. |
Returns a string representation of this Range.