Package rma.util

Class ColorContour

java.lang.Object
rma.util.ColorContour
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable
Direct Known Subclasses:
AspectShadingColorContour, BandedColorContour, CategoricalColorContour, GrayscaleColorContour, LinearColorContour, PrecipColorContour, RGBColorContour, TerrainColorContour, TwoColorColorContour, WaterDepthColorContour

public abstract class ColorContour extends Object implements Cloneable, Serializable, AsciiSerializable
See Also:
  • Field Details

  • Constructor Details

    • ColorContour

      public ColorContour()
  • Method Details

    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Add a PropertyChangeListener to the listener list. The listener is registered for all properties. The same listener object may be added more than once, and will be called as many times as it is added. If listener is null, no exception is thrown and no action is taken.
      Parameters:
      listener - The PropertyChangeListener to be added
    • removePropertyChangeSupport

      public void removePropertyChangeSupport(PropertyChangeListener listener)
    • addExtras

      public void addExtras(JPanel panel, Observer observer)
    • getType

      public static Object getType(ColorContour cc)
    • setScaleToClipping

      public void setScaleToClipping(boolean b)
      Tells the color contour to scale the color gradient between the clipping areas.
      Parameters:
      b - boolean true to scale to the clipping area, false - scale to the max/min
    • getScaleToClipping

      public boolean getScaleToClipping()
    • getTypes

      public static Object[] getTypes()
    • getInstanceForType

      public static ColorContour getInstanceForType(Object type)
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • copyInto

      public void copyInto(ColorContour cc)
    • getMinValue

      public double getMinValue()
    • setMinValue

      public void setMinValue(double d)
    • getMaxValue

      public double getMaxValue()
    • setMaxValue

      public void setMaxValue(double d)
    • getSaturation

      public double getSaturation()
    • setSaturation

      public void setSaturation(double d)
    • getBrightness

      public double getBrightness()
    • setBrightness

      public void setBrightness(double d)
    • getMaxClipping

      public Clipping getMaxClipping()
    • setMaxClipping

      public void setMaxClipping(Clipping c)
    • getMinClipping

      public Clipping getMinClipping()
    • setMinClipping

      public void setMinClipping(Clipping c)
    • getRGB0

      protected abstract double[] getRGB0(double val, double minValue, double maxValue)
    • getRGB0

      protected abstract void getRGB0(double[] rgb, double val, double minValue, double maxValue)
    • getColor

      public Color getColor(double val)
    • getColor

      public Color getColor(double val, double lafc)
    • getRGB

      public int getRGB(double val, double lafc)
    • getRGB

      public int getRGB(double[] rgb, double val, double lafc)
    • read

      public void read(BufferedReader input) throws IOException
      Throws:
      IOException
    • read0

      protected void read0(String type, String param, BufferedReader input) throws IOException
      Throws:
      IOException
    • write

      public void write(BufferedWriter output) throws IOException
      Throws:
      IOException
    • createContourFromAttributes

      public static ColorContour createContourFromAttributes(Map attributes)
    • setAttributes

      protected void setAttributes(Map attributes)
    • getAttributes

      public Map getAttributes()
    • getAttributes

      protected Map getAttributes(Map map)
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful