Package noaa.coastwatch.render
Class ColorPointEnhancement
java.lang.Object
noaa.coastwatch.render.EarthDataView
noaa.coastwatch.render.SolidBackground
noaa.coastwatch.render.ColorPointEnhancement
- All Implemented Interfaces:
Cloneable
,Renderable
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:
-
Field Summary
Fields inherited from class noaa.coastwatch.render.EarthDataView
changed, image, imageDims, overlays, progress, stopRendering, trans, UPDATE_FRACTION, verbose
-
Constructor Summary
ConstructorDescriptionColorPointEnhancement
(PointFeatureOverlay overlay, String name, String units, EarthTransform trans) Creates a new point enhancement with white background. -
Method Summary
Modifier and TypeMethodDescriptionGets the enhancement function.Gets a data color scale legend for annotation of this color point enhancement.Gets the missing value color.Gets the enhancement color palette.void
normalize
(double units) Normalizes the enhancement function for this view using the visible grid value statistics.void
restoreSettings
(ColorEnhancementSettings settings) Restores the previously saved settings.Saves and returns the current settings.void
Sets the enhancement function.void
setMissingColor
(Color missingColor) Sets the missing value color.void
setPalette
(Palette pal) Sets the enhancement color palette.Methods inherited from class noaa.coastwatch.render.SolidBackground
getBackground, prepare, setBackground
Methods inherited from class noaa.coastwatch.render.EarthDataView
addOverlay, addOverlays, clone, computeCaches, containsOverlay, getArea, getBounds, getCenter, getCorners, getImageAffine, getOrientationAffine, getOverlays, getProgress, getResolution, getScale, getSize, getSubregion, getTransform, getUpsideDown, hasCompatibleCaches, hasCoordinateCaches, invalidate, isChanged, isPrepared, isRendering, magnify, magnify, magnify, main, removeOverlay, render, reset, resize, resize, resizeHeight, resizeMaxAspect, resizeWidth, setCenter, setCenterAndScale, setChanged, setImageAffine, setProgress, setProperties, setSize, setVerbose, showSubregion, stopRendering, transform, transform
-
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
Gets the enhancement color palette. -
getFunction
Gets the enhancement function. -
setPalette
Sets the enhancement color palette. -
setMissingColor
Sets the missing value color. -
getMissingColor
Gets the missing value color. -
setFunction
Sets the enhancement function. -
getLegend
Gets a data color scale legend for annotation of this color point enhancement.- Overrides:
getLegend
in classEarthDataView
- 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
Saves and returns the current settings. -
restoreSettings
Restores the previously saved settings.- Parameters:
settings
- the settings to restore. Only the palette and function are used -- the variable name is igored.
-