ucar.visad.display
Class IndicatorPoint

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.LineDrawing
              extended by ucar.visad.display.IndicatorPoint

public class IndicatorPoint
extends LineDrawing

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

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, VISIBLE
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
IndicatorPoint(IndicatorPoint that)
          Construct a IndicatorPoint from another instance
IndicatorPoint(String name, RealTuple initialValue)
          Construct a IndicatorPoint for the pointType specified with the
IndicatorPoint(String name, RealTupleType pointType)
          Construct a IndicatorPoint for the pointType specified.
 
Method Summary
 Displayable cloneForDisplay()
          Returns a clone of this instance suitable for another VisAD display.
protected  void dataChange()
          Called when the data changes.
 RealTuple getPoint()
          Get the current point.
 void setPoint(RealTuple value)
          Set the point
 
Methods 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, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndicatorPoint

public IndicatorPoint(String name,
                      RealTupleType pointType)
               throws VisADException,
                      RemoteException
Construct a IndicatorPoint for the pointType specified. Initial value is set to 0.

Parameters:
name - name of this IndicatorPoint
pointType - RealType that the point should map to
Throws:
VisADException - VisAD error
RemoteException - remote error

IndicatorPoint

public IndicatorPoint(String name,
                      RealTuple initialValue)
               throws VisADException,
                      RemoteException
Construct a IndicatorPoint for the pointType specified with the

Parameters:
name - name of this IndicatorPoint
initialValue - initial point
Throws:
VisADException - VisAD error
RemoteException - remote error

IndicatorPoint

public IndicatorPoint(IndicatorPoint that)
               throws VisADException,
                      RemoteException
Construct a IndicatorPoint from another instance

Parameters:
that - other instance
Throws:
VisADException - VisAD error
RemoteException - remote error
Method Detail

setPoint

public void setPoint(RealTuple value)
              throws VisADException,
                     RemoteException
Set the point

Parameters:
value - new value for this point
Throws:
VisADException - VisAD error
RemoteException - remote error

cloneForDisplay

public Displayable cloneForDisplay()
                            throws VisADException,
                                   RemoteException
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.

Overrides:
cloneForDisplay in class DisplayableData
Returns:
A semi-deep clone of this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getPoint

public RealTuple getPoint()
Get the current point.

Returns:
the current value for this point

dataChange

protected void dataChange()
                   throws VisADException,
                          RemoteException
Called when the data changes.

Overrides:
dataChange in class DisplayableData
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object