Class SolidBackground

java.lang.Object
noaa.coastwatch.render.EarthDataView
noaa.coastwatch.render.SolidBackground
All Implemented Interfaces:
Cloneable, Renderable
Direct Known Subclasses:
ColorPointEnhancement

public class SolidBackground extends EarthDataView
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
  • Constructor Details

    • SolidBackground

      public SolidBackground(Color color) throws NoninvertibleTransformException
      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

      public void setBackground(Color color)
      Sets the background color.
    • getBackground

      public Color getBackground()
      Gets the background color.
    • prepare

      protected void prepare(Graphics2D g)
      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 class EarthDataView