public class LineOfContact extends ForwardLineOfOwnTroops
ForwardLineOfOwnTroops.PositionIterator| Modifier and Type | Field and Description | 
|---|---|
| protected Path | path2Line of Contact is drawn with two paths. | 
computedPositions, DEFAULT_NUM_INTERVALS, DEFAULT_NUM_WAVES, intervals, positions, waveLengthpath, PLD_OUTLINE_STIPPLE_FACTORmaskedSymbolCode, OUTLINE_STIPPLE_FACTOR_ANTICIPATED, OUTLINE_STIPPLE_FACTOR_PRESENT, OUTLINE_STIPPLE_PATTERN, symbolCodeactiveOverrides, activeShapeAttributes, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_LABEL_INTERIOR_OPACITY, delegateOwner, dragEnabled, draggableSupport, frameTimestamp, highlightAttributes, highlighted, labelOffset, labels, modifiers, mustCreateLabels, normalAttributes, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, text, unitsFormat, visible| Constructor and Description | 
|---|
| LineOfContact(String sidc)Create a new graphic. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | doRenderGraphic(DrawContext dc)Render this graphic, without modifiers. | 
| protected void | generateIntermediatePositions(DrawContext dc,
                             Iterable<? extends Position> positions)Generate the positions required to draw the line. | 
| void | generateParallelLines(Iterator<? extends Position> iterator,
                     List<Position> leftPositions,
                     List<Position> rightPositions,
                     double halfWidth,
                     Globe globe)Create positions that describe lines parallel to a control line. | 
| protected void | generateParallelPoints(Vec4 point,
                      Vec4 prev,
                      Vec4 next,
                      List<Position> leftPositions,
                      List<Position> rightPositions,
                      double halfWidth,
                      Globe globe)Compute points on either side of a line segment. | 
| protected String | getGraphicLabel() | 
| static List<String> | getSupportedGraphics()Indicates the graphics supported by this class. | 
| void | moveTo(Position position)Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to
 North. | 
computeDefaultWavelength, computeGeometry, computeGreatCirclePathLength, generateWavePositions, getIntervals, getPositions, getWaveLength, onShapeChanged, setIntervals, setPositions, setWaveLengthapplyDefaultAttributes, applyDelegateOwner, createLabels, createPath, determineLabelPositions, getReferencePositioncreateSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatusaddLabel, applyLabelAttributes, applyOverrideAttributes, computeLabelInteriorOpacity, determineActiveAttributes, determineDelegateOwner, determinePerFrameAttributes, doDrag, doRenderGraphicModifiers, doRenderTextModifiers, drag, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, getDefaultLabelOffset, getDelegateOwner, getHighlightAttributes, getLabelMaterial, getLabelOffset, getUnitsFormat, isDragEnabled, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, move, onModifierChanged, render, setAttributes, setDelegateOwner, setDragEnabled, setHighlightAttributes, setHighlighted, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisibleaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisiblerenderisHighlighted, setHighlightedaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected Path path2
public LineOfContact(String sidc)
sidc - MIL-STD-2525C identifier code.protected void doRenderGraphic(DrawContext dc)
PhaseLinedoRenderGraphic in class PhaseLinedc - Current draw context.AbstractTacticalGraphic.doRenderTextModifiers(gov.nasa.worldwind.render.DrawContext), 
AbstractTacticalGraphic.doRenderGraphicModifiers(gov.nasa.worldwind.render.DrawContext)protected void generateIntermediatePositions(DrawContext dc, Iterable<? extends Position> positions)
generateIntermediatePositions in class ForwardLineOfOwnTroopsdc - Current draw context.positions - Positions that define the polygon boundary.public void generateParallelLines(Iterator<? extends Position> iterator, List<Position> leftPositions, List<Position> rightPositions, double halfWidth, Globe globe)
iterator - Iterator of control line positions.leftPositions - List to collect positions on the left line.rightPositions - List to collect positions on the right line.halfWidth - Distance from the center line to the left or right lines.globe - Current globe.protected void generateParallelPoints(Vec4 point, Vec4 prev, Vec4 next, List<Position> leftPositions, List<Position> rightPositions, double halfWidth, Globe globe)
point - Center point about which to compute side points.prev - Previous point on the line. May be null if next is non-null.next - Next point on the line. May be null if prev is non-null.leftPositions - Left position will be added to this list.rightPositions - Right position will be added to this list.halfWidth - Distance from the center line to the left or right lines.globe - Current globe.protected String getGraphicLabel()
getGraphicLabel in class ForwardLineOfOwnTroopspublic static List<String> getSupportedGraphics()
public void moveTo(Position position)
moveTo in interface MovablemoveTo in class ForwardLineOfOwnTroopsposition - the new position of the shape's reference position.