Package ucar.unidata.idv.control.drawing
Class SymbolGlyph
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.SymbolGlyph
Class SymbolGlyph. Displays a shape.
- Version:
- $Revision: 1.3 $
- Author:
- IDV Development Team
-
Field Summary
FieldsFields inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
actualPoints, ATTR_BGCOLOR, ATTR_COLOR, ATTR_COORDTYPE, ATTR_FILLED, ATTR_FULLLATLON, ATTR_LINEWIDTH, ATTR_NAME, ATTR_PICKABLE, ATTR_POINTS, ATTR_TEXT, ATTR_TIMEFORMAT, ATTR_TIMES, ATTR_ZPOSITION, control, COORD_LABELS, COORD_LATLON, COORD_LATLONALT, COORD_LONLAT, COORD_NONE, COORD_TYPENAMES, COORD_TYPES, COORD_XY, COORD_XYZ, coordType, firstMoveEarthLocation, firstMoveLocation, IDX_ALT, IDX_LAT, IDX_LON, IDX_X, IDX_Y, IDX_Z, oldVisibility, parentDisplayable, points, propDialog, propertiesUp, PT_X, PT_Y, PT_Z, selectionDisplayable, stretchIndex, tabbedPane, TAG_ARROW, TAG_FRONT, TAG_HIGH, TAG_IMAGE, TAG_LOW, TAG_MOVIE, TAG_POLYGON, TAG_SHAPE, TAG_SYMBOL, TAG_TEXT, uniqueCnt, zPosition -
Constructor Summary
ConstructorsConstructorDescriptionCtorSymbolGlyph(DrawingControl control, DisplayEvent event) The ctorSymbolGlyph(DrawingControl control, DisplayEvent event, String symbol) The ctor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPopulate the xml node with attrsprotected booleanapplyProperties(Hashtable compMap) apply the properties from the dialogfloatGet the defaultScale property.Get the defaultSymbol property.Get the description of this glyphprotected intBy default we don't interpolateprotected voidgetPropertiesComponents(List comps, Hashtable compMap) Make the properties widgetsFfloatgetScale()Get the Scale property.Get the Symbol property.Get xml tag name to useName to use for this glyphhandleCreation(DisplayEvent event) create the glyphhandleMouseDragged(DisplayEvent event) Handle eventhandleMousePressed(DisplayEvent event) handle eventprotected booleanInit at the endvoidinitFromXml(DrawingControl control, Element node) Init from xmlbooleanisValid()Do we have a valid number of pointsvoidsetDefaultScale(float value) Set the defaultScale property.voidsetDefaultSymbolSymbol(String value) Set the defaultSymbol property.voidset the symbolvoidsetScale(float value) Set the Scale property.voidSet the Symbol property.voidpopup list of symbolsvoidThe glyph moved.Methods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
addDisplayable, addTime, canShowArea, canShowDistance, checkTimeVisibility, checkVisibility, closestPoint, constrainedTo2D, distance, distanceBetween, distanceBetween, doDeletePoint, doInterpolatedStretch, doMove, doneBeingCreated, doStretch, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDisplayable, getDistance, getEditable, getElement, getExtraDescription, getFilled, getFixedAltitude, getFullLatLon, getIsRaster, getLatLons, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getSelectionPoints, getTimeField, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleKeyPressed, handleMouseMoved, handleMouseReleased, hide, initFinal, initFromBundle, initFromUser, initMove, initStretch, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isVisible, makePoint, mousePressed, moveTo, processPointStrings, processPointStrings, projectionChanged, removeDisplayable, setActualPoints, setBeenRemoved, setBgcolor, setColor, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisible, setVisibleFlag, setZPosition, shouldShowBgColorSelector, shouldShowColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, viewpointChanged, writePoints
-
Field Details
-
ATTR_SCALE
xml attr- See Also:
-
ATTR_SYMBOL
xml attr- See Also:
-
-
Constructor Details
-
SymbolGlyph
public SymbolGlyph()Ctor -
SymbolGlyph
public SymbolGlyph(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException The ctor- Parameters:
control- The control I'm in.event- The display event.- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
SymbolGlyph
public SymbolGlyph(DrawingControl control, DisplayEvent event, String symbol) throws VisADException, RemoteException The ctor- Parameters:
control- The control I'm in.event- The display event.symbol- The symbol- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
-
Method Details
-
isValid
public boolean isValid()Do we have a valid number of points- Overrides:
isValidin classDrawingGlyph- Returns:
- Is this glyph valid
-
handleMouseDragged
Handle event- Overrides:
handleMouseDraggedin classDrawingGlyph- Parameters:
event- The display event.- Returns:
- This or null
- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
handleCreation
create the glyph- Overrides:
handleCreationin classDrawingGlyph- Parameters:
event- event- Returns:
- the glyph
- Throws:
RemoteException- on badnessVisADException- on badness
-
handleMousePressed
handle event- Overrides:
handleMousePressedin classDrawingGlyph- Parameters:
event- event- Returns:
- this
- Throws:
RemoteException- on badnessVisADException- on badness
-
applyProperties
apply the properties from the dialog- Overrides:
applyPropertiesin classDrawingGlyph- Parameters:
compMap- components- Returns:
- ok
- Throws:
RemoteException- on badnessVisADException- on badness
-
showSymbolPopup
public void showSymbolPopup()popup list of symbols -
setPropertySymbol
set the symbol- Parameters:
tfo- tfo
-
getPropertiesComponents
Make the properties widgetsF- Overrides:
getPropertiesComponentsin classDrawingGlyph- Parameters:
comps- List of componentscompMap- Map to hold name to widget
-
initFinalInner
Init at the end- Overrides:
initFinalInnerin classDrawingGlyph- Returns:
- Success
- Throws:
RemoteException- On badnessVisADException- On badness
-
initFromXml
public void initFromXml(DrawingControl control, Element node) throws VisADException, RemoteException Init from xml- Overrides:
initFromXmlin classDrawingGlyph- Parameters:
control- The control I'm in.node- The xml node- Throws:
RemoteException- On badnessVisADException- On badness
-
addAttributes
Populate the xml node with attrs- Overrides:
addAttributesin classDrawingGlyph- Parameters:
e- Xml node
-
getTagName
Get xml tag name to use- Specified by:
getTagNamein classDrawingGlyph- Returns:
- Xml tag name
-
getNumInterpolationPoints
protected int getNumInterpolationPoints()By default we don't interpolate- Returns:
- 0
-
updateLocation
The glyph moved. Update location.- Overrides:
updateLocationin classDrawingGlyph- Throws:
RemoteException- On badnessVisADException- On badness
-
getTypeName
Name to use for this glyph- Specified by:
getTypeNamein classDrawingGlyph- Returns:
- The glyph type name
-
getDescription
Get the description of this glyph- Overrides:
getDescriptionin classDrawingGlyph- Returns:
- The description
-
setSymbol
Set the Symbol property.- Parameters:
value- The new value for Symbol
-
getSymbol
Get the Symbol property.- Returns:
- The Symbol
-
setDefaultSymbolSymbol
Set the defaultSymbol property.- Parameters:
value- The new value for defaultSymbol
-
getDefaultSymbol
Get the defaultSymbol property.- Returns:
- The defaultSymbol
-
setScale
public void setScale(float value) Set the Scale property.- Parameters:
value- The new value for Scale
-
getScale
public float getScale()Get the Scale property.- Returns:
- The Scale
-
setDefaultScale
public void setDefaultScale(float value) Set the defaultScale property.- Parameters:
value- The new value for defaultScale
-
getDefaultScale
public float getDefaultScale()Get the defaultScale property.- Returns:
- The defaultScale
-