ucar.unidata.idv.control.drawing
Class LineGlyph

java.lang.Object
  extended by ucar.unidata.idv.control.drawing.DrawingGlyph
      extended by ucar.unidata.idv.control.drawing.LineGlyph
Direct Known Subclasses:
PolyGlyph, ShapeGlyph

public abstract class LineGlyph
extends DrawingGlyph

Class LineGlyph draws lines.

Version:
$Revision: 1.19 $
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
LineGlyph()
          Ctor
LineGlyph(DrawingControl control, DisplayEvent event)
          Ctor
 
Method Summary
protected  void addAttributes(Element e)
          Populate the xml node with attrs
protected  boolean applyProperties(Hashtable compMap)
          Apply props
protected  void createDisplayable()
          Create the displayable to use
 float getLineWidth()
          Get the LineWidth property.
protected  void getPropertiesComponents(List comps, Hashtable compMap)
          Get properties widgets
protected  boolean initFinalInner()
          Init at the end
 boolean initFromUser(DrawingControl control, DisplayEvent event)
          Init from user
 void initFromXml(DrawingControl control, Element node)
          Init from xml
 void setLineWidth(float value)
          Set the LineWidth property.
 
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, getExtraDescription, getFilled, getFixedAltitude, getFullLatLon, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getSelectionPoints, getTagName, getTimeField, getTimePropertiesComponents, getTimeValues, getTypeName, getVisibleFlag, getZPosition, handleCreation, handleKeyPressed, handleMouseDragged, handleMouseMoved, handleMousePressed, handleMouseReleased, hide, initFinal, initFromBundle, initMove, initStretch, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isValid, isVisible, makePoint, mousePressed, moveTo, processPointStrings, projectionChanged, 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, updateLocation, viewpointChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineGlyph

public LineGlyph()
Ctor


LineGlyph

public LineGlyph(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
Create the displayable to use

Throws:
RemoteException - On badness
VisADException - On badness

initFromXml

public void initFromXml(DrawingControl control,
                        Element node)
                 throws VisADException,
                        RemoteException
Init 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

initFromUser

public boolean initFromUser(DrawingControl control,
                            DisplayEvent event)
                     throws VisADException,
                            RemoteException
Init from user

Overrides:
initFromUser in class DrawingGlyph
Parameters:
control - The control I'm in.
event - The display event.
Returns:
ok
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

setLineWidth

public void setLineWidth(float value)
Set the LineWidth property.

Parameters:
value - The new value for LineWidth

getLineWidth

public float getLineWidth()
Get the LineWidth property.

Returns:
The LineWidth

applyProperties

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

Overrides:
applyProperties in class DrawingGlyph
Parameters:
compMap - Holds mapping of attribute name to widget
Returns:
Success
Throws:
RemoteException - On badness
VisADException - On badness

getPropertiesComponents

protected void getPropertiesComponents(List comps,
                                       Hashtable compMap)
Get properties widgets

Overrides:
getPropertiesComponents in class DrawingGlyph
Parameters:
comps - List of widgets
compMap - Holds mapping of attribute name to widget