ucar.visad.display
Class SelectorDisplayable

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.CompositeDisplayable
          extended by ucar.visad.display.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 Summary
static String PROPERTY_POSITION
          position property
 
Fields inherited from class ucar.visad.display.CompositeDisplayable
cnt, label
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
SelectorDisplayable()
          Simple constructor
SelectorDisplayable(SelectorDisplayable that)
          Construct a SelectorDisplayable from another instance
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener action)
          Adds a listener for data changes.
 boolean getAutoSize()
          Get whether we are autosizing the point as we zoom and pan
 boolean getFiringEvent()
          Get whether we are in the process of firing events
 boolean getOkToFireEvents()
          Get whether events should be fired or not
 float getPointSize()
          Get the point size
protected  void notifyListenersOfMove()
          Wrapper method that around the base class firePropertyChange
 void removePropertyChangeListener(PropertyChangeListener action)
          Removes a listener for data changes.
 void setAutoSize(boolean yesorno)
          Set whether the marker should automatically resize as the display is zoomed.
 void setOkToFireEvents(boolean v)
          Set whether events should be fired or not
 void setPointSize(float size)
          Set the point size of the selector
 
Methods inherited from class ucar.visad.display.CompositeDisplayable
addConstantMap, addDisplayable, addListDataListener, clearDisplayables, cloneForDisplay, debug, destroy, destroyAll, displayableCount, fireListDataContentsChanged, fireListDataIntervalAdded, fireListDataIntervalRemoved, getAnimationSet, getDisplayable, indexOf, iterator, lastDisplayable, myAddDataReferences, myRemoveDataReferences, removeDisplayable, removeDisplayable, removeListDataListener, setAdjustFlow, setColor, setColorPalette, setColorUnit, setConstantPosition, setDisplay, setDisplayable, setDisplayMaster, setDisplayUnit, setLineWidth, setPointMode, setSelectedRange, setUseFastRendering, setUseTimesInAnimation, setVisible, setVisible, setVisible, toFront, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMaps, addDataReferences, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getData, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, hasDataObject, isActive, isUnitCompatible, isVisible, logException, myAddConstantMaps, removeConstantMap, removeDataReferences, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setColorPalette, setContourInfo, setDisplayActive, setDisplayInactive, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_POSITION

public static final String PROPERTY_POSITION
position property

See Also:
Constant Field Values
Constructor Detail

SelectorDisplayable

public SelectorDisplayable()
                    throws VisADException,
                           RemoteException
Simple constructor

Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object

SelectorDisplayable

public SelectorDisplayable(SelectorDisplayable that)
                    throws VisADException,
                           RemoteException
Construct a SelectorDisplayable from another instance

Parameters:
that - other instance
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object
Method Detail

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