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.LineGlyph
          extended by ucar.unidata.idv.control.drawing.PolyGlyph
              extended by ucar.unidata.idv.control.drawing.FrontGlyph
                  extended by ucar.unidata.idv.control.drawing.ArrowGlyph

public class ArrowGlyph
extends FrontGlyph

Class ArrowGlyph draws fronts

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

Field Summary
 
Fields inherited from class ucar.unidata.idv.control.drawing.FrontGlyph
ATTR_FRONTSCALE, ATTR_FRONTTYPE
 
Fields inherited from class ucar.unidata.idv.control.drawing.PolyGlyph
ATTR_EXTRUDE, ATTR_SMOOTH, IDX_X, IDX_Y, IDX_Z
 
Fields 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_NONE, COORD_TYPENAMES, COORD_TYPES, COORD_XY, COORD_XYZ, coordType, firstMoveEarthLocation, firstMoveLocation, IDX_ALT, IDX_LAT, IDX_LON, 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
ArrowGlyph()
          Ctor
ArrowGlyph(DrawingControl control, DisplayEvent event, boolean smooth)
          Ctor
 
Method Summary
protected  FrontDrawer doMakeFrontDrawer()
          make the frontDrawer
protected  float[][] getCurve()
          create the line
 String getTagName()
          Get xml tag name to use
 String getTypeName()
          Name to use for this glyph
 void setLineWidth(float value)
          Set width
protected  boolean shouldAddFrontProperties()
          should add properties for the fronts
protected  boolean shouldShowColorSelector()
          show the color selector in the properties
 
Methods inherited from class ucar.unidata.idv.control.drawing.FrontGlyph
addAttributes, applyProperties, canShowArea, createDisplayable, doStretch, getDefaultZPosition, getExtraDescription, getFlipIt, getFrontDrawer, getFrontScale, getFrontType, getPropertiesComponents, getSelectionPoints, handleMousePressed, initFinalInner, initFromXml, projectionChanged, setBaseScale, setFlipIt, setFrontScale, setFrontType, updateLocation, viewpointChanged, xxhandleMouseDragged, xxxxsetColor
 
Methods inherited from class ucar.unidata.idv.control.drawing.PolyGlyph
canShowDistance, doDeletePoint, doFlythrough, doneBeingCreated, getClosed, getExtrude, getSmooth, handleKeyPressed, handleMouseDragged, handleMouseReleased, isValid, setClosed, setExtrude, setSmooth
 
Methods inherited from class ucar.unidata.idv.control.drawing.LineGlyph
getLineWidth, initFromUser
 
Methods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
addDisplayable, addTime, checkTimeVisibility, checkVisibility, closestPoint, constrainedTo2D, distance, distanceBetween, distanceBetween, doInterpolatedStretch, doMove, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDescription, getDisplayable, getDistance, getEditable, getElement, getFilled, getFixedAltitude, getFullLatLon, getIsRaster, getLatLons, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getTimeField, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleCreation, handleMouseMoved, hide, initFinal, initFromBundle, initMove, initStretch, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isVisible, makePoint, mousePressed, moveTo, processPointStrings, removeDisplayable, setActualPoints, setBeenRemoved, setBgcolor, setColor, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisible, setVisibleFlag, setZPosition, shouldShowBgColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, writePoints
 
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,
                  boolean smooth)
           throws VisADException,
                  RemoteException
Ctor

Parameters:
control - The control I'm in.
event - The display event.
smooth - is the line smooth or segmented
Throws:
RemoteException - When bad things happen
VisADException - When bad things happen
Method Detail

doMakeFrontDrawer

protected FrontDrawer doMakeFrontDrawer()
                                 throws VisADException,
                                        RemoteException
make the frontDrawer

Overrides:
doMakeFrontDrawer in class FrontGlyph
Returns:
the frontdrawer
Throws:
RemoteException - on badness
VisADException - on badness

setLineWidth

public void setLineWidth(float value)
Set width

Overrides:
setLineWidth in class LineGlyph
Parameters:
value - width

getCurve

protected float[][] getCurve()
                      throws VisADException,
                             RemoteException
create the line

Overrides:
getCurve in class FrontGlyph
Returns:
the curve
Throws:
RemoteException - on badness
VisADException - on badness

shouldAddFrontProperties

protected boolean shouldAddFrontProperties()
should add properties for the fronts

Overrides:
shouldAddFrontProperties in class FrontGlyph
Returns:
add front properties

shouldShowColorSelector

protected boolean shouldShowColorSelector()
show the color selector in the properties

Overrides:
shouldShowColorSelector in class FrontGlyph
Returns:
show the color selector in the properties

getTagName

public String getTagName()
Get xml tag name to use

Overrides:
getTagName in class FrontGlyph
Returns:
Xml tag name

getTypeName

public String getTypeName()
Name to use for this glyph

Overrides:
getTypeName in class FrontGlyph
Returns:
The glyph type name