Class BaseImageControl

All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, DisplayControl, Prototypable, ControlListener, DisplayListener
Direct Known Subclasses:
ImageControl, ImageSequenceControl

public abstract class BaseImageControl extends GridDisplayControl
A DisplayControl for handling image sequences
Version:
$Revision: 1.10 $ $Date: 2007/08/09 17:21:31 $
Author:
Don Murray
  • Field Details

    • emptyRGBImage

      protected static FieldImpl emptyRGBImage
      empty RGB image deprecated use public EMPTY_RGB_IMAGE
    • emptyImage

      protected static FieldImpl emptyImage
      empty sequence deprecated use public EMPTY_IMAGE
    • EMPTY_RGB_IMAGE

      public static FieldImpl EMPTY_RGB_IMAGE
      empty RGB image
    • EMPTY_IMAGE

      public static FieldImpl EMPTY_IMAGE
      empty sequence
  • Constructor Details

    • BaseImageControl

      public BaseImageControl()
      Default ctor; sets the attribute flags
  • Method Details

    • getDataProjectionLabel

      protected String getDataProjectionLabel()
      What label to use for the data projection
      Overrides:
      getDataProjectionLabel in class DisplayControlImpl
      Returns:
      label
    • getWorkingImage

      protected FieldImpl getWorkingImage(FieldImpl image) throws VisADException
      Applies skip value if necessary
      Parameters:
      image - original image
      Returns:
      blown down image if we have a skip value
      Throws:
      VisADException - On badness
    • getSkipWidgetLabel

      public String getSkipWidgetLabel()
      Return the label that is to be used for the skip widget This allows derived classes to override this and provide their own name,
      Overrides:
      getSkipWidgetLabel in class DisplayControlImpl
      Returns:
      Label used for the line width widget
    • doMakeAlphaSlider

      protected JComponent doMakeAlphaSlider()
      Make the alpha slider
      Returns:
      alpha slider component
    • setAlpha

      public void setAlpha(float f)
      Set the alpha
      Parameters:
      f - Alpha
    • getAlpha

      public float getAlpha()
      Get the alpha
      Returns:
      Get the alpha
    • setAlphaFromSlider

      protected void setAlphaFromSlider(float newAlpha)
      Set the alpha
      Parameters:
      newAlpha - new value
    • setInverseAlphaFromSlider

      public void setInverseAlphaFromSlider(int sliderValue)
      Called on slider action
      Parameters:
      sliderValue - slider value
    • showSkipFactorSlider

      protected boolean showSkipFactorSlider()
      Flag for showing the SkipFactorSlider. Subclasses can override if they don't want to show it.
      Returns:
      true
    • getIsRaster

      public boolean getIsRaster()
      Is this a raster display?
      Overrides:
      getIsRaster in class DisplayControlImpl
      Returns:
      true if raster