public class DirectionOfAttackForFeint extends DirectionOfAttack
Modifier and Type | Field and Description |
---|---|
protected double |
curvature
Factor that controls the curve of the line.
|
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.
|
static Angle |
DEFAULT_ARROWHEAD_ANGLE
Default angle of the arrowhead.
|
static double |
DEFAULT_CURVATURE
Default factor that determines the curvature of the line.
|
static int |
DEFAULT_NUM_INTERVALS
Default number of intervals used to draw the curve.
|
protected int |
intervals
Number of intervals used to draw the curve.
|
protected static Offset |
LABEL_OFFSET
Offset applied to the label.
|
protected Position |
labelOrientationPosition
Orientation position for the label.
|
protected Position |
labelPosition
Position of the label along the curve.
|
arrowAngle, arrowLength, DEFAULT_ARROWHEAD_LENGTH, DEFAULT_ARROWHEAD_OUTLINE_WIDTH, endPosition, outlineWidth, paths, startPosition
maskedSymbolCode, OUTLINE_STIPPLE_FACTOR_ANTICIPATED, OUTLINE_STIPPLE_FACTOR_PRESENT, OUTLINE_STIPPLE_PATTERN, symbolCode
activeOverrides, 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 |
---|
DirectionOfAttackForFeint(String sidc)
Create a new arrow graphic.
|
Modifier and Type | Method and Description |
---|---|
protected Vec4[] |
computeBezierControlPoints(DrawContext dc,
Vec4 start,
Vec4 end,
double curvature)
Compute the position of control points that will generate a Bezier curve that looks like the Direction of Attack
for Feint graphic in MIL-STD-2525C (pg.
|
protected void |
createLabels() |
protected void |
createShapes(DrawContext dc)
Create the list of positions that describe the arrow.
|
protected void |
determineActiveAttributes()
Determine active attributes for this frame.
|
protected void |
determineLabelPositions(DrawContext dc)
Determine positions for the start and end labels.
|
double |
getCurvature()
Indicates a factor that determines the curvature of the line.
|
protected Offset |
getDefaultLabelOffset()
Indicates the default offset applied to the graphic's main label.
|
int |
getIntervals()
Indicates the number of intervals used to draw the curve in this graphic.
|
static List<String> |
getSupportedGraphics()
Indicates the graphics supported by this class.
|
protected void |
onShapeChanged() |
void |
setCurvature(double factor)
Specifies a factor that determines the curvature of the line.
|
void |
setIntervals(int intervals)
Specifies the number of intervals used to draw the curve in this graphic.
|
applyDelegateOwner, computeArrowheadPositions, computeGeometry, createPath, doRenderGraphic, getArrowAngle, getArrowLength, getOutlineWidth, getPositions, getReferencePosition, isDrawOutlined, setArrowAngle, setArrowLength, setOutlineWidth, setPositions
applyDefaultAttributes, createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatus
addLabel, applyLabelAttributes, applyOverrideAttributes, computeLabelInteriorOpacity, determineDelegateOwner, determinePerFrameAttributes, doDrag, doRenderGraphicModifiers, doRenderTextModifiers, drag, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, getDelegateOwner, getHighlightAttributes, getLabelMaterial, getLabelOffset, getUnitsFormat, isDragEnabled, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, move, moveTo, onModifierChanged, render, setAttributes, setDelegateOwner, setDragEnabled, setHighlightAttributes, setHighlighted, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
render
isHighlighted, setHighlighted
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected double curvature
protected static final double DASHED_LINE_DISTANCE
protected ShapeAttributes dashedAttributes
public static final Angle DEFAULT_ARROWHEAD_ANGLE
public static final double DEFAULT_CURVATURE
public static final int DEFAULT_NUM_INTERVALS
protected int intervals
protected static final Offset LABEL_OFFSET
protected Position labelOrientationPosition
labelPosition
.protected Position labelPosition
public DirectionOfAttackForFeint(String sidc)
sidc
- Symbol code the identifies the graphic.protected Vec4[] computeBezierControlPoints(DrawContext dc, Vec4 start, Vec4 end, double curvature)
dc
- Current draw context.start
- Beginning of the infiltration lane control line.end
- End of the infiltration lane control line.curvature
- Factor that controls the curvature of the line. Valid values are between zero and one. A higher
value results in a more pronounced curve.start
, and the last point
is equal to end
.protected void createLabels()
createLabels
in class AbstractTacticalGraphic
protected void createShapes(DrawContext dc)
createShapes
in class DirectionOfAttack
dc
- Current draw context.protected void determineActiveAttributes()
determineActiveAttributes
in class AbstractTacticalGraphic
protected void determineLabelPositions(DrawContext dc)
AbstractTacticalGraphic
determineLabelPositions
in class AbstractTacticalGraphic
dc
- Current draw context.public double getCurvature()
protected Offset getDefaultLabelOffset()
getDefaultLabelOffset
in class AbstractTacticalGraphic
public int getIntervals()
public static List<String> getSupportedGraphics()
protected void onShapeChanged()
public void setCurvature(double factor)
factor
- The factor that determines the curvature of the line.public void setIntervals(int intervals)
intervals
- Number of intervals for drawing the curve. Must at least three.