public class TacticalGraphicSymbol extends AbstractTacticalSymbol
MilStd2525PointGraphic
,
which implements the TacticalGraphic
interface. (MilStd2525PointGraphic uses TacticalGraphicSymbol internally
to render the point graphic.)MilStd2525PointGraphic
Modifier and Type | Class and Description |
---|---|
static class |
TacticalGraphicSymbol.LabelLayout |
static class |
TacticalGraphicSymbol.OffsetPair |
AbstractTacticalSymbol.IconAtlasElement, AbstractTacticalSymbol.IconSource, AbstractTacticalSymbol.IconTexture, AbstractTacticalSymbol.Label, AbstractTacticalSymbol.Line, AbstractTacticalSymbol.OrderedSymbol
TacticalSymbol.LODSelector
Modifier and Type | Field and Description |
---|---|
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.
|
activeAttrs, activeIconTexture, activeModifiers, altitudeMode, BEogsh, currentGlyphs, currentLabels, currentLines, DEFAULT_DEPTH_OFFSET, DEFAULT_GLYPH_ATLAS, DEFAULT_MAX_TIME_SINCE_LAST_USED, DEFAULT_UNITS_FORMAT, 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 |
---|
TacticalGraphicSymbol(String sidc)
Constructs a new symbol with no position.
|
TacticalGraphicSymbol(String sidc,
Position position)
Constructs a new symbol with the specified position.
|
Modifier and Type | Method and Description |
---|---|
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,
AbstractTacticalSymbol.OrderedSymbol osym) |
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,
AbstractTacticalSymbol.OrderedSymbol osym)
Layout dynamic modifiers around the symbol.
|
protected void |
layoutLabel(DrawContext dc,
Font font,
TacticalGraphicSymbol.OffsetPair layout,
String value,
String mode,
AbstractTacticalSymbol.OrderedSymbol osym) |
protected void |
layoutMultiLabel(DrawContext dc,
Font font,
List<TacticalGraphicSymbol.OffsetPair> layouts,
Iterable values,
String mode,
AbstractTacticalSymbol.OrderedSymbol osym) |
protected void |
layoutTextModifiers(DrawContext dc,
AVList modifiers,
AbstractTacticalSymbol.OrderedSymbol osym)
Layout text and graphic modifiers around the symbol.
|
void |
setStatus(String value)
Specifies this graphic's Status/Operational Condition field.
|
addGlyph, addGlyph, addLabel, addLabel, addLine, addLine, assembleIconRetrieverParameters, 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, layoutGraphicModifiers, 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 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
.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
.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 AbstractTacticalSymbol
modifiers
- List of modifiers. This method may modify this list by adding implicit modifiers.protected void computeTransform(DrawContext dc, AbstractTacticalSymbol.OrderedSymbol osym)
computeTransform
in class AbstractTacticalSymbol
public 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 AbstractTacticalSymbol
public 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.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 layoutLabel(DrawContext dc, Font font, TacticalGraphicSymbol.OffsetPair layout, String value, String mode, AbstractTacticalSymbol.OrderedSymbol osym)
protected void layoutMultiLabel(DrawContext dc, Font font, List<TacticalGraphicSymbol.OffsetPair> layouts, Iterable values, String mode, AbstractTacticalSymbol.OrderedSymbol osym)
protected void layoutTextModifiers(DrawContext dc, AVList modifiers, AbstractTacticalSymbol.OrderedSymbol osym)
layoutTextModifiers
in class AbstractTacticalSymbol
dc
- Current draw context.modifiers
- Modifiers applied to this graphic.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)
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.