|
||||||||||
| 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.LabelSymbol
public class LabelSymbol
Label symbol.
| 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 | |
|---|---|
LabelSymbol()
Default constructor. |
|
LabelSymbol(DisplayCanvas canvas,
int x,
int y)
Construct a LabelSymbol to use on the canvas specified at the position specified. |
|
LabelSymbol(int x,
int y)
Construct a LabelSymbol without a canvas at the position specified. |
|
| Method Summary | |
|---|---|
protected void |
applyProperties()
Apply properties from the properties dialog. |
boolean |
getEqualSides()
Get whether this MetSymbol has equals sides
(width and height). |
String |
getLabel()
Get a label for this symbol. |
String[] |
getParamIds()
Get the parameter ids for this MetSymbol. |
Object |
getParamValue(int index)
Get the parameter value at the index specified. |
boolean |
getStretchy()
Get whether this MetSymbol can be stretched or not. |
String |
getText()
get the value string |
protected String |
getValueString()
Get the value string |
protected void |
initPropertyComponents(List comps)
Add any components to the list of widgets for the main property dialog tab. |
void |
setStretchy(boolean s)
Is this stretchy |
String |
toString()
String representation of this object. |
boolean |
xxxdoAllObs()
Should this symbol do all of the observations. |
VisADGeometryArray[] |
xxxmakeShapes(PointOb ob)
Make the shapes. |
| Methods inherited from class ucar.unidata.ui.symbol.TextSymbol |
|---|
decrFontSize, draw, format, format, format, formatNumber, getCurrFontNo, getFont, getFontList, getFontMetrics, getFontSize, getNumberFormatString, getValue, incrFontSize, makeDefaultFont, setCurrFontNo, setFont, setFontSize, setNumberFormatString, setParamValue, setValue, setValue |
| Methods inherited from class ucar.unidata.ui.drawing.RectangleGlyph |
|---|
distance, getBottom, getBounds, 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, getXml, initDone, makeAttr, notifyChange, paintHighlight, paintSelectionPoints, pickable, processAttrs, setBackground, setBeingCreated, setFilled, setForeground, setId, setLineWidth, setParent, 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 LabelSymbol()
public LabelSymbol(int x,
int y)
x - x positiony - y position
public LabelSymbol(DisplayCanvas canvas,
int x,
int y)
canvas - canvas to draw on.x - x position on the canvasy - y position on the canvas| Method Detail |
|---|
protected void initPropertyComponents(List comps)
initPropertyComponents in class MetSymbolcomps - List of components.protected void applyProperties()
applyProperties in class MetSymbolpublic String[] getParamIds()
MetSymbol.
getParamIds in class MetSymbolpublic boolean getStretchy()
MetSymbol can be stretched or not.
getStretchy in class Glyphpublic void setStretchy(boolean s)
setStretchy in class Glyphs - Is this stretchypublic Object getParamValue(int index)
getParamValue in class TextSymbolindex - index into param array
protected String getValueString()
getValueString in class TextSymbolpublic boolean getEqualSides()
MetSymbol has equals sides
(width and height).
getEqualSides in class RectangleGlyphpublic boolean xxxdoAllObs()
public VisADGeometryArray[] xxxmakeShapes(PointOb ob)
ob - The observation. We don't use this.
public String getText()
public String getLabel()
getLabel in class TextSymbolpublic String toString()
toString in class TextSymbol
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||