Package ucar.visad.display
Class LineProbe
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.visad.display.SelectorDisplayable
ucar.visad.display.LineProbe
Class for a probe.
- Version:
- $Revision: 1.20 $
- Author:
- Don Murray
-
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
ConstructorsConstructorDescriptionDefault ConstructorLineProbe
(double x, double y, double z) Construct a new LineProbe using the x, y, and z positionsConstruct a new LineProbe at the positionConstruct a new LineProbe at the position using a constant Z valueCreate a new line probe -
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the point's scaleGet the position of the SelectorPoint.Get the selector pointvoid
setAutoSize
(boolean yesorno) Set whether the marker should automatically resize as the display is zoomed.void
setManipulable
(boolean manip) set if linprobe can be moved by the user with mouse cursor or notvoid
Set the marker text for this selector pointvoid
setMarker
(VisADGeometryArray marker) Set the marker for this selector pointvoid
setPointSize
(float newSize) Set the size (scale) of the ShapeControl.void
setPosition
(double x, double y) 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
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
-
LineProbe
Default Constructor- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
LineProbe
Construct a new LineProbe using the x, y, and z positions- Parameters:
x
- x positiony
- y positionz
- z position- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
LineProbe
Construct a new LineProbe at the position- Parameters:
position
- x/y position for the probe- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
LineProbe
Construct a new LineProbe at the position using a constant Z value- Parameters:
position
- x/y position for the probeconstant
- z position of the selector point- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
LineProbe
public LineProbe(RealTuple position, RealTuple fixedEndPoint, Real constant) throws VisADException, RemoteException Create a new line probe- Parameters:
position
- the starting positionfixedEndPoint
- a fixed end pointconstant
- constant value- Throws:
RemoteException
- Java RMI ExceptionVisADException
- VisAD Exception
-
-
Method Details
-
setManipulable
set if linprobe 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
- problem creating VisAD object
-
getPosition
Get the position of the SelectorPoint.- Returns:
- position in XY space
- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
getSelectorPoint
Get the selector point- Returns:
- the point
-
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
- problem creating VisAD object
-
setPosition
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:
x
- The X-axis position for the probe.y
- The Y-axis position for the probe.- 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:
VisADException
- ifposition.getType().equals( RealTupleType.SpatialCartesian2DTuple)
is false or if another VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.- See Also:
-
setMarker
Set the marker text for this selector point- Parameters:
markerText
- VisADGeometryArray for marker- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
setMarker
Set the marker for this selector point- Parameters:
marker
- VisADGeometryArray for marker- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
setPointSize
Set the size (scale) of the ShapeControl. Usually done to set the initial size.- Overrides:
setPointSize
in classSelectorDisplayable
- Parameters:
newSize
- size to use.- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
getPointScale
public float getPointScale()Get the point's scale- Returns:
- the scale of the point
-