public class ValueSymbol extends TextSymbol
FONT_SIZES, numberFormatStringATTR_PARAMID, canvas, propertiesDialogATTR_RECTTYPE, bounds, CIRCLE, FCIRCLE, FRECTANGLE, FROUNDRECT, RECTANGLE, ROUNDRECT, TYPE_CIRCLE, TYPE_RECT, TYPE_RRECTATTR_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 and Description |
|---|
ValueSymbol()
Default ctor
|
ValueSymbol(DisplayCanvas canvas,
int x,
int y)
Create a new ValueSymbol
|
ValueSymbol(DisplayCanvas canvas,
int x,
int y,
java.lang.String param,
java.lang.String paramDesc)
Create a new ValueSymbol
|
ValueSymbol(DisplayCanvas canvas,
int x,
int y,
java.lang.String param,
java.lang.String paramDesc,
visad.Unit u)
Create a new ValueSymbol
|
ValueSymbol(int x,
int y,
java.lang.String param,
java.lang.String paramDesc)
Create a new ValueSymbol
|
ValueSymbol(int x,
int y,
java.lang.String param,
java.lang.String paramDesc,
visad.Unit unit)
Create a new ValueSymbol
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDoubleValue()
Get the value as a double
|
java.lang.String |
getLabel()
Get the label to show the user what I am in the properties
|
java.lang.Object |
getParamValue(int index)
Get the parameter value at the particular index
|
void |
setDoubleValue(double value)
Set the double value
|
void |
setParamValue(int index,
java.lang.Object v)
Set the parameter value at the particular index
|
protected boolean |
showDisplayUnitInProperties()
Should we show the display unit widget in the properties dialog
|
decrFontSize, draw, format, format, format, formatNumber, getCurrFontNo, getFont, getFontList, getFontMetrics, getFontSize, getNumberFormatString, getValue, getValueString, incrFontSize, makeDefaultFont, setCurrFontNo, setFont, setFontSize, setNumberFormatString, setValue, setValue, toStringaddPropertyTabs, 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, showPropertiesDialogdistance, getBottom, getBounds, getEqualSides, getLeft, getPoint, getPositionAttr, getStretchPoint, getSymetricReshape, getTop, moveBy, moveTo, setPoints, setSize, setType, stretchToboundsChanged, 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, transformOutputYpublic ValueSymbol()
public ValueSymbol(DisplayCanvas canvas, int x, int y)
canvas - canvas for paintingx - x positiony - y positionpublic ValueSymbol(int x,
int y,
java.lang.String param,
java.lang.String paramDesc,
visad.Unit unit)
x - x positiony - y positionparam - the parameter nameparamDesc - the parameter descriptionunit - the unit for the parampublic ValueSymbol(int x,
int y,
java.lang.String param,
java.lang.String paramDesc)
x - x positiony - y positionparam - the parameter nameparamDesc - the parameter descriptionpublic ValueSymbol(DisplayCanvas canvas, int x, int y, java.lang.String param, java.lang.String paramDesc)
canvas - canvas to paint onx - x positiony - y positionparam - the parameter nameparamDesc - the parameter descriptionpublic ValueSymbol(DisplayCanvas canvas, int x, int y, java.lang.String param, java.lang.String paramDesc, visad.Unit u)
canvas - canvas to paint onx - x positiony - y positionparam - the parameter nameparamDesc - the parameter descriptionu - the unitprotected boolean showDisplayUnitInProperties()
showDisplayUnitInProperties in class MetSymbolpublic java.lang.String getLabel()
getLabel in class TextSymbolpublic java.lang.Object getParamValue(int index)
getParamValue in class TextSymbolindex - index into list of paramspublic void setParamValue(int index,
java.lang.Object v)
setParamValue in class TextSymbolindex - index into list of paramsv - the valuepublic double getDoubleValue()
public void setDoubleValue(double value)
value - the value