ucar.unidata.idv.control.drawing
Class FrontGlyph

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

public class FrontGlyph
extends DrawingGlyph

Class FrontGlyph draws fronts

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

Field Summary
static String ATTR_FRONTTYPE
          Xml attribute name
 
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
FrontGlyph()
          Ctor
FrontGlyph(DrawingControl control, DisplayEvent event)
          Ctor
FrontGlyph(DrawingControl control, DisplayEvent event, String type)
          ctor
 
Method Summary
protected  void addAttributes(Element e)
          Populate the xml node with attrs
protected  boolean applyProperties(Hashtable compMap)
          apply props
 boolean canShowDistance()
          Can we show calculated distance
 void doFlythrough()
          Do the flythru
 void doStretch(DisplayEvent event)
          Stretch this glyph
protected  float getDefaultZPosition()
          Get the default Z position for the glyph.
 String getExtraDescription()
          get the extra description to show in gui
 boolean getFlipIt()
          Get the FlipIt property.
 String getFrontType()
          Get the FrontType property.
protected  void getPropertiesComponents(List comps, Hashtable compMap)
          get the prop gui comps
protected  List getSelectionPoints()
          Get points used to select this glyph.
 String getTagName()
          Get xml tag name to use
 String getTypeName()
          Name to use for this glyph
 DrawingGlyph handleMouseDragged(DisplayEvent event)
          Handle event
 DrawingGlyph handleMousePressed(DisplayEvent event)
          Handle event
protected  boolean initFinalInner()
          Init at the end
 void initFromXml(DrawingControl control, Element node)
          Initialize from xml
 void projectionChanged()
          Update location
static void setBaseScale(DrawingControl control, FrontDrawer frontDrawer)
          Utility
 void setFlipIt(boolean value)
          Set the FlipIt property.
 void setFrontType(String value)
          Set the FrontType property.
 void updateLocation()
          Glyph moved.
 void viewpointChanged()
          Update location
protected  void xxxxsetColor(Displayable displayable, Color c)
          noop
 
Methods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
addDisplayable, addTime, canShowArea, checkTimeVisibility, checkVisibility, closestPoint, constrainedTo2D, distance, distanceBetween, distanceBetween, doInterpolatedStretch, doMove, doneBeingCreated, evaluateJython, getArea, getBeenRemoved, getBeingCreated, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDescription, getDisplayable, getDistance, getEditable, getElement, getFilled, getFixedAltitude, getFullLatLon, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getTimeField, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleCreation, handleKeyPressed, handleMouseMoved, handleMouseReleased, hide, initFinal, initFromBundle, initFromUser, initMove, initStretch, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isValid, isVisible, makePoint, mousePressed, moveTo, processPointStrings, removeDisplayable, setActualPoints, setBeenRemoved, setColor, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisible, setVisibleFlag, setZPosition, shouldShowColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTR_FRONTTYPE

public static final String ATTR_FRONTTYPE
Xml attribute name

See Also:
Constant Field Values
Constructor Detail

FrontGlyph

public FrontGlyph()
Ctor


FrontGlyph

public FrontGlyph(DrawingControl control,
                  DisplayEvent event)
           throws VisADException,
                  RemoteException
Ctor

Parameters:
control - The control I'm in.
event - The display event.
Throws:
RemoteException - When bad things happen
VisADException - When bad things happen

FrontGlyph

public FrontGlyph(DrawingControl control,
                  DisplayEvent event,
                  String type)
           throws VisADException,
                  RemoteException
ctor

Parameters:
control - The control I'm in.
event - The display event.
type - Front type
Throws:
RemoteException - When bad things happen
VisADException - When bad things happen
Method Detail

initFinalInner

protected boolean initFinalInner()
                          throws VisADException,
                                 RemoteException
Init at the end

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

xxxxsetColor

protected void xxxxsetColor(Displayable displayable,
                            Color c)
                     throws VisADException,
                            RemoteException
noop

Parameters:
displayable - displayable
c - color
Throws:
RemoteException - On badness
VisADException - On badness

doStretch

public void doStretch(DisplayEvent event)
               throws VisADException,
                      RemoteException
Stretch this glyph

Overrides:
doStretch in class DrawingGlyph
Parameters:
event - The display event.
Throws:
RemoteException - On badness
VisADException - On badness

getExtraDescription

public String getExtraDescription()
get the extra description to show in gui

Overrides:
getExtraDescription in class DrawingGlyph
Returns:
description

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

applyProperties

protected boolean applyProperties(Hashtable compMap)
                           throws VisADException,
                                  RemoteException
apply props

Overrides:
applyProperties in class DrawingGlyph
Parameters:
compMap - holds comps
Returns:
ok
Throws:
RemoteException - On badness
VisADException - On badness

canShowDistance

public boolean canShowDistance()
Can we show calculated distance

Overrides:
canShowDistance in class DrawingGlyph
Returns:
true

doFlythrough

public void doFlythrough()
                  throws VisADException,
                         RemoteException
Do the flythru

Throws:
RemoteException - On badness
VisADException - On badness

initFromXml

public void initFromXml(DrawingControl control,
                        Element node)
                 throws VisADException,
                        RemoteException
Initialize from xml

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

addAttributes

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

Overrides:
addAttributes in class DrawingGlyph
Parameters:
e - Xml node

viewpointChanged

public void viewpointChanged()
                      throws VisADException,
                             RemoteException
Update location

Overrides:
viewpointChanged in class DrawingGlyph
Throws:
RemoteException - On badness
VisADException - On badness

projectionChanged

public void projectionChanged()
                       throws VisADException,
                              RemoteException
Update location

Overrides:
projectionChanged in class DrawingGlyph
Throws:
RemoteException - On badness
VisADException - On badness

setBaseScale

public static void setBaseScale(DrawingControl control,
                                FrontDrawer frontDrawer)
                         throws VisADException,
                                RemoteException
Utility

Parameters:
control - The control we're in
frontDrawer - The drawer
Throws:
RemoteException - On badness
VisADException - On badness

getSelectionPoints

protected List getSelectionPoints()
Get points used to select this glyph.

Overrides:
getSelectionPoints in class DrawingGlyph
Returns:
Selection points

getDefaultZPosition

protected float getDefaultZPosition()
Get the default Z position for the glyph.

Overrides:
getDefaultZPosition in class DrawingGlyph
Returns:
_more_

updateLocation

public void updateLocation()
                    throws VisADException,
                           RemoteException
Glyph moved. Update the Displayable location.

Overrides:
updateLocation in class DrawingGlyph
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 display event.
Returns:
This or null
Throws:
RemoteException - When bad things happen
VisADException - When bad things happen

handleMouseDragged

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

Overrides:
handleMouseDragged in class DrawingGlyph
Parameters:
event - The display event.
Returns:
This or null
Throws:
RemoteException - On badness
VisADException - On badness

getTagName

public String getTagName()
Get xml tag name to use

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

getTypeName

public String getTypeName()
Name to use for this glyph

Specified by:
getTypeName in class DrawingGlyph
Returns:
The glyph type name

setFrontType

public void setFrontType(String value)
Set the FrontType property.

Parameters:
value - The new value for FrontType

getFrontType

public String getFrontType()
Get the FrontType property.

Returns:
The FrontType

setFlipIt

public void setFlipIt(boolean value)
Set the FlipIt property.

Parameters:
value - The new value for FlipIt

getFlipIt

public boolean getFlipIt()
Get the FlipIt property.

Returns:
The FlipIt