Package edu.wisc.ssec.mcidasv.probes
Class ReadoutProbe.PointSelector
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.visad.display.SelectorDisplayable
edu.wisc.ssec.mcidasv.probes.ReadoutProbe.PointSelector
- Enclosing class:
ReadoutProbe
This class is a reimplementation of
PointProbe
that whose
mouse movement is limited to the x- and y- axes.
To change the position of the instance along the z-axis, try something
like the following:
new PointSelector().setZ(zPosition)
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SelectorPoint
pointSelectorprivate boolean
flag for whether we're in the process of setting the positionFields 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
ConstructorsConstructorDescriptionConstruct a point pointSelector.PointSelector
(double x, double y) Construct a point pointSelector at the location specified.PointSelector
(RealTuple position) Construct a pointSelector at the position specified. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the point scaleGet the position of the pointSelector.Get the selector pointvoid
setAutoSize
(boolean yesorno) Set whether the marker should automatically resize as the display is zoomed.void
setFixed
(boolean x, boolean y, boolean z) Set if any of the axis movements are fixedvoid
Set the type of marker used for the pointSelector.void
setMarker
(VisADGeometryArray marker) Set the type of marker used for the pointSelector.void
setPosition
(double x, double y) Set the pointSelector's x/y positionvoid
setPosition
(RealTuple position) Set the pointSelector's position.void
setZ
(double newz) 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, setManipulable, 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
-
Field Details
-
point
pointSelector -
settingPosition
flag for whether we're in the process of setting the position
-
-
Constructor Details
-
PointSelector
Construct a point pointSelector.- Throws:
VisADException
- Problem creating VisAD object.RemoteException
- Java RMI error.
-
PointSelector
Construct a point pointSelector at the location specified.- Parameters:
x
- X position.y
- Y position.- Throws:
VisADException
- Problem creating VisAD object.RemoteException
- Java RMI error.
-
PointSelector
Construct a pointSelector at the position specified.- Parameters:
position
- Position of the pointSelector.- Throws:
VisADException
- Problem creating VisAD object.RemoteException
- Java RMI error.
-
-
Method Details
-
getSelectorPoint
Get the selector point- Returns:
- the selector point
-
setFixed
Set if any of the axis movements are fixed- Parameters:
x
- x fixedy
- y fixedz
- z fixed
-
setZ
-
getPointScale
Get the point scale- Returns:
- the point scale
-
setMarker
Set the type of marker used for the pointSelector.- Parameters:
marker
- marker as a VisADGeometryArray- Throws:
RemoteException
- Java RMI errorVisADException
- Problem creating VisAD object.
-
setMarker
Set the type of marker used for the pointSelector.- Parameters:
marker
-ShapeUtility
marker.- Throws:
VisADException
- Problem creating VisAD object.RemoteException
- Java RMI 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:
VisADException
- Problem creating VisAD object.RemoteException
- Java RMI error.
-
getPosition
Get the position of the pointSelector.- Returns:
- Current position.
-
setPosition
Set the pointSelector's x/y position- Parameters:
x
- X position.y
- X position.- Throws:
VisADException
- Problem creating VisAD object.RemoteException
- Java RMI error.
-
setPosition
Set the pointSelector's position.- Parameters:
position
- Position of the pointSelector- Throws:
VisADException
- Problem creating VisAD object.RemoteException
- Java RMI error.
-