All Packages Class Hierarchy This Package Previous Next Index
Class crw.awt.IntRange
java.lang.Object
|
+----crw.awt.IntRange
- public class IntRange
- extends Object
A class for the Range of floating point values.
- Version:
- 1.0 2-11-1998
- Author:
- C.R.Wie
-
max
- The max-value of this point, usually used as the maximum value
if this FloatPoint is used to indicate the range for int values.
-
min
- The min-value of this point, usually used as the minimum value
if this FloatPoint is used to indicate the range for int values.
-
IntRange()
- Default constructor, min=0.0 and max=0.0.
-
IntRange(int, int)
- Sets the min- and max-values at the parameters.
-
setOrder()
- Sets the smaller value of the current min and max as the
min-value and the larger as the max-value.
-
union(IntRange)
- Finds union between this Range and the arg Range.
min
public int min
- The min-value of this point, usually used as the minimum value
if this FloatPoint is used to indicate the range for int values.
max
public int max
- The max-value of this point, usually used as the maximum value
if this FloatPoint is used to indicate the range for int values.
IntRange
public IntRange()
- Default constructor, min=0.0 and max=0.0.
IntRange
public IntRange(int min,
int max)
- Sets the min- and max-values at the parameters.
- Parameters:
- min - the min-value
- max - the max-value
setOrder
public void setOrder()
- Sets the smaller value of the current min and max as the
min-value and the larger as the max-value.
union
public void union(IntRange r)
- Finds union between this Range and the arg Range. That is,
min is the smaller of the two, and max is the
larger of the two. This Range is replaced by the union.
- Parameters:
- r - the IntRange to union with.
All Packages Class Hierarchy This Package Previous Next Index