Class ImageMovieControl

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

public class ImageMovieControl extends DisplayControlImpl
Class for controlling the display of color images.
Version:
$Revision: 1.71 $
Author:
Jeff McWhirter
  • Field Details

  • Constructor Details

    • ImageMovieControl

      public ImageMovieControl()
      NOOP ctor
  • Method Details

    • getRGBColorTable

      public ColorTable getRGBColorTable()
      Get the color table to use for the image glyphs
      Returns:
      The rgb color table
    • getCursorReadoutInner

      protected List getCursorReadoutInner(EarthLocation el, Real animationValue, int animationStep, List<ReadoutInfo> samples) throws Exception
      _more_
      Overrides:
      getCursorReadoutInner in class DisplayControlImpl
      Parameters:
      el - _more_
      animationValue - _more_
      animationStep - _more_
      samples - _more_
      Returns:
      _more_
      Throws:
      Exception - _more_
    • init

      public boolean init(DataChoice dataChoice) throws VisADException, RemoteException
      Called to make this kind of Display Control; 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
    • 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
    • getFileMenuItems

      protected void getFileMenuItems(List items, boolean forMenuBar)
      Add the relevant file menu items into the list
      Overrides:
      getFileMenuItems in class DisplayControlImpl
      Parameters:
      items - List of menu items
      forMenuBar - Is this for the menu in the window's menu bar or for a popup menu in the legend
    • importImageSet

      public void importImageSet(String path)
      Load in the url or filename. This can be the xml of the image set or the xml of the image set collection
      Parameters:
      path - File or url
    • importImageSetFromFile

      public void importImageSetFromFile()
      Import the image set xml
    • importImageSetFromURL

      public void importImageSetFromURL()
      Import the image set xml
    • shouldAddControlListener

      protected boolean shouldAddControlListener()
      Should we add a control listener
      Overrides:
      shouldAddControlListener in class DisplayControlImpl
      Returns:
      true
    • viewpointChanged

      public void viewpointChanged()
      Handle the viewpoint changed.
      Overrides:
      viewpointChanged in class DisplayControlImpl
    • getViewMenuItems

      protected void getViewMenuItems(List items, boolean forMenuBar)
      Add to view menu
      Overrides:
      getViewMenuItems in class DisplayControlImpl
      Parameters:
      items - List of ites
      forMenuBar - for the menu bar
    • 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
    • doMakeContents

      protected Container doMakeContents() throws VisADException, RemoteException
      Make the gui
      Overrides:
      doMakeContents in class DisplayControlImpl
      Returns:
      The gui
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • setTocFiles

      public void setTocFiles(String files)
      Set the toc files
      Parameters:
      files - toc files
    • timeChanged

      protected void timeChanged(Real time)
      Respond to a timeChange event
      Overrides:
      timeChanged in class DisplayControlImpl
      Parameters:
      time - new time
    • propertyChange

      public void propertyChange(PropertyChangeEvent event)
      Handle property change
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class DisplayControlImpl
      Parameters:
      event - The event
    • loadSelectedImageSet

      public void loadSelectedImageSet()
      Load in the selected image set from the jtree
    • reloadFiles

      public void reloadFiles()
      Reload the files
    • loadFilesFromXml

      public void loadFilesFromXml()
      Load files
    • loadFilesFromXml

      public List[] loadFilesFromXml(String imageSetUrl, Element imageSetRoot)
      _more_
      Parameters:
      imageSetUrl - _more_
      imageSetRoot - _more_
      Returns:
      _more_
    • loadFilesFromDirectory

      public void loadFilesFromDirectory()
      Load in the files from the directory
    • applyZPosition

      protected void applyZPosition() throws VisADException, RemoteException
      Apply the z position to the displayables with FLAG_ZPOSITION set
      Overrides:
      applyZPosition in class DisplayControlImpl
      Throws:
      RemoteException - When bad things happen
      VisADException - When bad things happen
    • dateTypeButtonPressed

      public void dateTypeButtonPressed(Integer v)
      Hook
      Parameters:
      v - New type
    • initDone

      public void initDone()
      initdone
      Overrides:
      initDone in class DisplayControlImpl
    • setDirectory

      public void setDirectory(String value)
      Set the Directory property.
      Parameters:
      value - The new value for Directory
    • getDirectory

      public String getDirectory()
      Get the Directory property.
      Returns:
      The Directory
    • setFiles

      public void setFiles(List value)
      Set the Files property.
      Parameters:
      value - The new value for Files
    • setDateFormat

      public void setDateFormat(String value)
      Set the DateFormat property.
      Parameters:
      value - The new value for DateFormat
    • getDateFormat

      public String getDateFormat()
      Get the DateFormat property.
      Returns:
      The DateFormat
    • setDatePattern

      public void setDatePattern(String value)
      Set the DatePattern property.
      Parameters:
      value - The new value for DatePattern
    • getDatePattern

      public String getDatePattern()
      Get the DatePattern property.
      Returns:
      The DatePattern
    • setEnabled

      public void setEnabled(boolean value)
      Set the Enabled property.
      Parameters:
      value - The new value for Enabled
    • getEnabled

      public boolean getEnabled()
      Get the Enabled property.
      Returns:
      The Enabled
    • setDateType

      public void setDateType(int value)
      Set the DateType property.
      Parameters:
      value - The new value for DateType
    • getDateType

      public int getDateType()
      Get the DateType property.
      Returns:
      The DateType
    • setImageSetUrl

      public void setImageSetUrl(String value)
      Set the ImageSetUrl property.
      Parameters:
      value - The new value for ImageSetUrl
    • getImageSetUrl

      public String getImageSetUrl()
      Get the ImageSetUrl property.
      Returns:
      The ImageSetUrl
    • setDoImageSet

      public void setDoImageSet(boolean value)
      Set the DoImageSet property.
      Parameters:
      value - The new value for DoImageSet
    • getDoImageSet

      public boolean getDoImageSet()
      Get the DoImageSet property.
      Returns:
      The DoImageSet
    • setPointIndex

      public void setPointIndex(int value)
      Set the PointIndex property.
      Parameters:
      value - The new value for PointIndex
    • getPointIndex

      public int getPointIndex()
      Get the PointIndex property.
      Returns:
      The PointIndex
    • setAnimationMode

      public void setAnimationMode(int value)
      Set the AnimationMode property.
      Parameters:
      value - The new value for AnimationMode deprecated Keep around for legacy bundles
    • setExtraCollections

      public void setExtraCollections(List value)
      Set the ExtraCollections property.
      Parameters:
      value - The new value for ExtraCollections
    • getExtraCollections

      public List getExtraCollections()
      Get the ExtraCollections property.
      Returns:
      The ExtraCollections
    • setShowImageInDisplay

      public void setShowImageInDisplay(boolean value)
      Set the ShowImageInDisplay property.
      Parameters:
      value - The new value for ShowImageInDisplay
    • getShowImageInDisplay

      public boolean getShowImageInDisplay()
      Get the ShowImageInDisplay property.
      Returns:
      The ShowImageInDisplay
    • getIsRaster

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

      public static void main(String[] args) throws Exception
      _more_
      Parameters:
      args - _more_
      Throws:
      Exception - _more_