Class ColorPointEnhancement

All Implemented Interfaces:
Cloneable, Renderable

public class ColorPointEnhancement extends SolidBackground
The ColorPointEnhancement class uses a Palette and EnhancementFunction to render a PointFeatureOverlay to an earth view.
Since:
3.2.0
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • ColorPointEnhancement

      public ColorPointEnhancement(PointFeatureOverlay overlay, String name, String units, EarthTransform trans) throws NoninvertibleTransformException
      Creates a new point enhancement with white background.
      Parameters:
      overlay - the overlay to use for rendering point data.
      name - the enhancement variable name used for color bar legend.
      units - the enhancement variable units used for color bar legend.
      trans - the view earth transform.
      Throws:
      NoninvertibleTransformException - if the resulting image transform is not invertible.
  • Method Details

    • getPalette

      public Palette getPalette()
      Gets the enhancement color palette.
    • getFunction

      public EnhancementFunction getFunction()
      Gets the enhancement function.
    • setPalette

      public void setPalette(Palette pal)
      Sets the enhancement color palette.
    • setMissingColor

      public void setMissingColor(Color missingColor)
      Sets the missing value color.
    • getMissingColor

      public Color getMissingColor()
      Gets the missing value color.
    • setFunction

      public void setFunction(EnhancementFunction func)
      Sets the enhancement function.
    • getLegend

      public Legend getLegend()
      Gets a data color scale legend for annotation of this color point enhancement.
      Overrides:
      getLegend in class EarthDataView
      Returns:
      the data color scale legend. The legend is constructed with the default font and colors.
      See Also:
    • normalize

      public void normalize(double units)
      Normalizes the enhancement function for this view using the visible grid value statistics.
      Parameters:
      units - the number of standard deviation units above and below the mean for the data range.
    • saveSettings

      public ColorEnhancementSettings saveSettings()
      Saves and returns the current settings.
    • restoreSettings

      public void restoreSettings(ColorEnhancementSettings settings)
      Restores the previously saved settings.
      Parameters:
      settings - the settings to restore. Only the palette and function are used -- the variable name is igored.