|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.symbology.AbstractTacticalGraphic
gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea
gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BattlePosition
public class BattlePosition
Implementation of Battle Position graphics. This class implements the following graphics:
| Field Summary | |
|---|---|
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. |
| Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea |
|---|
identityLabel1, identityLabel2, polygon |
| 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 | |
|---|---|
BattlePosition(String sidc)
Create a new area graphic. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea |
|---|
createLabels, createPolygon, determineMainLabelPosition, doRenderGraphic, getLabelAlignment, getPositionCount, getPositions, getReferencePosition, makeShapes, preRender, setPositions |
| Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic |
|---|
createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatus |
| 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 |
|---|
protected TacticalSymbol echelonSymbol
protected static final int PBNO_OUTLINE_STIPPLE_FACTOR
protected TacticalSymbolAttributes symbolAttributes
| Constructor Detail |
|---|
public BattlePosition(String sidc)
sidc - Symbol code the identifies the graphic.| Method Detail |
|---|
protected void applyDefaultAttributes(ShapeAttributes attributes)
AbstractMilStd2525TacticalGraphic
applyDefaultAttributes 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 BasicAreapublic static List<String> getSupportedGraphics()
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||