Package ucar.visad.display
Class SelectorPoint
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.visad.display.SelectorPoint
Displayable to encompass a manipulable point that can be moved
around the display. If you want to limit the movement to one
axis, then construct the RealTuple with one element whose RealType
corresponds to that axis.
- Version:
- $Revision: 1.26 $
- Author:
- Don Murray
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
-
Field Summary
Fields inherited from class ucar.visad.display.LineDrawing
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
Fields inherited from class ucar.visad.display.DisplayableData
MANIPULABLE, renderer, VISIBLE
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
-
Constructor Summary
ConstructorsConstructorDescriptionSelectorPoint
(String name, String markerText, RealTuple initialValue) Construct a SelectorPoint.SelectorPoint
(String name, RealTuple initialValue) Construct a SelectorPoint for the pointType specified with the specified intial value.SelectorPoint
(String name, RealTupleType pointType) Construct a SelectorPoint for the pointType specified.SelectorPoint
(String name, VisADGeometryArray marker, RealTuple initialValue) Construct a SelectorPoint for the pointType specified with theSelectorPoint
(SelectorPoint that) Construct a SelectorPoint from another instance -
Method Summary
Modifier and TypeMethodDescriptionReturns a clone of this instance suitable for another VisAD display.protected void
Called when the data changes.getAnimationSet
(RealType aniType, boolean force) _more_boolean
Get whether the marker is automatically resized as the display is zoomed.Get the marker for this selector pointgetPoint()
Get the current point.float
getScale()
Get the scale of the ShapeControl.static VisADGeometryArray
reduce
(VisADGeometryArray marker) Reduce the size of the markervoid
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 marker text for this selector pointvoid
setMarker
(VisADGeometryArray marker) Set the marker for this selector pointvoid
Set the point.void
setPoint
(RealTuple value, VisADGeometryArray marker) _more_void
setPointSize
(float newSize) Set the size (scale) of the ShapeControl.void
setPointWithTime
(RealTuple value, List times) _more_void
setScale
(float newScale) _more_Methods inherited from class ucar.visad.display.LineDrawing
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setRGB, setRGB, setRGBA, setRGBA
Methods inherited from class ucar.visad.display.DisplayableData
addAction, destroy, getActive, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toString
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront
-
Constructor Details
-
SelectorPoint
Construct a SelectorPoint for the pointType specified. Initial value is set to 0.- Parameters:
name
- name of this SelectorPointpointType
- RealType that the point should map to- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
SelectorPoint
Construct a SelectorPoint for the pointType specified with the specified intial value.- Parameters:
name
- name of this SelectorPointinitialValue
- RealTuple position for point- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
SelectorPoint
public SelectorPoint(String name, String markerText, RealTuple initialValue) throws VisADException, RemoteException Construct a SelectorPoint.- Parameters:
name
- name of this SelectorPointmarkerText
- text for the markerinitialValue
- RealTuple position for point- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
SelectorPoint
public SelectorPoint(String name, VisADGeometryArray marker, RealTuple initialValue) throws VisADException, RemoteException Construct a SelectorPoint for the pointType specified with the- Parameters:
name
- name of this SelectorPointmarker
- Shape to use for makerinitialValue
- RealTuple position for point- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
SelectorPoint
Construct a SelectorPoint from another instance- Parameters:
that
- other instance- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
-
Method Details
-
getAnimationSet
_more_- Overrides:
getAnimationSet
in classDisplayableData
- Parameters:
aniType
- _more_force
- _more_- Returns:
- _more_
- Throws:
RemoteException
- _more_VisADException
- _more_- See Also:
-
setFixed
public void setFixed(boolean x, boolean y, boolean z) Set if any of the axis movements are fixed- Parameters:
x
- x fixedy
- y fixedz
- z fixed
-
setPoint
Set the point.- Parameters:
value
- new value for this point- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
setPoint
public void setPoint(RealTuple value, VisADGeometryArray marker) throws VisADException, RemoteException _more_- Parameters:
value
- _more_marker
- _more_- Throws:
RemoteException
- _more_VisADException
- _more_
-
setPointWithTime
_more_- Parameters:
value
- _more_times
- _more_- Throws:
RemoteException
- _more_VisADException
- _more_
-
cloneForDisplay
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.- Overrides:
cloneForDisplay
in classDisplayableData
- Returns:
- A semi-deep clone of this instance.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getPoint
Get the current point.- Returns:
- the current value for this point
-
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 classLineDrawing
- Parameters:
newSize
- size to use.- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
setScale
_more_- Parameters:
newScale
- _more_- Throws:
RemoteException
- _more_VisADException
- _more_
-
getScale
public float getScale()Get the scale of the ShapeControl.- Returns:
- current scale;
-
getMarker
Get the marker for this selector point- Returns:
- VisADGeometryArray for marker
-
setAutoSize
Set whether the marker should automatically resize as the display is zoomed.- Parameters:
yesorno
- true to automatically resize the marker.- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
getAutoSize
public boolean getAutoSize()Get whether the marker is automatically resized as the display is zoomed.- Returns:
- true if marker is automatically resized.
-
dataChange
Called when the data changes.- Overrides:
dataChange
in classDisplayableData
- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
reduce
Reduce the size of the marker- Parameters:
marker
- marker to reduce- Returns:
- reduced marker
-