public class MilStd2525TacticalSymbol extends AbstractTacticalSymbol
TacticalSymbol
that provides support for tactical symbols from
the MIL-STD-2525 symbology
set. See the Tactical Symbol Usage Guide for instructions on using TacticalSymbol in an application.AbstractTacticalSymbol.IconAtlasElement, AbstractTacticalSymbol.IconSource, AbstractTacticalSymbol.IconTexture, AbstractTacticalSymbol.Label, AbstractTacticalSymbol.Line, AbstractTacticalSymbol.OrderedSymbol
TacticalSymbol.LODSelector
Modifier and Type | Field and Description |
---|---|
protected static Font |
DEFAULT_FRAME_SHAPE_FONT |
static UnitsFormat |
DEFAULT_UNITS_FORMAT
Default unit format.
|
protected static Set<String> |
exerciseSymbols |
protected boolean |
isGroundSymbol |
protected SymbolCode |
symbolCode
Indicates a string identifier for this symbol.
|
protected static Map<String,String> |
symbolEchelonMap |
protected boolean |
useGroundHeadingIndicator |
activeAttrs, activeIconTexture, activeModifiers, altitudeMode, BEogsh, currentGlyphs, currentLabels, currentLines, DEFAULT_DEPTH_OFFSET, DEFAULT_GLYPH_ATLAS, DEFAULT_LABEL_LINES, DEFAULT_MAX_TIME_SINCE_LAST_USED, defaultAttrs, delegateOwner, depthOffset, dragEnabled, draggableSupport, enableBatchPicking, enableBatchRendering, formattedPosition, frameNumber, glyphAtlas, glyphMap, highlightAttrs, highlighted, iconOffset, iconRect, iconRetriever, iconSize, iconTexture, LAYOUT_ABSOLUTE, LAYOUT_NONE, LAYOUT_RELATIVE, LOADING_IMAGE_PATH, LODSelector, MAX_SYMBOL_DIMENSION, maxTimeSinceLastUsed, modifierRetriever, modifiers, normalAttrs, offset, pickLayer, pickSupport, position, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, staticLayoutRect, staticScreenRect, thisFramesOrderedSymbol, unitsFormat, unresolvedGlyph, visible
Constructor and Description |
---|
MilStd2525TacticalSymbol(String symbolId,
Position position)
Constructs a tactical symbol for the MIL-STD-2525 symbology set with the specified symbol identifier and
position.
|
MilStd2525TacticalSymbol(String symbolId,
Position position,
AVList modifiers)
Constructs a tactical symbol for the MIL-STD-2525 symbology set with the specified symbol identifier, position,
and list of modifiers.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendTextModifier(StringBuilder sb,
AVList modifiers,
String modifierKey,
Integer maxLength) |
protected void |
applyImplicitModifiers(AVList modifiers)
Add implicit modifiers to the modifier list.
|
protected AVList |
assembleIconRetrieverParameters(AVList params) |
protected void |
computeTransform(DrawContext dc,
AbstractTacticalSymbol.OrderedSymbol osym) |
String |
getIdentifier()
Indicates a string identifier for this symbol.
|
protected int |
getMaxLabelLines(AVList modifiers) |
protected String |
getModifierCode(AVList modifiers,
String modifierKey) |
protected String |
getReinforcedReducedModifier(AVList modifiers,
String modifierKey) |
String |
getStatus()
Indicates the current value of symbol's Status/Operational Condition field.
|
protected void |
init(String symbolId,
AVList modifiers) |
protected void |
initIconLayout() |
boolean |
isShowFill()
Indicates whether this symbol draws its fill.
|
boolean |
isShowFrame()
Indicates whether this symbol draws its frame.
|
boolean |
isShowIcon()
Indicates whether this symbol draws its internal icon.
|
protected void |
layoutDynamicModifiers(DrawContext dc,
AVList modifiers,
AbstractTacticalSymbol.OrderedSymbol osym)
Layout dynamic modifiers around the symbol.
|
protected void |
layoutGraphicModifiers(DrawContext dc,
AVList modifiers,
AbstractTacticalSymbol.OrderedSymbol osym)
Layout static graphic modifiers around the symbol.
|
protected void |
layoutTextModifiers(DrawContext dc,
AVList modifiers,
AbstractTacticalSymbol.OrderedSymbol osym)
Layout static text modifiers around the symbol.
|
protected boolean |
mustUseAlternateOperationalCondition(AVList modifiers)
Indicates whether or not the symbol should be displayed using the alternate Operational Condition indicator
described in MIL-STD-2525C spec Table III-2, pg.
|
void |
setShowFill(boolean showFill)
Specifies whether to draw this symbol's fill.
|
void |
setShowFrame(boolean showFrame)
Specifies whether to draw this symbol's frame.
|
void |
setShowIcon(boolean showIcon)
Specifies whether to draw this symbol's internal icon.
|
void |
setStatus(String value)
Specifies this symbol's Status/Operational Condition field.
|
addGlyph, addGlyph, addLabel, addLabel, addLine, addLine, beginDrawing, computeMinTextLayout, computeScale, computeScaledBounds, computeScaledRect, computeScreenExtent, computeSymbolPoints, createPickedObject, determineActiveAttributes, doDrag, doDrawOrderedRenderable, drag, draw, drawBatched, drawGlyphs, drawGraphicModifiers, drawIcon, drawLabels, drawLines, drawOrderedRenderable, drawTextModifiers, endDrawing, getActiveAttributes, getAltitudeMode, getAttributes, getDelegateOwner, getDepthOffset, getFormattedPosition, getGlyph, getGlyphAtlas, getHighlightAttributes, getIconRetriever, getLODSelector, getMaxSymbolDimension, getModifier, getModifierRetriever, getOffset, getPosition, getReferencePosition, getUnitsFormat, intersectsFrustum, isDragEnabled, isEnableBatchPicking, isEnableBatchRendering, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, layout, layoutIcon, layoutLabelRect, layoutPoints, layoutRect, layoutStaticModifiers, makeOrderedRenderable, move, moveTo, mustDrawGraphicModifiers, mustDrawIcon, mustDrawTextModifiers, mustLayout, pick, prepareToDraw, removeDeadModifiers, render, reset, setAltitudeMode, setAttributes, setDelegateOwner, setDepthOffset, setDragEnabled, setEnableBatchPicking, setEnableBatchRendering, setGlyphAtlas, setHighlightAttributes, setHighlighted, setIconRetriever, setLODSelector, setModifier, setModifierRetriever, setOffset, setPosition, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setUnitsFormat, setVisible
onMessage, propertyChange
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
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
propertyChange
onMessage
protected static final Font DEFAULT_FRAME_SHAPE_FONT
public static final UnitsFormat DEFAULT_UNITS_FORMAT
protected boolean isGroundSymbol
protected SymbolCode symbolCode
AbstractTacticalSymbol.setModifier(String, Object)
. Initially null
.protected boolean useGroundHeadingIndicator
public MilStd2525TacticalSymbol(String symbolId, Position position)
symbolId
- a 15-character alphanumeric symbol identification code (SIDC).position
- the latitude, longitude, and altitude where the symbol is drawn.IllegalArgumentException
- if either the symbolId or the position are null
, or if the symbolId
is not a valid 15-character alphanumeric symbol identification code (SIDC).public MilStd2525TacticalSymbol(String symbolId, Position position, AVList modifiers)
symbolId
- a 15-character alphanumeric symbol identification code (SIDC).position
- the latitude, longitude, and altitude where the symbol is drawn.modifiers
- an optional list of key-value pairs specifying the symbol's modifiers. May be null
to specify that the symbol contains only the attributes in its symbol identifier.IllegalArgumentException
- if either the symbolId or the position are null
, or if the symbolId
is not a valid 15-character alphanumeric symbol identification code (SIDC).protected void appendTextModifier(StringBuilder sb, AVList modifiers, String modifierKey, Integer maxLength)
protected void applyImplicitModifiers(AVList modifiers)
AbstractTacticalSymbol
applyImplicitModifiers
in class AbstractTacticalSymbol
modifiers
- List of modifiers. This method may modify this list by adding implicit modifiers.protected AVList assembleIconRetrieverParameters(AVList params)
assembleIconRetrieverParameters
in class AbstractTacticalSymbol
protected void computeTransform(DrawContext dc, AbstractTacticalSymbol.OrderedSymbol osym)
computeTransform
in class AbstractTacticalSymbol
public String getIdentifier()
protected int getMaxLabelLines(AVList modifiers)
getMaxLabelLines
in class AbstractTacticalSymbol
protected String getReinforcedReducedModifier(AVList modifiers, String modifierKey)
public String getStatus()
setStatus(String)
protected void initIconLayout()
public boolean isShowFill()
setShowFill(boolean)
for a description of how this
property is used.true
if this symbol draws its fill, otherwise false
.public boolean isShowFrame()
setShowFrame(boolean)
for a description of how this
property is used.true
if this symbol draws its frame, otherwise false
.public boolean isShowIcon()
setShowIcon(boolean)
for a description of
how this property is used.true
if this symbol draws its icon, otherwise false
.protected void layoutDynamicModifiers(DrawContext dc, AVList modifiers, AbstractTacticalSymbol.OrderedSymbol osym)
AbstractTacticalSymbol
layoutDynamicModifiers
in class AbstractTacticalSymbol
dc
- Current draw context.modifiers
- Current modifiers.osym
- The OrderedSymbol to hold the per-frame data.AbstractTacticalSymbol.layoutStaticModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList,
gov.nasa.worldwind.symbology.AbstractTacticalSymbol.OrderedSymbol)
protected void layoutGraphicModifiers(DrawContext dc, AVList modifiers, AbstractTacticalSymbol.OrderedSymbol osym)
AbstractTacticalSymbol
layoutGraphicModifiers
in class AbstractTacticalSymbol
dc
- Current draw context.modifiers
- Current modifiers.osym
- The OrderedSymbol to hold the per-frame data.AbstractTacticalSymbol.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList,
gov.nasa.worldwind.symbology.AbstractTacticalSymbol.OrderedSymbol)
protected void layoutTextModifiers(DrawContext dc, AVList modifiers, AbstractTacticalSymbol.OrderedSymbol osym)
AbstractTacticalSymbol
layoutTextModifiers
in class AbstractTacticalSymbol
dc
- Current draw context.modifiers
- Current modifiers.osym
- The OrderedSymbol to hold the per-frame data.AbstractTacticalSymbol.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList,
gov.nasa.worldwind.symbology.AbstractTacticalSymbol.OrderedSymbol)
protected boolean mustUseAlternateOperationalCondition(AVList modifiers)
modifiers
- Symbol modifiers.public void setShowFill(boolean showFill)
true
, this symbol's fill is drawn. This state corresponds to MIL-STD-2525C, table III, row 1.
When false
, this symbol's fill is not drawn. Instead, only the symbol's frame and internal icon are
drawn. This state corresponds to MIL-STD-2525C, table III, row 2.showFill
- true
to draw this symbol's fill, otherwise false
.public void setShowFrame(boolean showFrame)
true
, this symbol's frame is drawn. This state corresponds to MIL-STD-2525C, table III, row 1.
When false
, this symbol's frame is not drawn. Instead, only the symbol's internal icon is drawn.
This state corresponds to MIL-STD-2525C, table III, row 4.showFrame
- true
to draw this symbol's frame, otherwise false
.public void setShowIcon(boolean showIcon)
true
, this symbol's icon is drawn. This state corresponds to MIL-STD-2525C, table III, row 1.
When false
, this symbol's icon is not drawn. Instead, only the symbol's frame and fill are drawn.
This state corresponds to MIL-STD-2525C, table III, row 5.showIcon
- true
to draw this symbol's icon, otherwise false
.public void setStatus(String value)
value
- the new value for the Status/Operational Condition field.IllegalArgumentException
- if the specified value is null
or is not one of the accepted status
values.