Package noaa.coastwatch.render
Class SolidBackground
java.lang.Object
noaa.coastwatch.render.EarthDataView
noaa.coastwatch.render.SolidBackground
- All Implemented Interfaces:
Cloneable
,Renderable
- Direct Known Subclasses:
ColorPointEnhancement
The solid background class is an earth data view that creates a
solid image of color to help view overlay graphics.
- Since:
- 3.1.2
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.render.EarthDataView
changed, image, imageDims, overlays, progress, stopRendering, trans, UPDATE_FRACTION, verbose
-
Constructor Summary
ConstructorDescriptionSolidBackground
(Color color) Constructs a new solid background with the specified color.SolidBackground
(EarthTransform trans, int[] dims, Color color) Constructs a new solid background with the specified color. -
Method Summary
Modifier and TypeMethodDescriptionGets the background color.protected void
Prepares this view for rendering using the specified graphics object.void
setBackground
(Color color) Sets the background color.Methods inherited from class noaa.coastwatch.render.EarthDataView
addOverlay, addOverlays, clone, computeCaches, containsOverlay, getArea, getBounds, getCenter, getCorners, getImageAffine, getLegend, 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
-
SolidBackground
Constructs a new solid background with the specified color. The transform is set to an internal default transform.- Parameters:
color
- the background color.- Throws:
NoninvertibleTransformException
- if the resulting image transform is not invertible.- Since:
- 3.3.1
-
SolidBackground
public SolidBackground(EarthTransform trans, int[] dims, Color color) throws NoninvertibleTransformException Constructs a new solid background with the specified color.- Parameters:
trans
- the view earth transform.dims
- the grid dimensions to use for this view.color
- the background color.- Throws:
NoninvertibleTransformException
- if the resulting image transform is not invertible.
-
-
Method Details
-
setBackground
Sets the background color. -
getBackground
Gets the background color. -
prepare
Description copied from class:EarthDataView
Prepares this view for rendering using the specified graphics object. This method is called when any changes have occurred that require the view to be completely reconstructed, such as a change in view size or data window.- Specified by:
prepare
in classEarthDataView
-