public class SymbolGlyph extends DrawingGlyph
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_SCALE
xml attr
|
static java.lang.String |
ATTR_SYMBOL
xml attr
|
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 and Description |
---|
SymbolGlyph()
Ctor
|
SymbolGlyph(DrawingControl control,
visad.DisplayEvent event)
The ctor
|
SymbolGlyph(DrawingControl control,
visad.DisplayEvent event,
java.lang.String symbol)
The ctor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributes(org.w3c.dom.Element e)
Populate the xml node with attrs
|
protected boolean |
applyProperties(java.util.Hashtable compMap)
apply the properties from the dialog
|
float |
getDefaultScale()
Get the defaultScale property.
|
java.lang.String |
getDefaultSymbol()
Get the defaultSymbol property.
|
java.lang.String |
getDescription()
Get the description of this glyph
|
protected int |
getNumInterpolationPoints()
By default we don't interpolate
|
protected void |
getPropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
Make the properties widgetsF
|
float |
getScale()
Get the Scale property.
|
java.lang.String |
getSymbol()
Get the Symbol property.
|
java.lang.String |
getTagName()
Get xml tag name to use
|
java.lang.String |
getTypeName()
Name to use for this glyph
|
DrawingGlyph |
handleCreation(visad.DisplayEvent event)
create the glyph
|
DrawingGlyph |
handleMouseDragged(visad.DisplayEvent event)
Handle event
|
DrawingGlyph |
handleMousePressed(visad.DisplayEvent event)
handle event
|
protected boolean |
initFinalInner()
Init at the end
|
void |
initFromXml(DrawingControl control,
org.w3c.dom.Element node)
Init from xml
|
boolean |
isValid()
Do we have a valid number of points
|
void |
setDefaultScale(float value)
Set the defaultScale property.
|
void |
setDefaultSymbolSymbol(java.lang.String value)
Set the defaultSymbol property.
|
void |
setPropertySymbol(TwoFacedObject tfo)
set the symbol
|
void |
setScale(float value)
Set the Scale property.
|
void |
setSymbol(java.lang.String value)
Set the Symbol property.
|
void |
showSymbolPopup()
popup list of symbols
|
void |
updateLocation()
The glyph moved.
|
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
public static final java.lang.String ATTR_SCALE
public static final java.lang.String ATTR_SYMBOL
public SymbolGlyph()
public SymbolGlyph(DrawingControl control, visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm in.event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic SymbolGlyph(DrawingControl control, visad.DisplayEvent event, java.lang.String symbol) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm in.event
- The display event.symbol
- The symboljava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic boolean isValid()
isValid
in class DrawingGlyph
public DrawingGlyph handleMouseDragged(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMouseDragged
in class DrawingGlyph
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic DrawingGlyph handleCreation(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleCreation
in class DrawingGlyph
event
- eventjava.rmi.RemoteException
- on badnessvisad.VisADException
- on badnesspublic DrawingGlyph handleMousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMousePressed
in class DrawingGlyph
event
- eventjava.rmi.RemoteException
- on badnessvisad.VisADException
- on badnessprotected boolean applyProperties(java.util.Hashtable compMap) throws visad.VisADException, java.rmi.RemoteException
applyProperties
in class DrawingGlyph
compMap
- componentsjava.rmi.RemoteException
- on badnessvisad.VisADException
- on badnesspublic void showSymbolPopup()
public void setPropertySymbol(TwoFacedObject tfo)
tfo
- tfoprotected void getPropertiesComponents(java.util.List comps, java.util.Hashtable compMap)
getPropertiesComponents
in class DrawingGlyph
comps
- List of componentscompMap
- Map to hold name to widgetprotected boolean initFinalInner() throws visad.VisADException, java.rmi.RemoteException
initFinalInner
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void initFromXml(DrawingControl control, org.w3c.dom.Element node) throws visad.VisADException, java.rmi.RemoteException
initFromXml
in class DrawingGlyph
control
- The control I'm in.node
- The xml nodejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void addAttributes(org.w3c.dom.Element e)
addAttributes
in class DrawingGlyph
e
- Xml nodepublic java.lang.String getTagName()
getTagName
in class DrawingGlyph
protected int getNumInterpolationPoints()
public void updateLocation() throws visad.VisADException, java.rmi.RemoteException
updateLocation
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String getTypeName()
getTypeName
in class DrawingGlyph
public java.lang.String getDescription()
getDescription
in class DrawingGlyph
public void setSymbol(java.lang.String value)
value
- The new value for Symbolpublic java.lang.String getSymbol()
public void setDefaultSymbolSymbol(java.lang.String value)
value
- The new value for defaultSymbolpublic java.lang.String getDefaultSymbol()
public void setScale(float value)
value
- The new value for Scalepublic float getScale()
public void setDefaultScale(float value)
value
- The new value for defaultScalepublic float getDefaultScale()