public class LabelSymbol extends TextSymbol
FONT_SIZES, numberFormatString
ATTR_PARAMID, canvas, propertiesDialog
ATTR_RECTTYPE, bounds, CIRCLE, FCIRCLE, FRECTANGLE, FROUNDRECT, RECTANGLE, ROUNDRECT, TYPE_CIRCLE, TYPE_RECT, TYPE_RRECT
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyProperties()
Apply properties from the properties dialog.
|
boolean |
getEqualSides()
Get whether this
MetSymbol has equals sides
(width and height). |
java.lang.String |
getLabel()
Get a label for this symbol.
|
java.lang.String[] |
getParamIds()
Get the parameter ids for this
MetSymbol . |
java.lang.Object |
getParamValue(int index)
Get the parameter value at the index specified.
|
boolean |
getStretchy()
Get whether this
MetSymbol can be stretched or not. |
java.lang.String |
getText()
get the value string
|
protected java.lang.String |
getValueString()
Get the value string
|
protected void |
initPropertyComponents(java.util.List comps)
Add any components to the list of widgets for the main property dialog
tab.
|
void |
setStretchy(boolean s)
Is this stretchy
|
java.lang.String |
toString()
String representation of this object.
|
boolean |
xxxdoAllObs()
Should this symbol do all of the observations.
|
visad.VisADGeometryArray[] |
xxxmakeShapes(PointOb ob)
Make the shapes.
|
decrFontSize, draw, format, format, format, formatNumber, getCurrFontNo, getFont, getFontList, getFontMetrics, getFontSize, getNumberFormatString, getValue, incrFontSize, makeDefaultFont, setCurrFontNo, setFont, setFontSize, setNumberFormatString, setParamValue, setValue, setValue
addPropertyTabs, clone, cloneMe, closePropertiesDialog, decrSize, doAlignmentMenu, doAllObs, draw, getActive, getBounds, getColorMappings, getColorParam, getColorTable, getColorTableParam, getColorTableRange, getColorTableUnit, getColorTableUnitName, getDesc, getDisplayUnit, getDisplayUnitName, getMissing, getName, getParam, getParamDescs, getRectPoint, getRotateInfo, getRotateXInfo, getRotateYInfo, getRotateZInfo, getScale, getScaleDataRange, getScaleParam, getScaleRange, getScaleUnit, getScaleUnitName, getXOffset, getYOffset, incrSize, initialize, 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, showDisplayUnitInProperties, showPropertiesDialog
distance, getBottom, getBounds, getLeft, getPoint, getPositionAttr, getStretchPoint, getSymetricReshape, getTop, moveBy, moveTo, setPoints, setSize, setType, stretchTo
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
public LabelSymbol()
public LabelSymbol(int x, int y)
x
- x positiony
- y positionpublic LabelSymbol(DisplayCanvas canvas, int x, int y)
canvas
- canvas to draw on.x
- x position on the canvasy
- y position on the canvasprotected void initPropertyComponents(java.util.List comps)
initPropertyComponents
in class MetSymbol
comps
- List of components.protected void applyProperties()
applyProperties
in class MetSymbol
public java.lang.String[] getParamIds()
MetSymbol
.getParamIds
in class MetSymbol
public boolean getStretchy()
MetSymbol
can be stretched or not.getStretchy
in class Glyph
public void setStretchy(boolean s)
setStretchy
in class Glyph
s
- Is this stretchypublic java.lang.Object getParamValue(int index)
getParamValue
in class TextSymbol
index
- index into param arrayprotected java.lang.String getValueString()
getValueString
in class TextSymbol
public boolean getEqualSides()
MetSymbol
has equals sides
(width and height).getEqualSides
in class RectangleGlyph
public boolean xxxdoAllObs()
public visad.VisADGeometryArray[] xxxmakeShapes(PointOb ob)
ob
- The observation. We don't use this.public java.lang.String getText()
public java.lang.String getLabel()
getLabel
in class TextSymbol
public java.lang.String toString()
toString
in class TextSymbol