|
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.WWObjectImpl
gov.nasa.worldwind.symbology.AbstractTacticalSymbol
gov.nasa.worldwind.symbology.milstd2525.MilStd2525TacticalSymbol
public class MilStd2525TacticalSymbol
Implementation of 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gov.nasa.worldwind.symbology.AbstractTacticalSymbol |
|---|
AbstractTacticalSymbol.IconAtlasElement, AbstractTacticalSymbol.IconSource, AbstractTacticalSymbol.IconTexture, AbstractTacticalSymbol.Label, AbstractTacticalSymbol.Line |
| Field Summary | |
|---|---|
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
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
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)
Layout dynamic modifiers around the symbol. |
protected void |
layoutGraphicModifiers(DrawContext dc,
AVList modifiers)
Layout static graphic modifiers around the symbol. |
protected void |
layoutTextModifiers(DrawContext dc,
AVList modifiers)
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. |
| Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
|---|
onMessage, propertyChange |
| 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.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Methods inherited from interface gov.nasa.worldwind.event.MessageListener |
|---|
onMessage |
| Field Detail |
|---|
protected static final Font DEFAULT_FRAME_SHAPE_FONT
public static final UnitsFormat DEFAULT_UNITS_FORMAT
protected static final Set<String> exerciseSymbols
protected boolean isGroundSymbol
protected SymbolCode symbolCode
AbstractTacticalSymbol.setModifier(String, Object). Initially null.
protected static final Map<String,String> symbolEchelonMap
protected boolean useGroundHeadingIndicator
| Constructor Detail |
|---|
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).| Method Detail |
|---|
protected void appendTextModifier(StringBuilder sb,
AVList modifiers,
String modifierKey,
Integer maxLength)
protected void applyImplicitModifiers(AVList modifiers)
AbstractTacticalSymbol
applyImplicitModifiers in class AbstractTacticalSymbolmodifiers - List of modifiers. This method may modify this list by adding implicit modifiers.protected AVList assembleIconRetrieverParameters(AVList params)
assembleIconRetrieverParameters in class AbstractTacticalSymbolprotected void computeTransform(DrawContext dc)
computeTransform in class AbstractTacticalSymbolpublic String getIdentifier()
protected int getMaxLabelLines(AVList modifiers)
getMaxLabelLines in class AbstractTacticalSymbol
protected String getModifierCode(AVList modifiers,
String modifierKey)
protected String getReinforcedReducedModifier(AVList modifiers,
String modifierKey)
public String getStatus()
setStatus(String)
protected void init(String symbolId,
AVList modifiers)
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
layoutDynamicModifiers in class AbstractTacticalSymboldc - Current draw context.modifiers - Current modifiers.AbstractTacticalSymbol.layoutStaticModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)
protected void layoutGraphicModifiers(DrawContext dc,
AVList modifiers)
AbstractTacticalSymbol
layoutGraphicModifiers in class AbstractTacticalSymboldc - Current draw context.modifiers - Current modifiers.AbstractTacticalSymbol.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)
protected void layoutTextModifiers(DrawContext dc,
AVList modifiers)
AbstractTacticalSymbol
layoutTextModifiers in class AbstractTacticalSymboldc - Current draw context.modifiers - Current modifiers.AbstractTacticalSymbol.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)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.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||