All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class crw.awt.FloatRange

java.lang.Object
   |
   +----crw.awt.FloatRange

public class FloatRange
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 double 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 double values.

Constructor Index

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

Method Index

 o contains(double)
Returns true if the value is within the range, inclusive.
 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(FloatRange)
Mergies this with another FloatRange.

Variables

 o min
 public double min
The min-value of this point, usually used as the minimum value if this FloatPoint is used to indicate the range for double values.

 o max
 public double max
The max-value of this point, usually used as the maximum value if this FloatPoint is used to indicate the range for double values.

Constructors

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

 o FloatRange
 public FloatRange(double min,
                   double max)
Sets the min- and max-values at the parameters.

Parameters:
min - the min-value
max - the max-value
 o FloatRange
 public FloatRange(FloatRange r)

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(FloatRange r)
Mergies this with another FloatRange.

Parameters:
r - the FloatRange to merge with.
 o contains
 public boolean contains(double v)
Returns true if the value is within the range, inclusive.

Parameters:
v - the value for containement.

All Packages  Class Hierarchy  This Package  Previous  Next  Index