Package ucar.unidata.ui.symbol
Class WindVectorSymbol
java.lang.Object
ucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.RectangleGlyph
ucar.unidata.ui.symbol.MetSymbol
ucar.unidata.ui.symbol.WindBarbSymbol
ucar.unidata.ui.symbol.WindVectorSymbol
- All Implemented Interfaces:
Cloneable
Class description
- Version:
- Enter version here..., Wed, Jun 8, '11
- Author:
- Enter your name here...
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Class VectorDrawer knows how to draw wind vectorsNested 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
ConstructorsConstructorDescriptionCreate a WindVectorSymbolWindVectorSymbol
(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
(DisplayCanvas canvas, int x, int y) Create a wind vector symbolWindVectorSymbol
(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected WindBarbSymbol.WindDrawer
Make the drawer for this symbolmakeVector
(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
-
Constructor Details
-
WindVectorSymbol
public WindVectorSymbol()Create a WindVectorSymbol -
WindVectorSymbol
Create a wind vector symbol- Parameters:
canvas
- the canvasx
- the x positiony
- 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 canvasy
- y position on the canvasuOrSpeedParam
- u or speed component of wind parameter nameuOrSpeedDescr
- u or speed component of wind parameter descriptionvOrDirParam
- v or direction component of wind parameter namevOrDirDescr
- 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 canvasy
- y position on the canvasuOrSpeedParam
- u or speed component of wind parameter nameuOrSpeedDescr
- u or speed component of wind parameter descriptionvOrDirParam
- v or direction component of wind parameter namevOrDirDescr
- v or direction component of wind parameter descr
-
-
Method Details
-
makeDrawer
Make the drawer for this symbol- Overrides:
makeDrawer
in classWindBarbSymbol
- 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 scalespatial_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
-