public class HighLowGlyph extends DrawingGlyph
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_PRESSURE
xgrf xml attribute
|
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 |
---|
HighLowGlyph()
ctor
|
HighLowGlyph(boolean high)
ctor
|
HighLowGlyph(DrawingControl control,
visad.DisplayEvent event,
boolean high)
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)
Handle the property apply.
|
java.lang.String |
getExtraDescription()
Get the extra descripition used in the JTable listing
|
boolean |
getHigh()
Get the High property.
|
double |
getPressure()
Get the Pressure property.
|
protected void |
getPropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
get the prop gui comps
|
java.lang.String |
getTagName()
The tag to use in the xml
|
protected visad.Data |
getTimeField(visad.Data data)
Make a field maps all of the time values to the given data as the range
|
java.lang.String |
getTypeName()
Get the name of this glyph type
|
DrawingGlyph |
handleCreation(visad.DisplayEvent event)
Initialize after creation
|
DrawingGlyph |
handleMouseMoved(visad.DisplayEvent event)
Handle event
|
DrawingGlyph |
handleMousePressed(visad.DisplayEvent event)
Handle event
|
protected boolean |
initFinalInner()
Do the final initialization
|
boolean |
initFromUser(DrawingControl control,
visad.DisplayEvent event)
User created me.
|
void |
initFromXml(DrawingControl control,
org.w3c.dom.Element node)
Xml created me
|
protected static void |
setAnimationSet(Displayable d,
java.util.List timeValues)
utility to set the animation set on the displayable
|
protected void |
setColor(Displayable displayable,
java.awt.Color c)
Override the set color method so we don't set the color
|
void |
setHigh(boolean value)
Set the High property.
|
void |
setPressure(double value)
Set the Pressure property.
|
void |
updateLocation()
Handle 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, getDescription, getDisplayable, getDistance, getEditable, getElement, getFilled, getFixedAltitude, getFullLatLon, getIsRaster, getLatLons, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getSelectionPoints, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleKeyPressed, handleMouseDragged, handleMouseReleased, hide, initFinal, initFromBundle, initMove, initStretch, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isValid, isVisible, makePoint, mousePressed, moveTo, processPointStrings, processPointStrings, projectionChanged, removeDisplayable, setActualPoints, setBeenRemoved, setBgcolor, 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_PRESSURE
public HighLowGlyph()
public HighLowGlyph(boolean high)
high
- Is this a high pressure symbolpublic HighLowGlyph(DrawingControl control, visad.DisplayEvent event, boolean high)
control
- The control I'm inevent
- The event when I was createdhigh
- Is this a high pressure symbolpublic java.lang.String getExtraDescription()
getExtraDescription
in class DrawingGlyph
protected visad.Data getTimeField(visad.Data data) throws visad.VisADException, java.rmi.RemoteException
getTimeField
in class DrawingGlyph
data
- The rangejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic DrawingGlyph handleCreation(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleCreation
in class DrawingGlyph
event
- The eventjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean initFromUser(DrawingControl control, visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
initFromUser
in class DrawingGlyph
control
- The control I'm inevent
- The eventjava.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 controlnode
- The xmljava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String getTagName()
getTagName
in class DrawingGlyph
protected void addAttributes(org.w3c.dom.Element e)
addAttributes
in class DrawingGlyph
e
- Xml nodeprotected static void setAnimationSet(Displayable d, java.util.List timeValues) throws visad.VisADException, java.rmi.RemoteException
d
- displayabletimeValues
- timesjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected boolean initFinalInner() throws visad.VisADException, java.rmi.RemoteException
initFinalInner
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void setColor(Displayable displayable, java.awt.Color c) throws visad.VisADException, java.rmi.RemoteException
setColor
in class DrawingGlyph
displayable
- the displayablec
- The colorjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic DrawingGlyph handleMousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMousePressed
in class DrawingGlyph
event
- The eventjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic DrawingGlyph handleMouseMoved(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMouseMoved
in class DrawingGlyph
event
- The eventjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected boolean applyProperties(java.util.Hashtable compMap) throws visad.VisADException, java.rmi.RemoteException
applyProperties
in class DrawingGlyph
compMap
- Holds property widgetsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void getPropertiesComponents(java.util.List comps, java.util.Hashtable compMap)
getPropertiesComponents
in class DrawingGlyph
comps
- List of compscompMap
- comp mappublic java.lang.String getTypeName()
getTypeName
in class DrawingGlyph
public void updateLocation() throws visad.VisADException, java.rmi.RemoteException
updateLocation
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setPressure(double value)
value
- The new value for Pressurepublic double getPressure()
public void setHigh(boolean value)
value
- The new value for Highpublic boolean getHigh()