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 Summary
Fields inherited from class ucar.visad.display.SelectorDisplayable
PROPERTY_POSITION
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArea()
Get the Area as a RealTuplestatic RealTupleType
Get the MathType of the areavoid
setAutoSize
(boolean yesorno) Set whether the marker should automatically resize as the display is zoomed.void
setManipulable
(boolean manip) set if area probe can be moved by the user with mouse cursor or notvoid
setPosition
(double x1, double y1, double x2, double y2) Sets the position of the probe.void
setPosition
(RealTuple position) Sets the position of the probe.Methods inherited from class ucar.visad.display.SelectorDisplayable
addPropertyChangeListener, getAutoSize, getFiringEvent, getOkToFireEvents, getPointSize, notifyListenersOfMove, removePropertyChangeListener, setOkToFireEvents, setPointSize
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, 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
-
AreaProbe
Construct an AreaProbe with the defaults- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD error
-
AreaProbe
Construct an AreaProbe using the specified position- Parameters:
position
- position for probe- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD error
-
AreaProbe
Construct an AreaProbe using the specified position using the supplied constant- Parameters:
position
- probe positionconstant
- Z position- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD error
-
-
Method Details
-
setManipulable
set if area probe can be moved by the user with mouse cursor or not- Overrides:
setManipulable
in classCompositeDisplayable
- Parameters:
manip
- boolean true if can move- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD error
-
getAreaType
Get the MathType of the area- Returns:
- area's RealTupleType
- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD error
-
getArea
Get the Area as a RealTuple- Returns:
- the area as a RealTuple
- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD error
-
setAutoSize
Set whether the marker should automatically resize as the display is zoomed.- Overrides:
setAutoSize
in classSelectorDisplayable
- Parameters:
yesorno
- true to automatically resize the marker.- Throws:
RemoteException
- Java RMI errorVisADException
- VisAD error
-
setPosition
public void setPosition(double x1, double y1, double x2, double y2) throws VisADException, RemoteException Sets the position of the probe. This method fires aPropertyChangeEvent
forSelectorDisplayable.PROPERTY_POSITION
.This implementation uses
setPosition(RealTuple)
to actually set the position of the probe.- Parameters:
x1
- x position of the upper left cornery1
- y position of the upper left cornerx2
- x position of the lower right cornery2
- y position of the lower right corner- Throws:
VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
setPosition
Sets the position of the probe. This method fires aPropertyChangeEvent
forSelectorDisplayable.PROPERTY_POSITION
.- Parameters:
position
- The position of the probe.- Throws:
NullPointerException
- if the argument isnull
.VisADException
- ifposition.getType().equals( RealTupleType.SpatialCartesian2DTuple)
is false or if another VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.- See Also:
-