public class ThreeDCrossSymbol extends MetSymbol
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 |
---|
ThreeDCrossSymbol()
Default constructor
|
ThreeDCrossSymbol(DisplayCanvas canvas,
int x,
int y)
Create a symbol at the x and y position on the
supplied canvas.
|
ThreeDCrossSymbol(DisplayCanvas canvas,
int x,
int y,
java.lang.String param,
java.lang.String paramDesc)
Create a symbol at the x and y position on the
DisplayCanvas supplied. |
ThreeDCrossSymbol(int x,
int y)
Create a symbol at the x and y position of the "station model editor"
; this is relative to the editor's screen center point.
|
ThreeDCrossSymbol(int x,
int y,
java.lang.String param,
java.lang.String paramDesc)
Create a symbol at the x and y position.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyProperties()
Apply properties from the properties dialog.
|
boolean |
doAllObs()
Should this symbol do all of the observations.
|
void |
draw(java.awt.Graphics2D g,
int x,
int y,
int width,
int height)
draw a little cross
at the specified location in the station model editor only -- NOT the IDV data display.
|
boolean |
getEqualSides()
Get whether this
MetSymbol has equals sides
(width and height). |
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. |
protected void |
initPropertyComponents(java.util.List comps)
Add any components to the list of widgets for the main property dialog
tab.
|
visad.VisADGeometryArray[] |
makeShapes(PointOb ob)
Make the "shapes", the plot symbol.
|
void |
setParamValue(int index,
java.lang.Object v)
Set the parameter value at the index specified.
|
void |
setStretchy(boolean s)
Is this stretchy
|
boolean |
shouldBeColored()
Is used by the StationModelDisplayable to determine if the color
of the shapes should be set.
|
boolean |
shouldOffsetShape()
From Unidata: "I have code that takes the shapes
for a symbol and moves them by some offset wrt the origin.
|
addPropertyTabs, clone, cloneMe, closePropertiesDialog, decrSize, doAlignmentMenu, draw, getActive, getBounds, getColorMappings, getColorParam, getColorTable, getColorTableParam, getColorTableRange, getColorTableUnit, getColorTableUnitName, getDesc, getDisplayUnit, getDisplayUnitName, getLabel, getMissing, getName, getParam, getParamDescs, getParamIds, getRectPoint, getRotateInfo, getRotateXInfo, getRotateYInfo, getRotateZInfo, getScale, getScaleDataRange, getScaleParam, getScaleRange, getScaleUnit, getScaleUnitName, getXOffset, getYOffset, incrSize, initialize, 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, shouldScaleShape, shouldShowColorTableGui, shouldShowRotateGui, shouldShowScaleGui, showDisplayUnitInProperties, showPropertiesDialog, toString
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 ThreeDCrossSymbol()
public ThreeDCrossSymbol(int x, int y)
x
- x offset from centery
- y offset from centerpublic ThreeDCrossSymbol(DisplayCanvas canvas, int x, int y)
canvas
- DisplayCanvas
to draw onx
- x offset from centery
- y offset from centerpublic ThreeDCrossSymbol(int x, int y, java.lang.String param, java.lang.String paramDesc)
param
- parameter name for this GPSVectorSymbol
paramDesc
- description (long name) of param
x
- x offset from centery
- y offset from centerpublic ThreeDCrossSymbol(DisplayCanvas canvas, int x, int y, java.lang.String param, java.lang.String paramDesc)
DisplayCanvas
supplied. Position
is relative to the center point. Use parameter and description
provided.canvas
- DisplayCanvas
to draw onparam
- parameter name for this GPSVectorSymbol
paramDesc
- description (long name) of param
x
- x offset from centery
- y offset from centerpublic boolean shouldOffsetShape()
shouldOffsetShape
in class MetSymbol
protected void initPropertyComponents(java.util.List comps)
initPropertyComponents
in class MetSymbol
comps
- List of components.protected void applyProperties()
applyProperties
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 boolean getEqualSides()
MetSymbol
has equals sides
(width and height).getEqualSides
in class RectangleGlyph
public java.lang.Object getParamValue(int index)
getParamValue
in class MetSymbol
index
- index into param arrayDouble
public void setParamValue(int index, java.lang.Object v)
MetSymbol
only has one parameter, it sets the
value at index 0.setParamValue
in class MetSymbol
index
- parameter index. Ignored in this object.v
- value for the parameter (String representation of
magnitude).public boolean doAllObs()
public boolean shouldBeColored()
shouldBeColored
in class MetSymbol
public visad.VisADGeometryArray[] makeShapes(PointOb ob)
makeShapes
in class MetSymbol
ob
- The observation, or data value in a PointOb object.public void draw(java.awt.Graphics2D g, int x, int y, int width, int height)