|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.RectangleGlyph
ucar.unidata.ui.symbol.MetSymbol
ucar.unidata.ui.symbol.TextSymbol
ucar.unidata.ui.symbol.ValueSymbol
public class ValueSymbol
Value Symbol meteorological Symbol. Used for displaying numeric values in specific units.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.ui.symbol.TextSymbol |
|---|
FONT_SIZES, numberFormatString |
| 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 | |
|---|---|
ValueSymbol()
Default ctor |
|
ValueSymbol(DisplayCanvas canvas,
int x,
int y)
Create a new ValueSymbol |
|
ValueSymbol(DisplayCanvas canvas,
int x,
int y,
String param,
String paramDesc)
Create a new ValueSymbol |
|
ValueSymbol(DisplayCanvas canvas,
int x,
int y,
String param,
String paramDesc,
Unit u)
Create a new ValueSymbol |
|
ValueSymbol(int x,
int y,
String param,
String paramDesc)
Create a new ValueSymbol |
|
ValueSymbol(int x,
int y,
String param,
String paramDesc,
Unit unit)
Create a new ValueSymbol |
|
| Method Summary | |
|---|---|
double |
getDoubleValue()
Get the value as a double |
String |
getLabel()
Get the label to show the user what I am in the properties |
Object |
getParamValue(int index)
Get the parameter value at the particular index |
void |
setDoubleValue(double value)
Set the double value |
void |
setParamValue(int index,
Object v)
Set the parameter value at the particular index |
protected boolean |
showDisplayUnitInProperties()
Should we show the display unit widget in the properties dialog |
| Methods 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, toString |
| Methods inherited from class ucar.unidata.ui.drawing.RectangleGlyph |
|---|
distance, getBottom, getBounds, getEqualSides, getLeft, getPoint, getPositionAttr, getStretchPoint, getSymetricReshape, 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, getStretchy, 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 |
|---|
public ValueSymbol()
public ValueSymbol(DisplayCanvas canvas,
int x,
int y)
canvas - canvas for paintingx - x positiony - y position
public ValueSymbol(int x,
int y,
String param,
String paramDesc,
Unit unit)
x - x positiony - y positionparam - the parameter nameparamDesc - the parameter descriptionunit - the unit for the param
public ValueSymbol(int x,
int y,
String param,
String paramDesc)
x - x positiony - y positionparam - the parameter nameparamDesc - the parameter description
public ValueSymbol(DisplayCanvas canvas,
int x,
int y,
String param,
String paramDesc)
canvas - canvas to paint onx - x positiony - y positionparam - the parameter nameparamDesc - the parameter description
public ValueSymbol(DisplayCanvas canvas,
int x,
int y,
String param,
String paramDesc,
Unit u)
canvas - canvas to paint onx - x positiony - y positionparam - the parameter nameparamDesc - the parameter descriptionu - the unit| Method Detail |
|---|
protected boolean showDisplayUnitInProperties()
showDisplayUnitInProperties in class MetSymbolpublic String getLabel()
getLabel in class TextSymbolpublic Object getParamValue(int index)
getParamValue in class TextSymbolindex - index into list of params
public void setParamValue(int index,
Object v)
setParamValue in class TextSymbolindex - index into list of paramsv - the valuepublic double getDoubleValue()
public void setDoubleValue(double value)
value - the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||