public class LineProbe extends SelectorDisplayable
PROPERTY_POSITION
cnt, label
DISPLAY, parent, SCALAR_MAP_SET
Constructor and Description |
---|
LineProbe()
Default Constructor
|
LineProbe(double x,
double y,
double z)
Construct a new LineProbe using the x, y, and z positions
|
LineProbe(visad.RealTuple position)
Construct a new LineProbe at the position
|
LineProbe(visad.RealTuple position,
visad.Real constant)
Construct a new LineProbe at the position using a constant
Z value
|
LineProbe(visad.RealTuple position,
visad.RealTuple fixedEndPoint,
visad.Real constant)
Create a new line probe
|
Modifier and Type | Method and Description |
---|---|
float |
getPointScale()
Get the point's scale
|
visad.RealTuple |
getPosition()
Get the position of the SelectorPoint.
|
SelectorPoint |
getSelectorPoint()
Get the selector point
|
void |
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 not
|
void |
setMarker(java.lang.String markerText)
Set the marker text for this selector point
|
void |
setMarker(visad.VisADGeometryArray marker)
Set the marker for this selector point
|
void |
setPointSize(float newSize)
Set the size (scale) of the ShapeControl.
|
void |
setPosition(double x,
double y)
Sets the position of the probe.
|
void |
setPosition(visad.RealTuple position)
Sets the position of the probe.
|
addPropertyChangeListener, getAutoSize, getFiringEvent, getOkToFireEvents, getPointSize, notifyListenersOfMove, removePropertyChangeListener, setOkToFireEvents
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
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
public LineProbe() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic LineProbe(double x, double y, double z) throws visad.VisADException, java.rmi.RemoteException
x
- x positiony
- y positionz
- z positionjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic LineProbe(visad.RealTuple position) throws visad.VisADException, java.rmi.RemoteException
position
- x/y position for the probejava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic LineProbe(visad.RealTuple position, visad.Real constant) throws visad.VisADException, java.rmi.RemoteException
position
- x/y position for the probeconstant
- z position of the selector pointjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic LineProbe(visad.RealTuple position, visad.RealTuple fixedEndPoint, visad.Real constant) throws visad.VisADException, java.rmi.RemoteException
position
- the starting positionfixedEndPoint
- a fixed end pointconstant
- constant valuejava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- VisAD Exceptionpublic void setManipulable(boolean manip) throws visad.VisADException, java.rmi.RemoteException
setManipulable
in class CompositeDisplayable
manip
- boolean true if can movejava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic visad.RealTuple getPosition() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic SelectorPoint getSelectorPoint()
public void setAutoSize(boolean yesorno) throws visad.VisADException, java.rmi.RemoteException
setAutoSize
in class SelectorDisplayable
yesorno
- true to automatically resize the marker.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic void setPosition(double x, double y) throws visad.VisADException, java.rmi.RemoteException
PropertyChangeEvent
for SelectorDisplayable.PROPERTY_POSITION
.
This implementation uses setPosition(RealTuple)
to actually
set the position of the probe.
x
- The X-axis position for the probe.y
- The Y-axis position for the probe.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void setPosition(visad.RealTuple position) throws visad.VisADException, java.rmi.RemoteException
PropertyChangeEvent
for SelectorDisplayable.PROPERTY_POSITION
.position
- The position of the probe.visad.VisADException
- if position.getType().equals(
RealTupleType.SpatialCartesian2DTuple)
is false or if another VisAD failure
occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.RealTupleType.SpatialCartesian2DTuple
public void setMarker(java.lang.String markerText) throws visad.VisADException, java.rmi.RemoteException
markerText
- VisADGeometryArray for markerjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic void setMarker(visad.VisADGeometryArray marker) throws visad.VisADException, java.rmi.RemoteException
marker
- VisADGeometryArray for markerjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic void setPointSize(float newSize) throws visad.VisADException, java.rmi.RemoteException
setPointSize
in class SelectorDisplayable
newSize
- size to use.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic float getPointScale()