public class MappedShapeSymbol extends ShapeSymbol
military glider civilian ...This symbol could hold the shape maps:
military -> triangle glider -> circle civilian->square ...
ATTR_POINTS, ATTR_SHAPE, ATTR_SHAPETYPE, TYPE_LINE, TYPE_QUAD, TYPE_TRIANGLE
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 |
---|
MappedShapeSymbol()
Default constructor.
|
MappedShapeSymbol(DisplayCanvas canvas,
int x,
int y)
Construct a ShapeSymbol to use on the canvas specified at the
position specified.
|
MappedShapeSymbol(int x,
int y)
Construct a ShapeSymbol without a canvas at the
position specified.
|
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.
|
java.lang.String |
getLabel()
Get the label
|
java.util.List |
getShapeMappings()
Get the ShapeMappings property.
|
protected void |
initPropertyComponents(java.util.List comps)
Add any components to the list of widgets for the main property dialog
tab.
|
visad.VisADGeometryArray[] |
makeShapes(visad.Data[] dataArray,
PointOb ob)
If this symbol is not one of the 'known' symbols then this method is
called to create the shapes.
|
void |
setShapeMappings(java.util.List value)
Set the ShapeMappings property.
|
protected boolean |
showDisplayUnitInProperties()
Should we show the display unit widget in the properties dialog
|
draw, getEqualSides, getParamValue, getPoints, getShape, getShapeType, getStretchy, initialize, makeShapePropertyComponents, makeShapes, setParamValue, setPoints, setShape, setShapeType, setStretchy
addPropertyTabs, clone, cloneMe, closePropertiesDialog, decrSize, doAlignmentMenu, 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, 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, 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 MappedShapeSymbol()
public MappedShapeSymbol(int x, int y)
x
- x positiony
- y positionpublic MappedShapeSymbol(DisplayCanvas canvas, int x, int y)
canvas
- canvas to draw on.x
- x position on the canvasy
- y position on the canvaspublic java.lang.String getLabel()
getLabel
in class ShapeSymbol
protected void initPropertyComponents(java.util.List comps)
initPropertyComponents
in class ShapeSymbol
comps
- List of components.protected void applyProperties()
applyProperties
in class ShapeSymbol
public boolean doAllObs()
doAllObs
in class ShapeSymbol
public visad.VisADGeometryArray[] makeShapes(visad.Data[] dataArray, PointOb ob) throws java.lang.Exception
makeShapes
in class MetSymbol
dataArray
- The array of data objects. May have 0 or more data depending
on the paramids.ob
- The observationjava.lang.Exception
- On badnessprotected boolean showDisplayUnitInProperties()
showDisplayUnitInProperties
in class MetSymbol
public void setShapeMappings(java.util.List value)
value
- The new value for ShapeMappingspublic java.util.List getShapeMappings()