public class BattlePosition extends BasicArea
| Modifier and Type | Field and Description |
|---|---|
protected TacticalSymbol |
echelonSymbol
Tactical symbol used to render the echelon modifier.
|
protected static int |
PBNO_OUTLINE_STIPPLE_FACTOR
Factor applied to the stipple pattern used to draw the dashed line for a Prepared but not Occupied area.
|
protected TacticalSymbolAttributes |
symbolAttributes
Attribute bundle for the echelon symbol.
|
identityLabel1, identityLabel2, polygonmaskedSymbolCode, 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 |
|---|
BattlePosition(String sidc)
Create a new area graphic.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyDefaultAttributes(ShapeAttributes attributes)
Apply defaults to the active attributes bundle.
|
protected void |
applyDelegateOwner(Object owner)
Invoked each frame to apply to the current delegate owner to all renderable objects used to draw the graphic.
|
protected TacticalSymbol |
createEchelonSymbol(String sidc)
Create a tactical symbol to render the echelon modifier.
|
protected String |
createLabelText()
Create the text for the main label on this graphic.
|
protected void |
determineActiveAttributes()
Determine active attributes for this frame.
|
protected void |
determineIdentityLabelPositions()
Overridden to determine the position of the echelon label as well as the identity labels.
|
protected void |
determineLabelPositions(DrawContext dc)
Determine the appropriate position for the graphic's labels.
|
protected void |
doRenderGraphicModifiers(DrawContext dc)
Render the graphic modifiers.
|
protected String |
getGraphicLabel() |
static List<String> |
getSupportedGraphics()
Indicates the graphics supported by this class.
|
createLabels, createPolygon, determineMainLabelPosition, doRenderGraphic, getLabelAlignment, getPositionCount, getPositions, getReferencePosition, makeShapes, preRender, setPositionscreateSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatusaddLabel, applyLabelAttributes, applyOverrideAttributes, computeGeometry, computeLabelInteriorOpacity, determineDelegateOwner, determinePerFrameAttributes, doDrag, doRenderTextModifiers, drag, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, getDefaultLabelOffset, 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, 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 TacticalSymbol echelonSymbol
protected static final int PBNO_OUTLINE_STIPPLE_FACTOR
protected TacticalSymbolAttributes symbolAttributes
public BattlePosition(String sidc)
sidc - Symbol code the identifies the graphic.protected void applyDefaultAttributes(ShapeAttributes attributes)
AbstractMilStd2525TacticalGraphicapplyDefaultAttributes in class AbstractMilStd2525TacticalGraphicattributes - Attributes bundle to receive defaults.protected void applyDelegateOwner(Object owner)
applyDelegateOwner in class BasicAreaowner - Current delegate owner.protected TacticalSymbol createEchelonSymbol(String sidc)
sidc - Identifier for the symbol.protected String createLabelText()
createLabelText in class BasicAreaprotected void determineActiveAttributes()
determineActiveAttributes in class AbstractTacticalGraphicprotected void determineIdentityLabelPositions()
determineIdentityLabelPositions in class BasicAreaprotected void determineLabelPositions(DrawContext dc)
determineLabelPositions in class BasicAreadc - Current draw context.protected void doRenderGraphicModifiers(DrawContext dc)
doRenderGraphicModifiers in class AbstractTacticalGraphicdc - Current draw context.protected String getGraphicLabel()
getGraphicLabel in class BasicArea