fr.ifremer.isisfish.map
Class DefaultScale

java.lang.Object
  extended by fr.ifremer.isisfish.map.DefaultScale
All Implemented Interfaces:
Scale, Serializable

public class DefaultScale
extends Object
implements Scale

DefaultScale.java Created: Mon Apr 22 16:52:17 2002

Version:
$Revision: 3124 $
Author:
See Also:
Serialized Form

Field Summary
 double max
           
 double min
           
 
Constructor Summary
DefaultScale(double max)
           
DefaultScale(double min, double max)
           
 
Method Summary
 double getMax()
          Get the value of max.
 double getMin()
          Get the value of min.
 int getValueAsRGB(double value)
           
 double getValueAsScale(double value)
          Get the corresponding value between 0.0 and 1.0.
 double getValueAsSqrtScale(double value)
          Get the corresponding square root value between 0.0 and 1.0.
 void setMax(double v)
          Set the value of max.
 void setMin(double v)
          Set the value of min.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

public double min

max

public double max
Constructor Detail

DefaultScale

public DefaultScale(double min,
                    double max)

DefaultScale

public DefaultScale(double max)
Method Detail

getMin

public double getMin()
Get the value of min.

Returns:
value of min.

setMin

public void setMin(double v)
Set the value of min.

Parameters:
v - Value to assign to min.

getMax

public double getMax()
Get the value of max.

Returns:
value of max.

setMax

public void setMax(double v)
Set the value of max.

Parameters:
v - Value to assign to max.

getValueAsScale

public double getValueAsScale(double value)
Description copied from interface: Scale
Get the corresponding value between 0.0 and 1.0.

Specified by:
getValueAsScale in interface Scale
Parameters:
value - value to get scale
Returns:
scale value

getValueAsRGB

public int getValueAsRGB(double value)
Specified by:
getValueAsRGB in interface Scale

getValueAsSqrtScale

public double getValueAsSqrtScale(double value)
Description copied from interface: Scale
Get the corresponding square root value between 0.0 and 1.0.

Specified by:
getValueAsSqrtScale in interface Scale
Parameters:
value - value to get sqrt scale
Returns:
sqrt scale


Copyright © 1999-2011 CodeLutin. All Rights Reserved.