public class ColorPointEnhancement extends SolidBackground
ColorPointEnhancement
class uses a Palette
and EnhancementFunction
to render a PointFeatureOverlay
to an earth view.ColorEnhanced
,
ColorEnhancement
,
PointFeatureOverlay
changed, image, imageDims, overlays, progress, stopRendering, trans, UPDATE_FRACTION, verbose
Constructor and Description |
---|
ColorPointEnhancement(PointFeatureOverlay overlay,
java.lang.String name,
java.lang.String units,
EarthTransform trans)
Creates a new point enhancement with white background.
|
Modifier and Type | Method and Description |
---|---|
EnhancementFunction |
getFunction()
Gets the enhancement function.
|
Legend |
getLegend()
Gets a data color scale legend for annotation of this color
point enhancement.
|
java.awt.Color |
getMissingColor()
Gets the missing value color.
|
Palette |
getPalette()
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.
|
ColorEnhancementSettings |
saveSettings()
Saves and returns the current settings.
|
void |
setFunction(EnhancementFunction func)
Sets the enhancement function.
|
void |
setMissingColor(java.awt.Color missingColor)
Sets the missing value color.
|
void |
setPalette(Palette pal)
Sets the enhancement color palette.
|
getBackground, prepare, setBackground
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
public ColorPointEnhancement(PointFeatureOverlay overlay, java.lang.String name, java.lang.String units, EarthTransform trans) throws java.awt.geom.NoninvertibleTransformException
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.java.awt.geom.NoninvertibleTransformException
- if the resulting image
transform is not invertible.public Palette getPalette()
public EnhancementFunction getFunction()
public void setPalette(Palette pal)
public void setMissingColor(java.awt.Color missingColor)
public java.awt.Color getMissingColor()
public void setFunction(EnhancementFunction func)
public Legend getLegend()
getLegend
in class EarthDataView
DataColorScale
public void normalize(double units)
units
- the number of standard deviation units above and
below the mean for the data range.public ColorEnhancementSettings saveSettings()
public void restoreSettings(ColorEnhancementSettings settings)
settings
- the settings to restore. Only the palette and
function are used -- the variable name is igored.