Package ucar.unidata.idv.control.drawing
Class LineGlyph
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.LineGlyph
- Direct Known Subclasses:
PolyGlyph,ShapeGlyph
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_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_LONLAT, 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, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPopulate the xml node with attrsprotected booleanapplyProperties(Hashtable compMap) Apply propsprotected voidCreate the displayable to usefloatGet the LineWidth property.protected voidgetPropertiesComponents(List comps, Hashtable compMap) Get properties widgetsprotected booleanInit at the endbooleaninitFromUser(DrawingControl control, DisplayEvent event) Init from uservoidinitFromXml(DrawingControl control, Element node) Init from xmlvoidsetLineWidth(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, doDeletePoint, doInterpolatedStretch, doMove, doneBeingCreated, doStretch, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDescription, getDisplayable, getDistance, getEditable, getElement, getExtraDescription, getFilled, getFixedAltitude, getFullLatLon, getIsRaster, getLatLons, 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, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isValid, isVisible, makePoint, mousePressed, moveTo, processPointStrings, processPointStrings, projectionChanged, removeDisplayable, setActualPoints, setBeenRemoved, setBgcolor, setColor, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisible, setVisibleFlag, setZPosition, shouldShowBgColorSelector, shouldShowColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, updateLocation, viewpointChanged, writePoints
-
Constructor Details
-
LineGlyph
public LineGlyph()Ctor -
LineGlyph
Ctor- Parameters:
control- The control I'm in.event- The display event.- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
-
Method Details
-
initFinalInner
Init at the end- Overrides:
initFinalInnerin classDrawingGlyph- Returns:
- Success
- Throws:
RemoteException- On badnessVisADException- On badness
-
createDisplayable
Create the displayable to use- Throws:
RemoteException- On badnessVisADException- On badness
-
initFromXml
public void initFromXml(DrawingControl control, Element node) throws VisADException, RemoteException Init from xml- Overrides:
initFromXmlin classDrawingGlyph- Parameters:
control- The control I'm in.node- The xml node- Throws:
RemoteException- On badnessVisADException- On badness
-
initFromUser
public boolean initFromUser(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException Init from user- Overrides:
initFromUserin classDrawingGlyph- Parameters:
control- The control I'm in.event- The display event.- Returns:
- ok
- Throws:
RemoteException- On badnessVisADException- On badness
-
addAttributes
Populate the xml node with attrs- Overrides:
addAttributesin classDrawingGlyph- 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
Apply props- Overrides:
applyPropertiesin classDrawingGlyph- Parameters:
compMap- Holds mapping of attribute name to widget- Returns:
- Success
- Throws:
RemoteException- On badnessVisADException- On badness
-
getPropertiesComponents
Get properties widgets- Overrides:
getPropertiesComponentsin classDrawingGlyph- Parameters:
comps- List of widgetscompMap- Holds mapping of attribute name to widget
-