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_POSITIONFields inherited from class ucar.visad.display.CompositeDisplayable
cnt, labelFields 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 TypeMethodDescriptionfloatGet the point's scaleGet the position of the SelectorPoint.Get the selector pointvoidsetAutoSize(boolean yesorno) Set whether the marker should automatically resize as the display is zoomed.voidsetManipulable(boolean manip) set if linprobe can be moved by the user with mouse cursor or notvoidSet the marker text for this selector pointvoidsetMarker(VisADGeometryArray marker) Set the marker for this selector pointvoidsetPointSize(float newSize) Set the size (scale) of the ShapeControl.voidsetPosition(double x, double y) Sets the position of the probe.voidsetPosition(RealTuple position) Sets the position of the probe.Methods inherited from class ucar.visad.display.SelectorDisplayable
addPropertyChangeListener, getAutoSize, getFiringEvent, getOkToFireEvents, getPointSize, notifyListenersOfMove, removePropertyChangeListener, setOkToFireEventsMethods 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, 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
-
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:
setManipulablein 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:
setAutoSizein 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 aPropertyChangeEventforSelectorDisplayable.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 aPropertyChangeEventforSelectorDisplayable.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:
setPointSizein 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
-