|
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.graphics.TacticalGraphicSymbol
public class TacticalGraphicSymbol
Implementation of TacticalSymbol to render point graphics defined by MIL-STD-2525C Appendix B (Tactical Graphics). This class implements the logic for rendering tactical point graphics, but actually implements the TacticalSymbol interface.
This class is not meant to be used directly by applications. Instead, apps should useMilStd2525PointGraphic,
which implements the TacticalGraphic interface. (MilStd2525PointGraphic uses TacticalGraphicSymbol internally
to render the point graphic.)
MilStd2525PointGraphic| Nested Class Summary | |
|---|---|
static class |
TacticalGraphicSymbol.LabelLayout
|
static class |
TacticalGraphicSymbol.OffsetPair
|
| 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 Offset |
BELOW_BOTTOM_CENTER_OFFSET
|
protected static int |
DEFAULT_LABEL_LINES
The default number of label lines to expect when computing the minimum size of the text layout rectangle. |
protected static DefaultLabelLayouts |
defaultLayouts
Object that provides the default label layouts for each point graphic. |
protected static DefaultOffsets |
defaultOffsets
Object that provides the default offset for each point graphic. |
protected String |
maskedSymbolCode
Symbol identifier with fields that do not influence the type of graphic replaced with hyphens. |
protected SymbolCode |
symbolCode
Indicates a string identifier for this symbol. |
| Constructor Summary | |
|---|---|
TacticalGraphicSymbol(String sidc)
Constructs a new symbol with no position. |
|
TacticalGraphicSymbol(String sidc,
Position position)
Constructs a new symbol with the specified position. |
|
| Method Summary | |
|---|---|
protected Iterable |
addHyphenToDateRange(Iterable value,
List<TacticalGraphicSymbol.OffsetPair> offsets)
Add a hyphen to the first element in a list of dates to indicate a date range. |
protected void |
applyImplicitModifiers(AVList modifiers)
Add implicit modifiers to the modifier list. |
protected void |
computeTransform(DrawContext dc)
|
String |
getIdentifier()
Indicates a string identifier for this symbol. |
protected List<TacticalGraphicSymbol.LabelLayout> |
getLayouts(String sidc)
Indicates the label layouts designed to a particular graphic. |
protected int |
getMaxLabelLines(AVList modifiers)
|
String |
getStatus()
Indicates the current value of graphic's Status/Operational Condition field. |
protected void |
init(String sidc)
Initialize the new symbol. |
protected boolean |
isShowDirectionOfMovement()
Indicates whether or not this graphic supports the direction of movement indicator. |
protected void |
layoutDynamicModifiers(DrawContext dc,
AVList modifiers)
Layout dynamic modifiers around the symbol. |
protected void |
layoutLabel(DrawContext dc,
Font font,
TacticalGraphicSymbol.OffsetPair layout,
String value,
String mode)
|
protected void |
layoutMultiLabel(DrawContext dc,
Font font,
List<TacticalGraphicSymbol.OffsetPair> layouts,
Iterable values,
String mode)
|
protected void |
layoutTextModifiers(DrawContext dc,
AVList modifiers)
Layout text and graphic modifiers around the symbol. |
void |
setStatus(String value)
Specifies this graphic'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 Offset BELOW_BOTTOM_CENTER_OFFSET
protected static final int DEFAULT_LABEL_LINES
protected static DefaultLabelLayouts defaultLayouts
protected static DefaultOffsets defaultOffsets
protected String maskedSymbolCode
SymbolCode.toMaskedString().
protected SymbolCode symbolCode
AbstractTacticalSymbol.setModifier(String, Object). Initially null.
| Constructor Detail |
|---|
public TacticalGraphicSymbol(String sidc)
sidc - Code that identifies the graphic.
public TacticalGraphicSymbol(String sidc,
Position position)
sidc - Code that identifies the graphic.position - The latitude, longitude, and altitude where the symbol is drawn.
IllegalArgumentException - if the position is null.| Method Detail |
|---|
protected Iterable addHyphenToDateRange(Iterable value,
List<TacticalGraphicSymbol.OffsetPair> offsets)
value - Iterable of date modifiers.offsets - Layouts for the date modifiers.
value if no
modification was required.protected void applyImplicitModifiers(AVList modifiers)
AbstractTacticalSymbol
applyImplicitModifiers in class AbstractTacticalSymbolmodifiers - List of modifiers. This method may modify this list by adding implicit modifiers.protected void computeTransform(DrawContext dc)
computeTransform in class AbstractTacticalSymbolpublic String getIdentifier()
protected List<TacticalGraphicSymbol.LabelLayout> getLayouts(String sidc)
sidc - Symbol ID to for which to determine layout.
protected int getMaxLabelLines(AVList modifiers)
getMaxLabelLines in class AbstractTacticalSymbolpublic String getStatus()
setStatus(String)protected void init(String sidc)
sidc - Code that identifies the graphic.protected boolean isShowDirectionOfMovement()
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 layoutLabel(DrawContext dc,
Font font,
TacticalGraphicSymbol.OffsetPair layout,
String value,
String mode)
protected void layoutMultiLabel(DrawContext dc,
Font font,
List<TacticalGraphicSymbol.OffsetPair> layouts,
Iterable values,
String mode)
protected void layoutTextModifiers(DrawContext dc,
AVList modifiers)
layoutTextModifiers in class AbstractTacticalSymboldc - Current draw context.modifiers - Modifiers applied to this graphic.AbstractTacticalSymbol.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)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 | ||||||||