public class ForwardLineOfOwnTroops extends PhaseLine
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | ForwardLineOfOwnTroops.PositionIteratorIterator to generate equally spaced positions along a control line. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected List<Position> | computedPositionsPositions computed from the original positions. | 
| static int | DEFAULT_NUM_INTERVALSDefault number of intervals used to draw the arcs. | 
| static int | DEFAULT_NUM_WAVESDefault number of wave lengths for a simple shape. | 
| protected int | intervalsNumber of intervals used to draw the arcs along the line. | 
| protected Iterable<? extends Position> | positionsOriginal positions specified by the application. | 
| protected double | waveLengthIndicates wave length (in meters) of the semicircle wave along the graphic boundary. | 
path, 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 | 
|---|
| ForwardLineOfOwnTroops(String sidc)Create a new graphic. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected double | computeDefaultWavelength(Iterable<? extends Position> positions,
                        Globe globe) | 
| protected void | computeGeometry(DrawContext dc) | 
| protected Angle | computeGreatCirclePathLength(Iterable<? extends Position> positions) | 
| protected void | generateIntermediatePositions(DrawContext dc,
                             Iterable<? extends Position> positions)Generate the positions required to draw the polygon with a triangle wave boundary. | 
| protected List<Position> | generateWavePositions(Iterator<? extends Position> iterator,
                     double radius,
                     boolean reverse) | 
| protected String | getGraphicLabel() | 
| int | getIntervals()Indicates the number of intervals used to draw the arc in this graphic. | 
| Iterable<? extends Position> | getPositions()Indicates the positions of the control points that place and orient the graphic. | 
| static List<String> | getSupportedGraphics()Indicates the graphics supported by this class. | 
| double | getWaveLength()Indicates the wavelength of the semicircle wave that forms the graphic's boundary. | 
| void | moveTo(Position position)Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to
 North. | 
| protected void | onShapeChanged() | 
| void | setIntervals(int intervals)Specifies the number of intervals used to draw the arc in this graphic. | 
| void | setPositions(Iterable<? extends Position> positions)Specifies the positions of the control points that place and orient the graphic. | 
| void | setWaveLength(int waveLength)Specifies the wavelength of the triangle wave that forms the graphic's boundary. | 
applyDefaultAttributes, applyDelegateOwner, createLabels, createPath, determineLabelPositions, doRenderGraphic, 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 List<Position> computedPositions
public static final int DEFAULT_NUM_INTERVALS
public static final int DEFAULT_NUM_WAVES
protected int intervals
protected Iterable<? extends Position> positions
protected double waveLength
public ForwardLineOfOwnTroops(String sidc)
sidc - MIL-STD-2525C identifier code.protected double computeDefaultWavelength(Iterable<? extends Position> positions, Globe globe)
protected void computeGeometry(DrawContext dc)
computeGeometry in class AbstractTacticalGraphicprotected Angle computeGreatCirclePathLength(Iterable<? extends Position> positions)
protected void generateIntermediatePositions(DrawContext dc, Iterable<? extends Position> positions)
dc - Current draw context.positions - Positions that define the polygon boundary.protected List<Position> generateWavePositions(Iterator<? extends Position> iterator, double radius, boolean reverse)
protected String getGraphicLabel()
getGraphicLabel in class PhaseLinepublic int getIntervals()
public Iterable<? extends Position> getPositions()
getPositions in interface TacticalGraphicgetPositions in class PhaseLinepublic static List<String> getSupportedGraphics()
public double getWaveLength()
/\/\/\/\/\ ^ ^ Wavelength
public void moveTo(Position position)
moveTo in interface MovablemoveTo in class AbstractTacticalGraphicposition - the new position of the shape's reference position.protected void onShapeChanged()
public void setIntervals(int intervals)
intervals - Number of intervals for drawing the arc.public void setPositions(Iterable<? extends Position> positions)
setPositions in interface TacticalGraphicsetPositions in class PhaseLinepositions - Positions that orient the graphic. How many positions are returned depends on the type of
                  graphic. Some graphics require only a single position, others require many. The positions must
                  be specified in the same order as the control points defined by the symbology set's template for
                  this type of graphic.public void setWaveLength(int waveLength)
getWaveLength() for
 more information on how this distance is interpreted.waveLength - The wavelength, in meters.