ucar.unidata.idv.control.drawing
Class HighLowGlyph

java.lang.Object
  extended by ucar.unidata.idv.control.drawing.DrawingGlyph
      extended by ucar.unidata.idv.control.drawing.HighLowGlyph

public class HighLowGlyph
extends DrawingGlyph

Class HighLowGlyph Draws text

Version:
$Revision: 1.11 $
Author:
IDV Development Team

Field Summary
static String ATTR_PRESSURE
          xgrf xml attribute
 
Fields inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
actualPoints, ATTR_COLOR, ATTR_COORDTYPE, ATTR_FILLED, ATTR_FULLLATLON, ATTR_LINEWIDTH, ATTR_NAME, ATTR_PICKABLE, ATTR_POINTS, ATTR_TEXT, ATTR_TIMES, ATTR_ZPOSITION, control, COORD_LABELS, COORD_LATLON, COORD_LATLONALT, 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, 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
HighLowGlyph()
          ctor
HighLowGlyph(boolean high)
          ctor
HighLowGlyph(DrawingControl control, DisplayEvent event, boolean high)
          ctor
 
Method Summary
protected  void addAttributes(Element e)
          Populate the xml node with attrs
protected  boolean applyProperties(Hashtable compMap)
          Handle the property apply.
 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(List comps, Hashtable compMap)
          get the prop gui comps
 String getTagName()
          The tag to use in the xml
protected  Data getTimeField(Data data)
          Make a field maps all of the time values to the given data as the range
 String getTypeName()
          Get the name of this glyph type
 DrawingGlyph handleCreation(DisplayEvent event)
          Initialize after creation
 DrawingGlyph handleMouseMoved(DisplayEvent event)
          Handle event
 DrawingGlyph handleMousePressed(DisplayEvent event)
          Handle event
protected  boolean initFinalInner()
          Do the final initialization
 boolean initFromUser(DrawingControl control, DisplayEvent event)
          User created me.
 void initFromXml(DrawingControl control, Element node)
          Xml created me
protected static void setAnimationSet(Displayable d, List timeValues)
          utility to set the animation set on the displayable
protected  void setColor(Displayable displayable, 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
 
Methods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
addDisplayable, addTime, canShowArea, canShowDistance, checkTimeVisibility, checkVisibility, closestPoint, constrainedTo2D, distance, distanceBetween, distanceBetween, doInterpolatedStretch, doMove, doneBeingCreated, doStretch, evaluateJython, getArea, getBeenRemoved, getBeingCreated, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDescription, getDisplayable, getDistance, getEditable, getElement, getFilled, getFixedAltitude, getFullLatLon, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getSelectionPoints, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleKeyPressed, handleMouseDragged, handleMouseReleased, hide, initFinal, initFromBundle, initMove, initStretch, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isValid, isVisible, makePoint, mousePressed, moveTo, processPointStrings, projectionChanged, removeDisplayable, setActualPoints, setBeenRemoved, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisible, setVisibleFlag, setZPosition, shouldShowColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, viewpointChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTR_PRESSURE

public static final String ATTR_PRESSURE
xgrf xml attribute

See Also:
Constant Field Values
Constructor Detail

HighLowGlyph

public HighLowGlyph()
ctor


HighLowGlyph

public HighLowGlyph(boolean high)
ctor

Parameters:
high - Is this a high pressure symbol

HighLowGlyph

public HighLowGlyph(DrawingControl control,
                    DisplayEvent event,
                    boolean high)
ctor

Parameters:
control - The control I'm in
event - The event when I was created
high - Is this a high pressure symbol
Method Detail

getExtraDescription

public String getExtraDescription()
Get the extra descripition used in the JTable listing

Overrides:
getExtraDescription in class DrawingGlyph
Returns:
extra description

getTimeField

protected Data getTimeField(Data data)
                     throws VisADException,
                            RemoteException
Make a field maps all of the time values to the given data as the range

Overrides:
getTimeField in class DrawingGlyph
Parameters:
data - The range
Returns:
time field
Throws:
RemoteException - On badness
VisADException - On badness

handleCreation

public DrawingGlyph handleCreation(DisplayEvent event)
                            throws VisADException,
                                   RemoteException
Initialize after creation

Overrides:
handleCreation in class DrawingGlyph
Parameters:
event - The event
Returns:
this
Throws:
RemoteException - On badness
VisADException - On badness

initFromUser

public boolean initFromUser(DrawingControl control,
                            DisplayEvent event)
                     throws VisADException,
                            RemoteException
User created me.

Overrides:
initFromUser in class DrawingGlyph
Parameters:
control - The control I'm in
event - The event
Returns:
ok
Throws:
RemoteException - On badness
VisADException - On badness

initFromXml

public void initFromXml(DrawingControl control,
                        Element node)
                 throws VisADException,
                        RemoteException
Xml created me

Overrides:
initFromXml in class DrawingGlyph
Parameters:
control - The control
node - The xml
Throws:
RemoteException - On badness
VisADException - On badness

getTagName

public String getTagName()
The tag to use in the xml

Specified by:
getTagName in class DrawingGlyph
Returns:
Xml tag name

addAttributes

protected void addAttributes(Element e)
Populate the xml node with attrs

Overrides:
addAttributes in class DrawingGlyph
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 - displayable
timeValues - times
Throws:
RemoteException - On badness
VisADException - On badness

initFinalInner

protected boolean initFinalInner()
                          throws VisADException,
                                 RemoteException
Do the final initialization

Overrides:
initFinalInner in class DrawingGlyph
Returns:
Successful
Throws:
RemoteException - On badness
VisADException - On badness

setColor

protected void setColor(Displayable displayable,
                        Color c)
                 throws VisADException,
                        RemoteException
Override the set color method so we don't set the color

Overrides:
setColor in class DrawingGlyph
Parameters:
displayable - the displayable
c - The color
Throws:
RemoteException - On badness
VisADException - On badness

handleMousePressed

public DrawingGlyph handleMousePressed(DisplayEvent event)
                                throws VisADException,
                                       RemoteException
Handle event

Overrides:
handleMousePressed in class DrawingGlyph
Parameters:
event - The event
Returns:
This or null
Throws:
RemoteException - When bad things happen
VisADException - When bad things happen

handleMouseMoved

public DrawingGlyph handleMouseMoved(DisplayEvent event)
                              throws VisADException,
                                     RemoteException
Handle event

Overrides:
handleMouseMoved in class DrawingGlyph
Parameters:
event - The event
Returns:
This or null
Throws:
RemoteException - When bad things happen
VisADException - When bad things happen

applyProperties

protected boolean applyProperties(Hashtable compMap)
                           throws VisADException,
                                  RemoteException
Handle the property apply.

Overrides:
applyProperties in class DrawingGlyph
Parameters:
compMap - Holds property widgets
Returns:
success
Throws:
RemoteException - On badness
VisADException - On badness

getPropertiesComponents

protected void getPropertiesComponents(List comps,
                                       Hashtable compMap)
get the prop gui comps

Overrides:
getPropertiesComponents in class DrawingGlyph
Parameters:
comps - List of comps
compMap - comp map

getTypeName

public String getTypeName()
Get the name of this glyph type

Specified by:
getTypeName in class DrawingGlyph
Returns:
The name

updateLocation

public void updateLocation()
                    throws VisADException,
                           RemoteException
Handle glyph moved

Overrides:
updateLocation in class DrawingGlyph
Throws:
RemoteException - On badness
VisADException - 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