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, polygon
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 |
---|
BattlePosition(java.lang.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(java.lang.Object owner)
Invoked each frame to apply to the current delegate owner to all renderable objects used to draw the graphic.
|
protected TacticalSymbol |
createEchelonSymbol(java.lang.String sidc)
Create a tactical symbol to render the echelon modifier.
|
protected java.lang.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 java.lang.String |
getGraphicLabel() |
static java.util.List<java.lang.String> |
getSupportedGraphics()
Indicates the graphics supported by this class.
|
createLabels, createPolygon, determineMainLabelPosition, doRenderGraphic, getLabelAlignment, getPositionCount, getPositions, getReferencePosition, makeShapes, preRender, setPositions
createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatus
addLabel, 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, 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 TacticalSymbol echelonSymbol
protected static final int PBNO_OUTLINE_STIPPLE_FACTOR
protected TacticalSymbolAttributes symbolAttributes
public BattlePosition(java.lang.String sidc)
sidc
- Symbol code the identifies the graphic.protected void applyDefaultAttributes(ShapeAttributes attributes)
AbstractMilStd2525TacticalGraphic
applyDefaultAttributes
in class AbstractMilStd2525TacticalGraphic
attributes
- Attributes bundle to receive defaults.protected void applyDelegateOwner(java.lang.Object owner)
applyDelegateOwner
in class BasicArea
owner
- Current delegate owner.protected TacticalSymbol createEchelonSymbol(java.lang.String sidc)
sidc
- Identifier for the symbol.protected java.lang.String createLabelText()
createLabelText
in class BasicArea
protected void determineActiveAttributes()
determineActiveAttributes
in class AbstractTacticalGraphic
protected void determineIdentityLabelPositions()
determineIdentityLabelPositions
in class BasicArea
protected void determineLabelPositions(DrawContext dc)
determineLabelPositions
in class BasicArea
dc
- Current draw context.protected void doRenderGraphicModifiers(DrawContext dc)
doRenderGraphicModifiers
in class AbstractTacticalGraphic
dc
- Current draw context.protected java.lang.String getGraphicLabel()
getGraphicLabel
in class BasicArea
public static java.util.List<java.lang.String> getSupportedGraphics()