ucar.unidata.ui.symbol
Class WindVectorSymbol

java.lang.Object
  extended by ucar.unidata.ui.drawing.Glyph
      extended by ucar.unidata.ui.drawing.RectangleGlyph
          extended by ucar.unidata.ui.symbol.MetSymbol
              extended by ucar.unidata.ui.symbol.WindBarbSymbol
                  extended by ucar.unidata.ui.symbol.WindVectorSymbol
All Implemented Interfaces:
Cloneable

public class WindVectorSymbol
extends WindBarbSymbol

Class description

Version:
Enter version here..., Wed, Jun 8, '11
Author:
Enter your name here...

Nested Class Summary
static class WindVectorSymbol.VectorDrawer
          Class VectorDrawer knows how to draw wind vectors
 
Nested classes/interfaces inherited from class ucar.unidata.ui.symbol.WindBarbSymbol
WindBarbSymbol.WindDrawer
 
Field Summary
 
Fields inherited from class ucar.unidata.ui.symbol.WindBarbSymbol
DEG_TO_RAD
 
Fields inherited from class ucar.unidata.ui.symbol.MetSymbol
ATTR_PARAMID, canvas, propertiesDialog
 
Fields inherited from class ucar.unidata.ui.drawing.RectangleGlyph
ATTR_RECTTYPE, bounds, CIRCLE, FCIRCLE, FRECTANGLE, FROUNDRECT, RECTANGLE, ROUNDRECT, TYPE_CIRCLE, TYPE_RECT, TYPE_RRECT
 
Fields inherited from class ucar.unidata.ui.drawing.Glyph
ATTR_BGCOLOR, ATTR_CHILDREN, ATTR_CLASS, ATTR_COLOR, ATTR_FILL, ATTR_HEIGHT, ATTR_IMAGE, ATTR_LINEWIDTH, ATTR_PARENT, ATTR_PTS, ATTR_STRETCHY, ATTR_TEXT, ATTR_TYPE, ATTR_WIDTH, baseline, H_SEL_WIDTH, highlightColor, idToGlyph, MIN_DISTANCE_TO_STRETCH, PT_CENTER, PT_H_LEFT, PT_H_MIDDLE, PT_H_RIGHT, PT_LL, PT_LM, PT_LR, PT_ML, PT_MM, PT_MR, PT_P1, PT_P2, PT_PREFIX, PT_UL, PT_UM, PT_UR, PT_V_LOWER, PT_V_MIDDLE, PT_V_UPPER, RECTPOINTNAMES, RECTPOINTS, SEL_WIDTH, TAG_GLYPH, underline, url
 
Constructor Summary
WindVectorSymbol()
          Create a WindVectorSymbol
WindVectorSymbol(DisplayCanvas canvas, int x, int y)
          Create a wind vector symbol
WindVectorSymbol(DisplayCanvas canvas, int x, int y, String uOrSpeedParam, String uOrSpeedDescr, String vOrDirParam, String vOrDirDescr)
          Construct a WindVectorSymbol to use on the canvas specified at the position specified.
WindVectorSymbol(int x, int y, String uOrSpeedParam, String uOrSpeedDescr, String vOrDirParam, String vOrDirDescr)
          Construct a WindVectorSymbol to use on the canvas specified at the position specified.
 
Method Summary
protected  WindBarbSymbol.WindDrawer makeDrawer()
          Make the drawer for this symbol
 VisADGeometryArray[] makeVector(float[][] flow_values, float flowScale, float[][] spatial_values, byte[][] color_values, boolean[][] range_select)
          make the vector.
 
Methods inherited from class ucar.unidata.ui.symbol.WindBarbSymbol
doAlignmentMenu, draw, getDirectionName, getEqualSides, getParamValue, getSpeedName, getStretchy, getSymetricReshape, getWindDirection, getWindSpeed, rotateOnEarth, setParamValue, setWindDirection, setWindSpeed, shouldOffsetShape, shouldScaleShape
 
Methods inherited from class ucar.unidata.ui.symbol.MetSymbol
addPropertyTabs, applyProperties, clone, cloneMe, closePropertiesDialog, decrSize, doAllObs, draw, getActive, getBounds, getColorMappings, getColorParam, getColorTable, getColorTableParam, getColorTableRange, getColorTableUnit, getColorTableUnitName, getDesc, getDisplayUnit, getDisplayUnitName, getLabel, getMissing, getName, getParam, getParamDescs, getParamIds, getRectPoint, getRotateInfo, getRotateXInfo, getRotateYInfo, getRotateZInfo, getScale, getScaleDataRange, getScaleParam, getScaleRange, getScaleUnit, getScaleUnitName, getXOffset, getYOffset, incrSize, initialize, initPropertyComponents, makeShapes, makeShapes, paint, paintSelection, setActive, setAttr, setColorMappings, setColorParam, setColorTable, setColorTableParam, setColorTableRange, setColorTableUnitName, setDisplayUnitName, setMissing, setOffset, setParamDescs, setParamIds, setRectPoint, setRotateDataRange, setRotateParam, setRotateRange, setRotateUnitName, setRotateXInfo, setRotateYInfo, setRotateZInfo, setScale, setScaleDataRange, setScaleParam, setScaleRange, setScaleUnitName, setTheDisplayUnit, shouldBeColored, shouldShowColorTableGui, shouldShowRotateGui, shouldShowScaleGui, showDisplayUnitInProperties, showPropertiesDialog, toString
 
Methods inherited from class ucar.unidata.ui.drawing.RectangleGlyph
distance, getBottom, getBounds, getLeft, getPoint, getPositionAttr, getStretchPoint, getTop, moveBy, moveTo, setPoints, setSize, setType, stretchTo
 
Methods inherited from class ucar.unidata.ui.drawing.Glyph
boundsChanged, canStretch, distance, doRemove, flipY, getAttrs, getBackground, getBackground, getBeingCreated, getCreateCommand, getCursor, getFilled, getForeground, getId, getLineWidth, getMoveCommand, getPersistent, getPointOnRect, getPointOnRect, getRectPointName, getRepaintBounds, getStretchPoint, getXml, initDone, makeAttr, notifyChange, paintHighlight, paintSelectionPoints, pickable, processAttrs, setBackground, setBeingCreated, setFilled, setForeground, setId, setLineWidth, setParent, setStretchy, stretchTo, stretchTo, toRect, transformOutput, transformOutput, transformOutputX, transformOutputY
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindVectorSymbol

public WindVectorSymbol()
Create a WindVectorSymbol


WindVectorSymbol

public WindVectorSymbol(DisplayCanvas canvas,
                        int x,
                        int y)
Create a wind vector symbol

Parameters:
canvas - the canvas
x - the x position
y - the y position

WindVectorSymbol

public WindVectorSymbol(int x,
                        int y,
                        String uOrSpeedParam,
                        String uOrSpeedDescr,
                        String vOrDirParam,
                        String vOrDirDescr)
Construct a WindVectorSymbol to use on the canvas specified at the position specified. Use the parameter names and long names specified.

Parameters:
x - x position on the canvas
y - y position on the canvas
uOrSpeedParam - u or speed component of wind parameter name
uOrSpeedDescr - u or speed component of wind parameter description
vOrDirParam - v or direction component of wind parameter name
vOrDirDescr - v or direction component of wind parameter descr

WindVectorSymbol

public WindVectorSymbol(DisplayCanvas canvas,
                        int x,
                        int y,
                        String uOrSpeedParam,
                        String uOrSpeedDescr,
                        String vOrDirParam,
                        String vOrDirDescr)
Construct a WindVectorSymbol to use on the canvas specified at the position specified. Use the parameter names and long names specified.

Parameters:
canvas - canvas to draw on.
x - x position on the canvas
y - y position on the canvas
uOrSpeedParam - u or speed component of wind parameter name
uOrSpeedDescr - u or speed component of wind parameter description
vOrDirParam - v or direction component of wind parameter name
vOrDirDescr - v or direction component of wind parameter descr
Method Detail

makeDrawer

protected WindBarbSymbol.WindDrawer makeDrawer()
Make the drawer for this symbol

Overrides:
makeDrawer in class WindBarbSymbol
Returns:
the drawer

makeVector

public VisADGeometryArray[] makeVector(float[][] flow_values,
                                       float flowScale,
                                       float[][] spatial_values,
                                       byte[][] color_values,
                                       boolean[][] range_select)
                                throws VisADException
make the vector. Adapted from visad.ShadowType.makeFlow.

Parameters:
flow_values - the flow values (u,v)
flowScale - the scale
spatial_values - the spatial locations (x,y)
color_values - color (not handled here)
range_select - missing flags
Returns:
the drawn vector
Throws:
VisADException - problem drawing the vector