com.tensegrity.composite.coordinate
Class DefaultMutableScaleLinear

java.lang.Object
  extended bycom.tensegrity.composite.coordinate.DefaultScaleLinear
      extended bycom.tensegrity.composite.coordinate.DefaultMutableScaleLinear
All Implemented Interfaces:
MutableScale, Scale

public class DefaultMutableScaleLinear
extends DefaultScaleLinear
implements MutableScale

Mutable version of the linear scale implemented in class DefaultScaleLinear. For a detailed Documentation have a look at the Scale and MutableScale interfaces.

Version:
$Id: DefaultMutableScaleLinear.java,v 1.2 2004/01/12 13:31:05 AndreasEbbert Exp $
Author:
MichaelKegel
See Also:
DefaultScaleLinear, Scale, MutableScale

Field Summary
 
Fields inherited from interface com.tensegrity.composite.coordinate.Scale
TYPE_LINEAR
 
Constructor Summary
DefaultMutableScaleLinear(double minimumScale, double maximumScale)
          Constructor specifying the minimum and maximum value for this scale.
 
Method Summary
 Scale deepCopy()
          Method to deep copy this scale instance.
 void setScaleMaximum(double maximumScale)
          Sets the maximum value for this scale.
 void setScaleMinimum(double minimumScale)
          Sets the minimum value for this scale.
 void setScaleRange(double minimumScale, double maximumScale)
          Sets the range of this scale by specifying a minumum and a maximum value.
 
Methods inherited from class com.tensegrity.composite.coordinate.DefaultScaleLinear
descale, equals, getDescaleFactor, getScaleFactor, getScaleMaximum, getScaleMinimum, getScaleRange, hashCode, scale, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.tensegrity.composite.coordinate.Scale
descale, getDescaleFactor, getScaleFactor, getScaleMaximum, getScaleMinimum, getScaleRange, scale
 

Constructor Detail

DefaultMutableScaleLinear

public DefaultMutableScaleLinear(double minimumScale,
                                 double maximumScale)
Constructor specifying the minimum and maximum value for this scale.

Parameters:
minimumScale - the minimum value of this scale.
maximumScale - the maximum value of this scale.
Method Detail

deepCopy

public Scale deepCopy()
Description copied from interface: Scale
Method to deep copy this scale instance.

Specified by:
deepCopy in interface Scale
Overrides:
deepCopy in class DefaultScaleLinear

setScaleMinimum

public void setScaleMinimum(double minimumScale)
Description copied from interface: MutableScale
Sets the minimum value for this scale.

Specified by:
setScaleMinimum in interface MutableScale
Parameters:
minimumScale - the value ti set as a minimum.

setScaleMaximum

public void setScaleMaximum(double maximumScale)
Description copied from interface: MutableScale
Sets the maximum value for this scale.

Specified by:
setScaleMaximum in interface MutableScale
Parameters:
maximumScale - the value ti set as a maximum.

setScaleRange

public void setScaleRange(double minimumScale,
                          double maximumScale)
Description copied from interface: MutableScale
Sets the range of this scale by specifying a minumum and a maximum value.

Specified by:
setScaleRange in interface MutableScale
Parameters:
minimumScale - the minimum value for this scale.
maximumScale - the maximum value for this scale.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.