Package ucar.unidata.ui.symbol
Class ValueSymbol
java.lang.Object
ucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.RectangleGlyph
ucar.unidata.ui.symbol.MetSymbol
ucar.unidata.ui.symbol.TextSymbol
ucar.unidata.ui.symbol.ValueSymbol
- All Implemented Interfaces:
Cloneable
Value Symbol meteorological Symbol. Used for displaying numeric
values in specific units.
- Version:
- $Revision: 1.21 $
- Author:
- MetApps Development Team
-
Field Summary
Fields inherited from class ucar.unidata.ui.symbol.TextSymbol
FONT_SIZES, numberFormatStringFields inherited from class ucar.unidata.ui.symbol.MetSymbol
ATTR_PARAMID, canvas, propertiesDialogFields inherited from class ucar.unidata.ui.drawing.RectangleGlyph
ATTR_RECTTYPE, bounds, CIRCLE, FCIRCLE, FRECTANGLE, FROUNDRECT, RECTANGLE, ROUNDRECT, TYPE_CIRCLE, TYPE_RECT, TYPE_RRECTFields 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
ConstructorsConstructorDescriptionDefault ctorValueSymbol(int x, int y, String param, String paramDesc) Create a new ValueSymbolValueSymbol(int x, int y, String param, String paramDesc, Unit unit) Create a new ValueSymbolValueSymbol(DisplayCanvas canvas, int x, int y) Create a new ValueSymbolValueSymbol(DisplayCanvas canvas, int x, int y, String param, String paramDesc) Create a new ValueSymbolValueSymbol(DisplayCanvas canvas, int x, int y, String param, String paramDesc, Unit u) Create a new ValueSymbol -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the value as a doublegetLabel()Get the label to show the user what I am in the propertiesgetParamValue(int index) Get the parameter value at the particular indexvoidsetDoubleValue(double value) Set the double valuevoidsetParamValue(int index, Object v) Set the parameter value at the particular indexprotected booleanShould we show the display unit widget in the properties dialogMethods inherited from class ucar.unidata.ui.symbol.TextSymbol
decrFontSize, draw, format, format, format, formatNumber, getCurrFontNo, getFont, getFontList, getFontMetrics, getFontSize, getNumberFormatString, getValue, getValueString, incrFontSize, makeDefaultFont, setCurrFontNo, setFont, setFontSize, setNumberFormatString, setValue, setValue, toStringMethods inherited from class ucar.unidata.ui.symbol.MetSymbol
addPropertyTabs, applyProperties, clone, cloneMe, closePropertiesDialog, decrSize, doAlignmentMenu, doAllObs, draw, getActive, getBounds, getColorMappings, getColorParam, getColorTable, getColorTableParam, getColorTableRange, getColorTableUnit, getColorTableUnitName, getDesc, getDisplayUnit, getDisplayUnitName, 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, rotateOnEarth, 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, shouldOffsetShape, shouldScaleShape, shouldShowColorTableGui, shouldShowRotateGui, shouldShowScaleGui, showPropertiesDialogMethods inherited from class ucar.unidata.ui.drawing.RectangleGlyph
distance, getBottom, getBounds, getEqualSides, getLeft, getPoint, getPositionAttr, getStretchPoint, getSymetricReshape, getTop, moveBy, moveTo, setPoints, setSize, setType, stretchToMethods 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, getStretchy, 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
-
ValueSymbol
public ValueSymbol()Default ctor -
ValueSymbol
Create a new ValueSymbol- Parameters:
canvas- canvas for paintingx- x positiony- y position
-
ValueSymbol
Create a new ValueSymbol- Parameters:
x- x positiony- y positionparam- the parameter nameparamDesc- the parameter descriptionunit- the unit for the param
-
ValueSymbol
Create a new ValueSymbol- Parameters:
x- x positiony- y positionparam- the parameter nameparamDesc- the parameter description
-
ValueSymbol
Create a new ValueSymbol- Parameters:
canvas- canvas to paint onx- x positiony- y positionparam- the parameter nameparamDesc- the parameter description
-
ValueSymbol
Create a new ValueSymbol- Parameters:
canvas- canvas to paint onx- x positiony- y positionparam- the parameter nameparamDesc- the parameter descriptionu- the unit
-
-
Method Details
-
showDisplayUnitInProperties
protected boolean showDisplayUnitInProperties()Should we show the display unit widget in the properties dialog- Overrides:
showDisplayUnitInPropertiesin classMetSymbol- Returns:
- true
-
getLabel
Get the label to show the user what I am in the properties- Overrides:
getLabelin classTextSymbol- Returns:
- The label
-
getParamValue
Get the parameter value at the particular index- Overrides:
getParamValuein classTextSymbol- Parameters:
index- index into list of params- Returns:
- the value
-
setParamValue
Set the parameter value at the particular index- Overrides:
setParamValuein classTextSymbol- Parameters:
index- index into list of paramsv- the value
-
getDoubleValue
public double getDoubleValue()Get the value as a double- Returns:
- the double value
-
setDoubleValue
public void setDoubleValue(double value) Set the double value- Parameters:
value- the value
-