Public Member Functions | |
Interval () | |
Interval (double min, double max) | |
synchronized void | addIntervalListener (IntervalListener l) |
boolean | equals (Object o) |
double | getLength () |
boolean | isLogaritmic () |
double | length () |
double | max () |
double | min () |
synchronized void | removeIntervalListener (IntervalListener l) |
void | set (double min, double max) |
void | set (Interval interval) |
void | setLogaritmic (boolean newLogaritmic) |
void | setMax (double max) |
void | setMin (double min) |
void | shift (double shift) |
String | toString () |
void | unionWith (Interval interval) |
Private Member Functions | |
void | fireIntervalChange () |
Private Attributes | |
double | min = 0.0 |
double | max = 1.0 |
java.util.ArrayList | list |
boolean | logaritmic = false |
|
Interval constructor. |
|
Interval constructor, which takes as an argument minimal and maximal value of interval. |
|
This method adds IntervalListener to this class oblect. |
|
This method tests if compared object is instance of Interval object and if is, then tests is values of both intervals are the same. |
|
|
|
This method return length of interval. |
|
Return
|
|
This method return length of interval. |
|
This method returns value on the end of interval (maximal value). |
|
This method returns value at start of interval (minimal value). |
|
This method removes parameter specified |
|
This method change interval to parameter specified interval and fires event |
|
This method sets start and end of interval. |
|
Sets this object to present logaritmic interval. Interval event is fired.
|
|
This method sets end of interval (maximal value) and fires event |
|
This method sets start of interval (minimal value) and fires event |
|
This method adds to start and end of interval parameter specified value and fires event |
|
This method return string that describe this class object. |
|
If union of parameter specified interval and this interval is not just this interval, this method change this interval to union of both intervals and fires event |
|
|
|
|
|
|
|
|