NASA World Wind

gov.nasa.worldwind.symbology.milstd2525.graphics.lines
Class AdvanceForFeint

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.symbology.AbstractTacticalGraphic
          extended by gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
              extended by gov.nasa.worldwind.symbology.milstd2525.graphics.lines.AbstractAxisArrow
                  extended by gov.nasa.worldwind.symbology.milstd2525.graphics.lines.AdvanceForFeint
All Implemented Interfaces:
AVList, Movable, Highlightable, Renderable, MilStd2525TacticalGraphic, TacticalGraphic

public class AdvanceForFeint
extends AbstractAxisArrow

Implementation of the Axis of Advance for Feint graphic (2.X.2.3.3).


Field Summary
protected static double DASHED_LINE_DISTANCE
          Factor used to compute the distance between the solid and dashed lines in the arrow head.
protected  ShapeAttributes dashedAttributes
          Shape attributes for the dashed part of the graphic.
 
Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.lines.AbstractAxisArrow
arrowPositions, finalPointWidthOfRoute, paths, positions
 
Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
maskedSymbolCode, OUTLINE_STIPPLE_FACTOR_ANTICIPATED, OUTLINE_STIPPLE_FACTOR_PRESENT, OUTLINE_STIPPLE_PATTERN, symbolCode
 
Fields inherited from class gov.nasa.worldwind.symbology.AbstractTacticalGraphic
activeOverrides, activeShapeAttributes, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_LABEL_INTERIOR_OPACITY, delegateOwner, frameTimestamp, highlightAttributes, highlighted, labelOffset, labels, modifiers, mustCreateLabels, normalAttributes, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, text, unitsFormat, visible
 
Constructor Summary
AdvanceForFeint(String sidc)
          Create a new graphic.
 
Method Summary
protected  double createArrowHeadPositions(List<Position> leftPositions, List<Position> rightPositions, List<Position> arrowHeadPositions, Globe globe)
          Create positions that make up the arrow head.
protected  void createLabels()
          Create labels for the start and end of the path.
protected  void determineActiveAttributes()
          Determine active attributes for this frame.
protected  void determineLabelPositions(DrawContext dc)
          Determine positions for the start and end labels.
static List<String> getSupportedGraphics()
          Indicates the graphics supported by this class.
 
Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.lines.AbstractAxisArrow
applyDelegateOwner, createLinePositions, createPath, createShapePositions, doRenderGraphic, getPositions, getReferencePosition, isFinalPointWidthOfRoute, setFinalPointWidthOfRoute, setPositions
 
Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
applyDefaultAttributes, createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatus
 
Methods inherited from class gov.nasa.worldwind.symbology.AbstractTacticalGraphic
addLabel, applyLabelAttributes, applyOverrideAttributes, computeGeometry, computeLabelInteriorOpacity, determineDelegateOwner, determinePerFrameAttributes, doRenderGraphicModifiers, doRenderTextModifiers, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, getDefaultLabelOffset, getDelegateOwner, getHighlightAttributes, getLabelMaterial, getLabelOffset, getUnitsFormat, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, move, moveTo, onModifierChanged, render, setAttributes, setDelegateOwner, setHighlightAttributes, setHighlighted, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, 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, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.symbology.TacticalGraphic
getAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
 
Methods inherited from interface gov.nasa.worldwind.render.Renderable
render
 
Methods inherited from interface gov.nasa.worldwind.render.Highlightable
isHighlighted, setHighlighted
 
Methods inherited from interface gov.nasa.worldwind.Movable
move, moveTo
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Field Detail

DASHED_LINE_DISTANCE

protected static final double DASHED_LINE_DISTANCE
Factor used to compute the distance between the solid and dashed lines in the arrow head. A larger value will move the dashed line farther from the solid line.

See Also:
Constant Field Values

dashedAttributes

protected ShapeAttributes dashedAttributes
Shape attributes for the dashed part of the graphic.

Constructor Detail

AdvanceForFeint

public AdvanceForFeint(String sidc)
Create a new graphic.

Parameters:
sidc - Symbol code the identifies the graphic.
Method Detail

createArrowHeadPositions

protected double createArrowHeadPositions(List<Position> leftPositions,
                                          List<Position> rightPositions,
                                          List<Position> arrowHeadPositions,
                                          Globe globe)
Create positions that make up the arrow head.

The arrow head is defined by the first two control points, and the last point. Pt. 1' is the point on the center line at the base of the arrow head, and Pt. N' is the reflection of Pt. N about the center line.

                 Pt N
                 |\
 Left line       | \
 ----------------|  \
 Pt 2        Pt 1'   \ Pt 1
                     /
 ----------------|  /
 Right line      | /
                 |/Pt N'
 
Overridden to compute positions for the dashed portion of the arrow head.

Overrides:
createArrowHeadPositions in class AbstractAxisArrow
Parameters:
leftPositions - List to collect positions on the left arrow line. This list receives the position where the left line meets the arrow head.
rightPositions - List to collect positions on the right arrow line. This list receives the position where the right line meets the arrow head.
arrowHeadPositions - List to collect positions that make up the arrow head. This list receives positions for Pt. N, Pt. 1, and Pt. N', in that order.
globe - Current globe.
Returns:
The distance from the center line to the left and right lines.

createLabels

protected void createLabels()
Create labels for the start and end of the path.

Overrides:
createLabels in class AbstractTacticalGraphic

determineActiveAttributes

protected void determineActiveAttributes()
Determine active attributes for this frame.

Overrides:
determineActiveAttributes in class AbstractTacticalGraphic

determineLabelPositions

protected void determineLabelPositions(DrawContext dc)
Determine positions for the start and end labels.

Overrides:
determineLabelPositions in class AbstractTacticalGraphic
Parameters:
dc - Current draw context.

getSupportedGraphics

public static List<String> getSupportedGraphics()
Indicates the graphics supported by this class.

Returns:
List of masked SIDC strings that identify graphics that this class supports.

NASA World Wind