Package fr.ifremer.isisfish.map
Class DefaultScale
java.lang.Object
fr.ifremer.isisfish.map.DefaultScale
- All Implemented Interfaces:
Scale
,Serializable
DefaultScale.java
Created: Mon Apr 22 16:52:17 2002
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
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.void
setMax
(double v) Set the value of max.void
setMin
(double v) Set the value of min.
-
Field Details
-
min
public double min -
max
public double max
-
-
Constructor Details
-
DefaultScale
public DefaultScale(double min, double max) -
DefaultScale
public DefaultScale(double max)
-
-
Method Details
-
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 interfaceScale
- Parameters:
value
- value to get scale- Returns:
- scale value
-
getValueAsRGB
public int getValueAsRGB(double value) - Specified by:
getValueAsRGB
in interfaceScale
-