public class SolidBackground extends EarthDataView
changed, image, imageDims, overlays, progress, stopRendering, trans, UPDATE_FRACTION, verbose
Constructor and Description |
---|
SolidBackground(java.awt.Color color)
Constructs a new solid background with the specified color.
|
SolidBackground(EarthTransform trans,
int[] dims,
java.awt.Color color)
Constructs a new solid background with the specified color.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackground()
Gets the background color.
|
protected void |
prepare(java.awt.Graphics2D g)
Prepares this view for rendering using the specified graphics
object.
|
void |
setBackground(java.awt.Color color)
Sets the background color.
|
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
public SolidBackground(java.awt.Color color) throws java.awt.geom.NoninvertibleTransformException
color
- the background color.java.awt.geom.NoninvertibleTransformException
- if the resulting image
transform is not invertible.public SolidBackground(EarthTransform trans, int[] dims, java.awt.Color color) throws java.awt.geom.NoninvertibleTransformException
trans
- the view earth transform.dims
- the grid dimensions to use for this view.color
- the background color.java.awt.geom.NoninvertibleTransformException
- if the resulting image
transform is not invertible.public void setBackground(java.awt.Color color)
public java.awt.Color getBackground()
protected void prepare(java.awt.Graphics2D g)
EarthDataView
prepare
in class EarthDataView