Package ucar.visad.display
Class IndicatorPoint
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.visad.display.IndicatorPoint
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.6 $
- 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
ConstructorsConstructorDescriptionIndicatorPoint
(String name, RealTuple initialValue) Construct a IndicatorPoint for the pointType specified with theIndicatorPoint
(String name, RealTupleType pointType) Construct a IndicatorPoint for the pointType specified.IndicatorPoint
(IndicatorPoint that) Construct a IndicatorPoint 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.getPoint()
Get the current point.void
Set the pointMethods inherited from class ucar.visad.display.LineDrawing
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA
Methods inherited from class ucar.visad.display.DisplayableData
addAction, destroy, getActive, getAnimationSet, 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
-
IndicatorPoint
Construct a IndicatorPoint for the pointType specified. Initial value is set to 0.- Parameters:
name
- name of this IndicatorPointpointType
- RealType that the point should map to- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
IndicatorPoint
Construct a IndicatorPoint for the pointType specified with the- Parameters:
name
- name of this IndicatorPointinitialValue
- initial point- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
IndicatorPoint
Construct a IndicatorPoint from another instance- Parameters:
that
- other instance- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
-
Method Details
-
setPoint
Set the point- Parameters:
value
- new value for this point- Throws:
VisADException
- VisAD errorRemoteException
- remote error
-
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
-
dataChange
Called when the data changes.- Overrides:
dataChange
in classDisplayableData
- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-