Package ucar.unidata.idv.control.drawing
Class HighLowGlyph
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.HighLowGlyph
Class HighLowGlyph Draws text
- Version:
- $Revision: 1.11 $
- 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
ConstructorsConstructorDescriptionctorHighLowGlyph(boolean high) ctorHighLowGlyph(DrawingControl control, DisplayEvent event, boolean high) ctor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPopulate the xml node with attrsprotected booleanapplyProperties(Hashtable compMap) Handle the property apply.Get the extra descripition used in the JTable listingbooleangetHigh()Get the High property.doubleGet the Pressure property.protected voidgetPropertiesComponents(List comps, Hashtable compMap) get the prop gui compsThe tag to use in the xmlprotected DatagetTimeField(Data data) Make a field maps all of the time values to the given data as the rangeGet the name of this glyph typehandleCreation(DisplayEvent event) Initialize after creationhandleMouseMoved(DisplayEvent event) Handle eventhandleMousePressed(DisplayEvent event) Handle eventprotected booleanDo the final initializationbooleaninitFromUser(DrawingControl control, DisplayEvent event) User created me.voidinitFromXml(DrawingControl control, Element node) Xml created meprotected static voidsetAnimationSet(Displayable d, List timeValues) utility to set the animation set on the displayableprotected voidsetColor(Displayable displayable, Color c) Override the set color method so we don't set the colorvoidsetHigh(boolean value) Set the High property.voidsetPressure(double value) Set the Pressure property.voidHandle glyph movedMethods 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, 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
-
Field Details
-
ATTR_PRESSURE
xgrf xml attribute- See Also:
-
-
Constructor Details
-
HighLowGlyph
public HighLowGlyph()ctor -
HighLowGlyph
public HighLowGlyph(boolean high) ctor- Parameters:
high- Is this a high pressure symbol
-
HighLowGlyph
ctor- Parameters:
control- The control I'm inevent- The event when I was createdhigh- Is this a high pressure symbol
-
-
Method Details
-
getExtraDescription
Get the extra descripition used in the JTable listing- Overrides:
getExtraDescriptionin classDrawingGlyph- Returns:
- extra description
-
getTimeField
Make a field maps all of the time values to the given data as the range- Overrides:
getTimeFieldin classDrawingGlyph- Parameters:
data- The range- Returns:
- time field
- Throws:
RemoteException- On badnessVisADException- On badness
-
handleCreation
Initialize after creation- Overrides:
handleCreationin classDrawingGlyph- Parameters:
event- The event- Returns:
- this
- Throws:
RemoteException- On badnessVisADException- On badness
-
initFromUser
public boolean initFromUser(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException User created me.- Overrides:
initFromUserin classDrawingGlyph- Parameters:
control- The control I'm inevent- The event- Returns:
- ok
- Throws:
RemoteException- On badnessVisADException- On badness
-
initFromXml
public void initFromXml(DrawingControl control, Element node) throws VisADException, RemoteException Xml created me- Overrides:
initFromXmlin classDrawingGlyph- Parameters:
control- The controlnode- The xml- Throws:
RemoteException- On badnessVisADException- On badness
-
getTagName
The tag to use in the xml- Specified by:
getTagNamein classDrawingGlyph- Returns:
- Xml tag name
-
addAttributes
Populate the xml node with attrs- Overrides:
addAttributesin classDrawingGlyph- Parameters:
e- Xml node
-
setAnimationSet
protected static void setAnimationSet(Displayable d, List timeValues) throws VisADException, RemoteException utility to set the animation set on the displayable- Parameters:
d- displayabletimeValues- times- Throws:
RemoteException- On badnessVisADException- On badness
-
initFinalInner
Do the final initialization- Overrides:
initFinalInnerin classDrawingGlyph- Returns:
- Successful
- Throws:
RemoteException- On badnessVisADException- On badness
-
setColor
Override the set color method so we don't set the color- Overrides:
setColorin classDrawingGlyph- Parameters:
displayable- the displayablec- The color- Throws:
RemoteException- On badnessVisADException- On badness
-
handleMousePressed
Handle event- Overrides:
handleMousePressedin classDrawingGlyph- Parameters:
event- The event- Returns:
- This or null
- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
handleMouseMoved
Handle event- Overrides:
handleMouseMovedin classDrawingGlyph- Parameters:
event- The event- Returns:
- This or null
- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
applyProperties
Handle the property apply.- Overrides:
applyPropertiesin classDrawingGlyph- Parameters:
compMap- Holds property widgets- Returns:
- success
- Throws:
RemoteException- On badnessVisADException- On badness
-
getPropertiesComponents
get the prop gui comps- Overrides:
getPropertiesComponentsin classDrawingGlyph- Parameters:
comps- List of compscompMap- comp map
-
getTypeName
Get the name of this glyph type- Specified by:
getTypeNamein classDrawingGlyph- Returns:
- The name
-
updateLocation
Handle glyph moved- Overrides:
updateLocationin classDrawingGlyph- Throws:
RemoteException- On badnessVisADException- On badness
-
setPressure
public void setPressure(double value) Set the Pressure property.- Parameters:
value- The new value for Pressure
-
getPressure
public double getPressure()Get the Pressure property.- Returns:
- The Pressure
-
setHigh
public void setHigh(boolean value) Set the High property.- Parameters:
value- The new value for High
-
getHigh
public boolean getHigh()Get the High property.- Returns:
- The High
-