Class VisualOverlay

java.lang.Object
noaa.coastwatch.gui.visual.AbstractVisualObject
noaa.coastwatch.gui.visual.VisualOverlay
All Implemented Interfaces:
ComponentProducer, VisualObject

public class VisualOverlay extends AbstractVisualObject
The VisualOverlay class represents an EarthDataOverlay object as a panel with modification components.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • VisualOverlay

      public VisualOverlay(EarthDataOverlay overlay)
      Creates a new visual overlay object using the specified overlay.
  • Method Details

    • getComponent

      public Component getComponent()
      Gets the panel used to represent the overlay.
    • getValue

      public Object getValue()
      Gets the overlay value.
      Returns:
      the value that this visual object currently holds.
    • hasChooser

      public boolean hasChooser()
      Returns true as this visual object has a chooser.
      Specified by:
      hasChooser in interface VisualObject
      Overrides:
      hasChooser in class AbstractVisualObject
      Returns:
      true if this object has a chooser, or false if not.
    • showChooser

      public void showChooser()
      Shows the overlay property chooser.
      Specified by:
      showChooser in interface VisualObject
      Overrides:
      showChooser in class AbstractVisualObject
    • refreshComponent

      public void refreshComponent()
      Refreshes the component display to show the contents of the current overlay.
      Specified by:
      refreshComponent in interface ComponentProducer
      Overrides:
      refreshComponent in class AbstractVisualObject
    • main

      public static void main(String[] argv)
      Tests this class.
      Parameters:
      argv - the array of command line parameters.