ucar.visad.display
Class TrackDisplayable

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.RGBDisplayable
              extended by ucar.visad.display.TrackDisplayable
Direct Known Subclasses:
PickableTrack

public class TrackDisplayable
extends RGBDisplayable

Provides support for a color coded display of a track trace.

Version:
$Revision: 1.12 $
Author:
Don Murray

Field Summary
static String LINE_WIDTH
          The name of the line-width property.
 
Fields inherited from class ucar.visad.display.RGBDisplayable
COLOR_PALETTE, POLYGON_FILL, POLYGON_LINE, POLYGON_POINT, RGB_REAL_TYPE
 
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
TrackDisplayable(String name)
          Constructs an instance with the supplied reference name.
 
Method Summary
 Displayable cloneForDisplay()
          Returns a clone of this instance suitable for another VisAD display.
 float getLineWidth()
          Gets the current line width associated with this LineDrawing
 boolean getUseRGBTypeForSelect()
          Get whether the RGB type is used for the select range.
 void setLineWidth(float lineWidth)
          Sets the width of lines in this Displayable.
 void setTrack(FieldImpl track)
          Set the track to be displayed.
 
Methods inherited from class ucar.visad.display.RGBDisplayable
getAutoScaleColorRange, getColorPalette, getCurvedSize, getPolygonMode, getRangeforColor, getRangeForColor, getRGBRealType, getSelectRealType, hasRange, hasSelectedRange, makeCurvedSizeMap, setAutoScaleColorRange, setColor, setColorPalette, setColorUnit, setCurvedSize, setDisplayUnit, setGreyPalette, setPolygonMode, setRange, setRangeForColor, setRangeForSelect, setRGBRealType, setScalarMaps, setSelectedRange, setSelectRealType, setUseRGBTypeForSelect, setVisADPalette, useDisplayUnitForColor
 
Methods inherited from class ucar.visad.display.DisplayableData
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setManipulable, setPickable, setPointMode, setPointSize, 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, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation, toFront
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LINE_WIDTH

public static String LINE_WIDTH
The name of the line-width property.

Constructor Detail

TrackDisplayable

public TrackDisplayable(String name)
                 throws VisADException,
                        RemoteException
Constructs an instance with the supplied reference name.

Parameters:
name - reference name
Throws:
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object
Method Detail

setTrack

public void setTrack(FieldImpl track)
              throws VisADException,
                     RemoteException
Set the track to be displayed.

Parameters:
track - must have the form (lat,lon, alt) -> param
Throws:
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object

setLineWidth

public void setLineWidth(float lineWidth)
                  throws VisADException,
                         RemoteException
Sets the width of lines in this Displayable.

Overrides:
setLineWidth in class DisplayableData
Parameters:
lineWidth - Width of lines (1 = normal)
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getLineWidth

public float getLineWidth()
Gets the current line width associated with this LineDrawing

Overrides:
getLineWidth in class DisplayableData
Returns:
line width

cloneForDisplay

public Displayable cloneForDisplay()
                            throws RemoteException,
                                   VisADException
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.

getUseRGBTypeForSelect

public boolean getUseRGBTypeForSelect()
Get whether the RGB type is used for the select range.

Overrides:
getUseRGBTypeForSelect in class RGBDisplayable
Returns:
true if the RGB type for the