Class DisplayInfo

java.lang.Object
ucar.unidata.idv.DisplayInfo

public class DisplayInfo extends Object
This class contains the triple: DisplayControl, Displayable and ViewManager. It is held by the ViewManager to know which DisplayControls are displaying in the ViewManager. It is held by the control/DisplayControlImpl to known which Displayable is displayed in which ViewManager.
Author:
IDV development team
  • Constructor Details

    • DisplayInfo

      public DisplayInfo(DisplayControl displayControl, ViewManager viewManager, Displayable displayable)
      Create this display info.
      Parameters:
      displayControl - The display control
      viewManager - The view manager
      displayable - The displayable
  • Method Details

    • getUltimateVisible

      public boolean getUltimateVisible()
      Get the ultimate visible property
      Returns:
      Is displayable visible
    • setUltimateVisible

      public void setUltimateVisible(boolean v)
      Set the ultimate visible property
      Parameters:
      v - Is displayable visible
    • getDisplayControl

      public DisplayControl getDisplayControl()
      Return the DisplayControl
      Returns:
      The display control
    • getViewManager

      public ViewManager getViewManager()
      Return the ViewManager
      Returns:
      The view manager
    • setViewManager

      public void setViewManager(ViewManager viewManager)
      Set the view manager
      Parameters:
      viewManager - The view manager
    • getDisplayMaster

      public DisplayMaster getDisplayMaster()
      Get the DisplayMaster. This just gets the display master from the view manager.
      Returns:
      The display master
    • getDisplayable

      public Displayable getDisplayable()
      Get the Displayable.
      Returns:
      The displayable
    • addDisplayable

      public void addDisplayable() throws RemoteException, VisADException
      Add this displayInfo to the ViewManager.
      Throws:
      RemoteException - the remote exception
      VisADException - the VisAD exception
    • getDisplayableAdded

      public boolean getDisplayableAdded()
      Has the displayable that this DisplayInfo holds been added to the viewmanager
      Returns:
      Has the displayable been added.
    • setDisplayableAdded

      public void setDisplayableAdded(boolean v)
      Sets the displayable added.
      Parameters:
      v - the new displayable added
    • moveTo

      public void moveTo(ViewManager newViewManager) throws RemoteException, VisADException
      Move the displayable to the newViewManager
      Parameters:
      newViewManager - The new view manager
      Throws:
      RemoteException - the remote exception
      VisADException - the VisAD exception
    • activateDisplay

      public void activateDisplay() throws RemoteException, VisADException
      Tells the ViewManager to set the display master active.
      Throws:
      RemoteException - the remote exception
      VisADException - the VisAD exception
    • deactivateDisplay

      public void deactivateDisplay() throws RemoteException, VisADException
      Tells the ViewManager to set the display master inactive
      Throws:
      RemoteException - the remote exception
      VisADException - the VisAD exception
    • removeDisplayable

      public void removeDisplayable() throws RemoteException, VisADException
      Remove the displayable from the view manager
      Throws:
      RemoteException - the remote exception
      VisADException - the VisAD exception
    • toString

      public String toString()
      Overrides:
      toString in class Object