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

Variable Index

 o 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.
 o 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.

Constructor Index

 o IntRange()
Default constructor, min=0.0 and max=0.0.
 o IntRange(int, int)
Sets the min- and max-values at the parameters.

Method Index

 o setOrder()
Sets the smaller value of the current min and max as the min-value and the larger as the max-value.
 o union(IntRange)
Finds union between this Range and the arg Range.

Variables

 o 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.

 o 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.

Constructors

 o IntRange
 public IntRange()
Default constructor, min=0.0 and max=0.0.

 o 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

Methods

 o 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.

 o 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