ucar.unidata.idv.control.drawing
Class ArrowGlyph

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

public class ArrowGlyph
extends DrawingGlyph

Class ArrowGlyph draws fronts

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

Field Summary
 
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
ArrowGlyph()
          Ctor
ArrowGlyph(DrawingControl control, DisplayEvent event)
          Ctor
 
Method Summary
 boolean canShowDistance()
          Can we show calculated distance
protected  void createDisplayable()
          make the displayable
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
protected  boolean initFinalInner()
          Init at the end
 void projectionChanged()
          projection changed
 void setLineWidth(float value)
          Set width
 void updateLocation()
          Glyph moved.
 void viewpointChanged()
          viewpoint changed
 
Methods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
addAttributes, addDisplayable, addTime, applyProperties, canShowArea, 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, getExtraDescription, getFilled, getFixedAltitude, getFullLatLon, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getPropertiesComponents, getTimeField, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleCreation, handleKeyPressed, handleMouseMoved, handleMousePressed, handleMouseReleased, hide, initFinal, initFromBundle, initFromUser, initFromXml, 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
 

Constructor Detail

ArrowGlyph

public ArrowGlyph()
Ctor


ArrowGlyph

public ArrowGlyph(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
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

createDisplayable

protected void createDisplayable()
                          throws VisADException,
                                 RemoteException
make the displayable

Throws:
RemoteException - On badness
VisADException - On badness

setLineWidth

public void setLineWidth(float value)
Set width

Parameters:
value - width

canShowDistance

public boolean canShowDistance()
Can we show calculated distance

Overrides:
canShowDistance in class DrawingGlyph
Returns:
true

viewpointChanged

public void viewpointChanged()
                      throws VisADException,
                             RemoteException
viewpoint changed

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

projectionChanged

public void projectionChanged()
                       throws VisADException,
                              RemoteException
projection changed

Overrides:
projectionChanged in class DrawingGlyph
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

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

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