Package ucar.visad.display
Class SelectorDisplayable
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.visad.display.SelectorDisplayable
- Direct Known Subclasses:
AreaProbe,CrossSectionSelector,LineProbe,PointProbe,ZSelector
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
FieldsFields inherited from class ucar.visad.display.CompositeDisplayable
cnt, labelFields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET -
Constructor Summary
ConstructorsConstructorDescriptionSimple constructorConstruct a SelectorDisplayable from another instance -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener for data changes.booleanGet whether we are autosizing the point as we zoom and panbooleanGet whether we are in the process of firing eventsbooleanGet whether events should be fired or notfloatGet the point sizeprotected voidWrapper method that around the base class firePropertyChangevoidRemoves a listener for data changes.voidsetAutoSize(boolean yesorno) Set whether the marker should automatically resize as the display is zoomed.voidsetOkToFireEvents(boolean v) Set whether events should be fired or notvoidsetPointSize(float size) Set the point size of the selectorMethods 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, setManipulable, setPointMode, setSelectedRange, setUseFastRendering, setUseTimesInAnimation, setVisible, setVisible, setVisible, toFront, toStringMethods inherited from class ucar.visad.display.Displayable
addConstantMaps, addDataReferences, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getData, getDestroyed, 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
-
Field Details
-
PROPERTY_POSITION
position property- See Also:
-
-
Constructor Details
-
SelectorDisplayable
Simple constructor- Throws:
RemoteException- Java RMI errorVisADException- problem creating VisAD object
-
SelectorDisplayable
Construct a SelectorDisplayable from another instance- Parameters:
that- other instance- Throws:
RemoteException- Java RMI errorVisADException- problem creating VisAD object
-
-
Method Details
-
setAutoSize
Set whether the marker should automatically resize as the display is zoomed.- Parameters:
yesorno- true to automatically resize the marker.- Throws:
RemoteException- Java RMI errorVisADException- 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
Set the point size of the selector- Overrides:
setPointSizein classCompositeDisplayable- Parameters:
size- size of the selector point- Throws:
RemoteException- Java RMI errorVisADException- 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
Adds a listener for data changes.- Overrides:
addPropertyChangeListenerin classDisplayable- Parameters:
action- The listener for changes to the underlying data.
-
removePropertyChangeListener
Removes a listener for data changes.- Overrides:
removePropertyChangeListenerin classDisplayable- Parameters:
action- The listener for changes to the underlying data.
-
notifyListenersOfMove
protected void notifyListenersOfMove()Wrapper method that around the base class firePropertyChange
-