|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.ull.cgunay.plots.Range
Holds the pair of doubles indicating a range of a variable.
Created: Mon Apr 8 17:15:38 2002
Modified: $Date: 2002/12/17 00:58:57 $
Grapher| Field Summary | |
(package private) double |
end
End of the range. |
(package private) double |
start
Start of the range. |
| Constructor Summary | |
Range(double start,
double end)
|
|
| Method Summary | |
void |
add(Range range)
Adds given range to this one, resulting in enlarging this range. |
double |
getEnd()
Get the value of end. |
double |
getStart()
Get the value of start. |
static Range |
max(Range r1,
Range r2)
Returns the union of two ranges, that is the maximal range including both ranges. |
void |
setEnd(double v)
Set the value of end. |
void |
setStart(double v)
Set the value of start. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
double start
double end
| Constructor Detail |
public Range(double start,
double end)
| Method Detail |
public double getStart()
public void setStart(double v)
v - Value to assign to start.public double getEnd()
public void setEnd(double v)
v - Value to assign to end.public void add(Range range)
range - a Range value
public static Range max(Range r1,
Range r2)
r1 - a Range valuer2 - a Range value
Range value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||