Class SelectorDisplayable

Direct Known Subclasses:
AreaProbe, CrossSectionSelector, LineProbe, PointProbe, ZSelector

public abstract class SelectorDisplayable extends CompositeDisplayable
SelectorDisplayable is an abstract class that manages a list of PropertyChangeListeners. It is used by CrossSectionSelector and others to fire events.
Version:
$Revision: 1.10 $
Author:
Metapps development team
  • Field Details

  • Constructor Details

  • Method Details

    • setAutoSize

      public void setAutoSize(boolean yesorno) throws VisADException, RemoteException
      Set whether the marker should automatically resize as the display is zoomed.
      Parameters:
      yesorno - true to automatically resize the marker.
      Throws:
      RemoteException - Java RMI error
      VisADException - problem creating VisAD object
    • getAutoSize

      public boolean getAutoSize()
      Get whether we are autosizing the point as we zoom and pan
      Returns:
      true if autosize is set.
    • setPointSize

      public void setPointSize(float size) throws VisADException, RemoteException
      Set the point size of the selector
      Overrides:
      setPointSize in class CompositeDisplayable
      Parameters:
      size - size of the selector point
      Throws:
      RemoteException - Java RMI error
      VisADException - problem creating VisAD object
    • getPointSize

      public float getPointSize()
      Get the point size
      Returns:
      the point size
    • getFiringEvent

      public boolean getFiringEvent()
      Get whether we are in the process of firing events
      Returns:
      true if we are in the process of firing events
    • getOkToFireEvents

      public boolean getOkToFireEvents()
      Get whether events should be fired or not
      Returns:
      true if it's okay to fire events
    • setOkToFireEvents

      public void setOkToFireEvents(boolean v)
      Set whether events should be fired or not
      Parameters:
      v - true if it's okay to fire events
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener action)
      Adds a listener for data changes.
      Overrides:
      addPropertyChangeListener in class Displayable
      Parameters:
      action - The listener for changes to the underlying data.
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener action)
      Removes a listener for data changes.
      Overrides:
      removePropertyChangeListener in class Displayable
      Parameters:
      action - The listener for changes to the underlying data.
    • notifyListenersOfMove

      protected void notifyListenersOfMove()
      Wrapper method that around the base class firePropertyChange