Package ucar.unidata.view.sounding
Class WindStaffDisplayRenderer
java.lang.Object
visad.DisplayRenderer
visad.java2d.DisplayRendererJ2D
visad.java2d.DefaultDisplayRendererJ2D
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener for changes to the cursor position.protected double[]Returns the position of the cursor in RealType coordinates.double[]Returns the cursor position.voidRemoves a listener for changes to the cursor position.voidSets the cursor string vector.Methods inherited from class visad.java2d.DefaultDisplayRendererJ2D
createSceneGraph, getMode2D, legalDisplayScalar, setBoxAspect, setLineWidthMethods 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, saveSceneToFile, setClip, setCursorOn, setDirectOn, setDisplay, setScale, setScale, setScale, setScaleOn, setTransform2D, setWaitFlag, unsetClipMethods 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, setWaitMessageVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ucar.unidata.view.sounding.WindProfileDisplayRenderer
setBoxOn, setCursorStringOn
-
Field Details
-
CURSOR_POSITION
The name of the cursor position property.
-
-
Constructor Details
-
WindStaffDisplayRenderer
public WindStaffDisplayRenderer()Constructs from nothing.
-
-
Method Details
-
setCursorStringVector
public void setCursorStringVector()Sets the cursor string vector.- Specified by:
setCursorStringVectorin interfaceWindProfileDisplayRenderer- Overrides:
setCursorStringVectorin classDisplayRenderer
-
getCursorPosition
public double[] getCursorPosition()Returns the cursor position.- Specified by:
getCursorPositionin interfaceWindProfileDisplayRenderer- Returns:
- The cursor position.
-
addCursorPositionListener
Adds a listener for changes to the cursor position.- Specified by:
addCursorPositionListenerin interfaceWindProfileDisplayRenderer- Parameters:
listener- The change listener.
-
removeCursorPositionListener
Removes a listener for changes to the cursor position.- Specified by:
removeCursorPositionListenerin interfaceWindProfileDisplayRenderer- 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.
-