ucar.unidata.view.sounding
Class DR

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

public class DR
extends DefaultDisplayRendererJ2D

Provides a 2-D VisAD display for a Skew T, Log P Diagram (alias "Skew-T Chart"). Instances of this class use a protected coordinate system that maps between (PRESSURE,TEMPERATURE) and (Display.XAxis,Display.YAxis).

Version:
$Id: DR.java,v 1.10 2005/05/13 18:33:27 jeffmc Exp $
Author:
Steven R. Emmerson

Constructor Summary
DR()
          Constructs from nothing.
 
Method Summary
 void enableBackground()
          Adds the background.
static void main(String[] args)
          Tests this class.
protected  UnionSet newYContours()
          Returns new Y contours.
 
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, getWaitFlag, getWaitMessageVisible, prepareAction, setAnimationString, setAnimationStringVisible, setBackgroundColor, setBackgroundColor, setBoxColor, setBoxColor, setBoxOn, setCursorColor, setCursorColor, setCursorStringOn, setCursorStringVector, setCursorStringVector, setForegroundColor, setForegroundColor, setPickThreshhold, setWaitMessageVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DR

public DR()
Constructs from nothing.

Method Detail

enableBackground

public void enableBackground()
                      throws VisADException
Adds the background.

Throws:
VisADException - if a core VisAD failure occurs.

newYContours

protected UnionSet newYContours()
                         throws VisADException
Returns new Y contours.

Returns:
New Y contours.
Throws:
VisADException - if a core VisAD failure occurs.

main

public static void main(String[] args)
                 throws Exception
Tests this class.

Parameters:
args - Execution arguments.
Throws:
Exception - Something went wrong.