Class ImageControl

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

public class ImageControl extends BaseImageControl
Class for controlling the display of color images.
Version:
$Revision: 1.28 $
Author:
Jeff McWhirter
  • Constructor Details

    • ImageControl

      public ImageControl()
      Default constructor. Sets the attribute flags used by this particular PlanViewControl
  • Method Details

    • getInitialColorTable

      protected ColorTable getInitialColorTable()
      Overwrite base class method to get an image color table
      Overrides:
      getInitialColorTable in class GridDisplayControl
      Returns:
      The initial color table to use
    • init

      public boolean init(DataChoice dataChoice) throws VisADException, RemoteException
      Called to make this kind of Display Control; also calls code to made the Displayable. This method is called from inside DisplayControlImpl init(several args).
      Overrides:
      init in class DisplayControlImpl
      Parameters:
      dataChoice - the DataChoice of the moment.
      Returns:
      true if successful
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • getExtraLegendComponent

      protected JComponent getExtraLegendComponent(int legendType)
      _more_
      Overrides:
      getExtraLegendComponent in class DisplayControlImpl
      Parameters:
      legendType - _more_
      Returns:
      _more_
    • getControlWidgets

      public void getControlWidgets(List controlWidgets) throws VisADException, RemoteException
      Get control widgets specific to this control.
      Overrides:
      getControlWidgets in class DisplayControlImpl
      Parameters:
      controlWidgets - list of control widgets from other places
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • doMakeContents

      protected Container doMakeContents() throws VisADException, RemoteException
      Override the base class method
      Overrides:
      doMakeContents in class DisplayControlImpl
      Returns:
      the contents
      Throws:
      RemoteException - Java RMI Exception
      VisADException - Problem making data
    • setData

      protected boolean setData(DataChoice dataChoice) throws VisADException, RemoteException
      Called to initialize this control from the given dataChoice; sets levels controls to match data; make data slice at first level; set display's color table and display units.
      Overrides:
      setData in class DisplayControlImpl
      Parameters:
      dataChoice - choice that describes the data to be loaded.
      Returns:
      true if successful
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • haveMultipleFields

      protected boolean haveMultipleFields()
      Return whether the Data held by this display control contains multiple fields (e.g., for the isosurface colored by another parameter
      Overrides:
      haveMultipleFields in class GridDisplayControl
      Returns:
      true if there are multiple fields
    • setMultipleIsTopography

      public void setMultipleIsTopography(boolean v)
      Set the other is topography property.
      Parameters:
      v - true if second parameter is topography
    • getMultipleIsTopography

      public boolean getMultipleIsTopography()
      Get the multiple is topography property.
      Returns:
      true if multiple grid is topography
    • setAlphaFromSlider

      protected void setAlphaFromSlider(float newAlpha)
      Set the alpha
      Overrides:
      setAlphaFromSlider in class BaseImageControl
      Parameters:
      newAlpha - new value
    • getImageFlags

      protected int getImageFlags()
      Get the flags for the image displayable
      Returns:
      the flags
    • setUseTexture

      public void setUseTexture(boolean v)
      Set whether this display should be textured or smoothed. Used by XML persistence (bundles) for the most part.
      Parameters:
      v - true if textured.
    • getUseTexture

      public boolean getUseTexture()
      Get whether this display should be textured or not.
      Returns:
      true if textured.