org.jscience.mathematics.algebraic.matrices.gui
Class DoubleBoundedRangeModel

java.lang.Object
  extended by org.jscience.mathematics.algebraic.matrices.gui.DoubleBoundedRangeModel
All Implemented Interfaces:
javax.swing.BoundedRangeModel

public class DoubleBoundedRangeModel
extends java.lang.Object
implements javax.swing.BoundedRangeModel

An implementation of BoundedRangeModel providing the storage of double values.


Constructor Summary
DoubleBoundedRangeModel()
          Constructs a new DoubleBoundedRangeModel with a default minimum of -1.0 and maximum of 1.0.
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener l)
          DOCUMENT ME!
 void fireChangeEvent()
          DOCUMENT ME!
 double getDoubleMaximum()
          DOCUMENT ME!
 double getDoubleMinimum()
          DOCUMENT ME!
 double getDoubleValue()
          DOCUMENT ME!
 int getExtent()
          DOCUMENT ME!
 int getMaximum()
          Returns the biggest integer value representing every possible double maximum as an integer.
 int getMinimum()
          Returns the integer value 0 representing every possible double minimum as an integer.
 int getValue()
          Returns the relativ int value of the current double value.
 boolean getValueIsAdjusting()
          DOCUMENT ME!
static double relativeMax(double value)
          Returns the smallest decimal power that is still greater than the argument.
static double relativeMin(double value)
          Returns the largest decimal power that is still less than the argument.
 void removeChangeListener(javax.swing.event.ChangeListener l)
          DOCUMENT ME!
 void setDoubleMaximum(double max)
          DOCUMENT ME!
 void setDoubleMinimum(double min)
          DOCUMENT ME!
 void setDoubleValue(double newValue)
          DOCUMENT ME!
 void setExtent(int newExtent)
          An empty method, because getExtend() returns a constant value.
 void setMaximum(int newMaximum)
          An empty method, because getMaximum() returns a constant value.
 void setMinimum(int newMinimum)
          An empty method, because getMinimum() returns a constant value.
 void setRangeProperties(int newValue, int extent, int min, int max, boolean adjusting)
          DOCUMENT ME!
 void setValue(int newValue)
          Calculates the double value, the specified int value is representing.
 void setValueIsAdjusting(boolean b)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleBoundedRangeModel

public DoubleBoundedRangeModel()
Constructs a new DoubleBoundedRangeModel with a default minimum of -1.0 and maximum of 1.0.

Method Detail

setDoubleMinimum

public void setDoubleMinimum(double min)
DOCUMENT ME!

Parameters:
min - DOCUMENT ME!

getDoubleMinimum

public double getDoubleMinimum()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setDoubleMaximum

public void setDoubleMaximum(double max)
DOCUMENT ME!

Parameters:
max - DOCUMENT ME!

getDoubleMaximum

public double getDoubleMaximum()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setDoubleValue

public void setDoubleValue(double newValue)
DOCUMENT ME!

Parameters:
newValue - DOCUMENT ME!

getDoubleValue

public double getDoubleValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!

relativeMin

public static double relativeMin(double value)
Returns the largest decimal power that is still less than the argument.

Parameters:
value - DOCUMENT ME!
Returns:
DOCUMENT ME!

relativeMax

public static double relativeMax(double value)
Returns the smallest decimal power that is still greater than the argument.

Parameters:
value - DOCUMENT ME!
Returns:
DOCUMENT ME!

getExtent

public int getExtent()
DOCUMENT ME!

Specified by:
getExtent in interface javax.swing.BoundedRangeModel
Returns:
1

getMaximum

public int getMaximum()
Returns the biggest integer value representing every possible double maximum as an integer.

Specified by:
getMaximum in interface javax.swing.BoundedRangeModel
Returns:
Integer.MAX_VALUE

getMinimum

public int getMinimum()
Returns the integer value 0 representing every possible double minimum as an integer.

Specified by:
getMinimum in interface javax.swing.BoundedRangeModel
Returns:
0

getValue

public int getValue()
Returns the relativ int value of the current double value.

Specified by:
getValue in interface javax.swing.BoundedRangeModel
Returns:
DOCUMENT ME!

getValueIsAdjusting

public boolean getValueIsAdjusting()
DOCUMENT ME!

Specified by:
getValueIsAdjusting in interface javax.swing.BoundedRangeModel
Returns:
DOCUMENT ME!

setExtent

public void setExtent(int newExtent)
An empty method, because getExtend() returns a constant value.

Specified by:
setExtent in interface javax.swing.BoundedRangeModel
Parameters:
newExtent - DOCUMENT ME!

setMaximum

public void setMaximum(int newMaximum)
An empty method, because getMaximum() returns a constant value.

Specified by:
setMaximum in interface javax.swing.BoundedRangeModel
Parameters:
newMaximum - DOCUMENT ME!

setMinimum

public void setMinimum(int newMinimum)
An empty method, because getMinimum() returns a constant value.

Specified by:
setMinimum in interface javax.swing.BoundedRangeModel
Parameters:
newMinimum - DOCUMENT ME!

setValue

public void setValue(int newValue)
Calculates the double value, the specified int value is representing.

Specified by:
setValue in interface javax.swing.BoundedRangeModel
Parameters:
newValue - DOCUMENT ME!

setValueIsAdjusting

public void setValueIsAdjusting(boolean b)
DOCUMENT ME!

Specified by:
setValueIsAdjusting in interface javax.swing.BoundedRangeModel
Parameters:
b - DOCUMENT ME!

setRangeProperties

public void setRangeProperties(int newValue,
                               int extent,
                               int min,
                               int max,
                               boolean adjusting)
DOCUMENT ME!

Specified by:
setRangeProperties in interface javax.swing.BoundedRangeModel
Parameters:
newValue - DOCUMENT ME!
extent - DOCUMENT ME!
min - DOCUMENT ME!
max - DOCUMENT ME!
adjusting - DOCUMENT ME!

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener l)
DOCUMENT ME!

Specified by:
addChangeListener in interface javax.swing.BoundedRangeModel
Parameters:
l - DOCUMENT ME!

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener l)
DOCUMENT ME!

Specified by:
removeChangeListener in interface javax.swing.BoundedRangeModel
Parameters:
l - DOCUMENT ME!

fireChangeEvent

public void fireChangeEvent()
DOCUMENT ME!