ucar.unidata.view.sounding
Class WindStaffDisplayRenderer

java.lang.Object
  extended by visad.DisplayRenderer
      extended by visad.java2d.DisplayRendererJ2D
          extended by visad.java2d.DefaultDisplayRendererJ2D
              extended by ucar.unidata.view.sounding.WindStaffDisplayRenderer
All Implemented Interfaces:
EventListener, WindProfileDisplayRenderer, ControlListener, RendererSourceListener

public class WindStaffDisplayRenderer
extends DefaultDisplayRendererJ2D
implements WindProfileDisplayRenderer

Provides support for a VisAD DisplayRenderer for a wind-staff display.

Version:
$Id: WindStaffDisplayRenderer.java,v 1.12 2005/05/13 18:33:42 jeffmc Exp $
Author:
Steven R. Emmerson, Unidata/UCAR

Field Summary
static String CURSOR_POSITION
          The name of the cursor position property.
 
Constructor Summary
WindStaffDisplayRenderer()
          Constructs from nothing.
 
Method Summary
 void addCursorPositionListener(PropertyChangeListener listener)
          Adds a listener for changes to the cursor position.
protected  double[] getCursorInDisplayCoords()
          Returns the position of the cursor in RealType coordinates.
 double[] getCursorPosition()
          Returns the cursor position.
 void removeCursorPositionListener(PropertyChangeListener listener)
          Removes a listener for changes to the cursor position.
 void setCursorStringVector()
          Sets the cursor string vector.
 
Methods inherited from class visad.java2d.DefaultDisplayRendererJ2D
createSceneGraph, getMode2D, legalDisplayScalar, setBoxAspect, setLineWidth
 
Methods inherited from class visad.java2d.DisplayRendererJ2D
addDirectManipulationSceneGraphComponent, addKeyboardBehavior, addSceneGraphComponent, anyCursorStringVector, anyDirects, clearScale, clearScales, clearScene, controlChanged, createBasicSceneGraph, createBasicSceneGraph, depth_cursor, drag_cursor, drag_depth, drawCursorStringVector, findDirect, getBoxOnBranch, getCanvas, getCursor, getCursorOnBranch, getDirect, getImage, getMouseBehavior, getNonDirect, getRoot, getTextureHeightMax, getTextureWidthMax, getTrans, initControl, legalDataRenderer, makeControl, makeDefaultRenderer, render_trigger, rendererDeleted, setClip, setCursorOn, setDirectOn, setDisplay, setScale, setScale, setScale, setScaleOn, setTransform2D, setWaitFlag, unsetClip
 
Methods inherited from class visad.DisplayRenderer
getAnimationString, getAnimationStringVisible, getBoxOn, getCursorColor, getCursorStringVector, getCursorStringVectorUnconditional, getDirectAxisValue, getDirectAxisValue, getDisplay, getPickThreshhold, getRendererControl, getRotateAboutCenter, getScaleRotation, getWaitFlag, getWaitMessageVisible, prepareAction, setAnimationString, setAnimationStringVisible, setBackgroundColor, setBackgroundColor, setBoxColor, setBoxColor, setBoxOn, setCursorColor, setCursorColor, setCursorStringOn, setCursorStringVector, setForegroundColor, setForegroundColor, setPickThreshhold, setRotateAboutCenter, setScaleRotation, setWaitMessageVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.unidata.view.sounding.WindProfileDisplayRenderer
setBoxOn, setCursorStringOn
 

Field Detail

CURSOR_POSITION

public static String CURSOR_POSITION
The name of the cursor position property.

Constructor Detail

WindStaffDisplayRenderer

public WindStaffDisplayRenderer()
Constructs from nothing.

Method Detail

setCursorStringVector

public void setCursorStringVector()
Sets the cursor string vector.

Specified by:
setCursorStringVector in interface WindProfileDisplayRenderer
Overrides:
setCursorStringVector in class DisplayRenderer

getCursorPosition

public double[] getCursorPosition()
Returns the cursor position.

Specified by:
getCursorPosition in interface WindProfileDisplayRenderer
Returns:
The cursor position.

addCursorPositionListener

public void addCursorPositionListener(PropertyChangeListener listener)
Adds a listener for changes to the cursor position.

Specified by:
addCursorPositionListener in interface WindProfileDisplayRenderer
Parameters:
listener - The change listener.

removeCursorPositionListener

public void removeCursorPositionListener(PropertyChangeListener listener)
Removes a listener for changes to the cursor position.

Specified by:
removeCursorPositionListener in interface WindProfileDisplayRenderer
Parameters:
listener - The change listener.

getCursorInDisplayCoords

protected double[] getCursorInDisplayCoords()
Returns the position of the cursor in RealType coordinates.

Returns:
The position of the cursor in RealType coordinates.