Package ucar.visad.display
Class AreaProbe
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.visad.display.SelectorDisplayable
ucar.visad.display.AreaProbe
Class for a probe that defines an area.
- Version:
- $Revision: 1.4 $
- Author:
- IDV Development Team
- 
Field SummaryFields inherited from class ucar.visad.display.SelectorDisplayablePROPERTY_POSITIONFields inherited from class ucar.visad.display.CompositeDisplayablecnt, labelFields inherited from class ucar.visad.display.DisplayableDISPLAY, parent, SCALAR_MAP_SET
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetArea()Get the Area as a RealTuplestatic RealTupleTypeGet the MathType of the areavoidsetAutoSize(boolean yesorno) Set whether the marker should automatically resize as the display is zoomed.voidsetManipulable(boolean manip) set if area probe can be moved by the user with mouse cursor or notvoidsetPosition(double x1, double y1, double x2, double y2) Sets the position of the probe.voidsetPosition(RealTuple position) Sets the position of the probe.Methods inherited from class ucar.visad.display.SelectorDisplayableaddPropertyChangeListener, getAutoSize, getFiringEvent, getOkToFireEvents, getPointSize, notifyListenersOfMove, removePropertyChangeListener, setOkToFireEvents, setPointSizeMethods inherited from class ucar.visad.display.CompositeDisplayableaddConstantMap, 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, toStringMethods inherited from class ucar.visad.display.DisplayableaddConstantMaps, 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
- 
Constructor Details- 
AreaProbeConstruct an AreaProbe with the defaults- Throws:
- RemoteException- Java RMI error
- VisADException- VisAD error
 
- 
AreaProbeConstruct an AreaProbe using the specified position- Parameters:
- position- position for probe
- Throws:
- RemoteException- Java RMI error
- VisADException- VisAD error
 
- 
AreaProbeConstruct an AreaProbe using the specified position using the supplied constant- Parameters:
- position- probe position
- constant- Z position
- Throws:
- RemoteException- Java RMI error
- VisADException- VisAD error
 
 
- 
- 
Method Details- 
setManipulableset if area probe can be moved by the user with mouse cursor or not- Overrides:
- setManipulablein class- CompositeDisplayable
- Parameters:
- manip- boolean true if can move
- Throws:
- RemoteException- Java RMI error
- VisADException- VisAD error
 
- 
getAreaTypeGet the MathType of the area- Returns:
- area's RealTupleType
- Throws:
- RemoteException- Java RMI error
- VisADException- VisAD error
 
- 
getAreaGet the Area as a RealTuple- Returns:
- the area as a RealTuple
- Throws:
- RemoteException- Java RMI error
- VisADException- VisAD error
 
- 
setAutoSizeSet whether the marker should automatically resize as the display is zoomed.- Overrides:
- setAutoSizein class- SelectorDisplayable
- Parameters:
- yesorno- true to automatically resize the marker.
- Throws:
- RemoteException- Java RMI error
- VisADException- VisAD error
 
- 
setPositionpublic void setPosition(double x1, double y1, double x2, double y2) throws VisADException, RemoteException Sets the position of the probe. This method fires aPropertyChangeEventforSelectorDisplayable.PROPERTY_POSITION.This implementation uses setPosition(RealTuple)to actually set the position of the probe.- Parameters:
- x1- x position of the upper left corner
- y1- y position of the upper left corner
- x2- x position of the lower right corner
- y2- y position of the lower right corner
- Throws:
- VisADException- if a VisAD failure occurs.
- RemoteException- if a Java RMI failure occurs.
 
- 
setPositionSets the position of the probe. This method fires aPropertyChangeEventforSelectorDisplayable.PROPERTY_POSITION.- Parameters:
- position- The position of the probe.
- Throws:
- NullPointerException- if the argument is- null.
- VisADException- if- position.getType().equals( RealTupleType.SpatialCartesian2DTuple)is false or if another VisAD failure occurs.
- RemoteException- if a Java RMI failure occurs.
- See Also:
 
 
-