Class DefaultScale

java.lang.Object
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$
Author:
See Also:
  • 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 interface Scale
      Parameters:
      value - value to get scale
      Returns:
      scale value
    • getValueAsRGB

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