gov.nasa.worldwind.symbology.milstd2525.graphics.lines
Class ForwardEdgeOfBattleArea.FEBASymbol
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.symbology.AbstractTacticalSymbol
gov.nasa.worldwind.symbology.milstd2525.graphics.lines.ForwardEdgeOfBattleArea.FEBASymbol
- All Implemented Interfaces:
- AVList, MessageListener, Movable, Highlightable, OrderedRenderable, Renderable, TacticalSymbol, WWObject, PropertyChangeListener, EventListener
- Enclosing class:
- ForwardEdgeOfBattleArea
protected static class ForwardEdgeOfBattleArea.FEBASymbol
- extends AbstractTacticalSymbol
Implementation of TacticalSymbol to draw a symbol at the end of a FEBA line.
|
Field Summary |
protected boolean |
leftAlign
Indicates if the text ("FEBA") is right aligned or left aligned. |
protected String |
symbolCode
|
| Fields inherited from class gov.nasa.worldwind.symbology.AbstractTacticalSymbol |
activeAttrs, activeIconTexture, activeModifiers, altitudeMode, BEogsh, currentGlyphs, currentLabels, currentLines, DEFAULT_DEPTH_OFFSET, DEFAULT_GLYPH_ATLAS, DEFAULT_LABEL_LINES, DEFAULT_MAX_TIME_SINCE_LAST_USED, DEFAULT_UNITS_FORMAT, defaultAttrs, delegateOwner, depthOffset, dx, dy, enableBatchPicking, enableBatchRendering, eyeDistance, formattedPosition, frameNumber, glyphAtlas, glyphMap, highlightAttrs, highlighted, iconOffset, iconRect, iconRectScaled, iconRetriever, iconSize, iconTexture, LAYOUT_ABSOLUTE, LAYOUT_NONE, LAYOUT_RELATIVE, layoutRect, layoutRectScaled, LOADING_IMAGE_PATH, MAX_SYMBOL_DIMENSION, maxTimeSinceLastUsed, modifierRetriever, modifiers, normalAttrs, offset, pickLayer, pickSupport, placePoint, position, screenPoint, screenRect, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, staticLayoutRect, staticScreenRect, sx, sy, unitsFormat, unresolvedGlyph, visible |
| Methods inherited from class gov.nasa.worldwind.symbology.AbstractTacticalSymbol |
addGlyph, addGlyph, addLabel, addLabel, addLine, addLine, applyImplicitModifiers, assembleIconRetrieverParameters, beginDrawing, computeMinTextLayout, computeScale, computeScaledBounds, computeScaledRect, computeScreenExtent, computeSymbolPoints, computeTransform, createPickedObject, determineActiveAttributes, doDrawOrderedRenderable, draw, drawBatched, drawGlyphs, drawGraphicModifiers, drawIcon, drawLabels, drawLines, drawOrderedRenderable, drawTextModifiers, endDrawing, getActiveAttributes, getAltitudeMode, getAttributes, getDelegateOwner, getDepthOffset, getDistanceFromEye, getFormattedPosition, getGlyph, getGlyphAtlas, getHighlightAttributes, getIconRetriever, getMaxSymbolDimension, getModifier, getModifierRetriever, getOffset, getPosition, getReferencePosition, getUnitsFormat, intersectsFrustum, isEnableBatchPicking, isEnableBatchRendering, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, layout, layoutDynamicModifiers, layoutGraphicModifiers, layoutIcon, layoutLabelRect, layoutPoints, layoutRect, layoutStaticModifiers, makeOrderedRenderable, move, moveTo, mustDrawGraphicModifiers, mustDrawIcon, mustDrawTextModifiers, mustLayout, pick, prepareToDraw, removeDeadModifiers, render, reset, setAltitudeMode, setAttributes, setDelegateOwner, setDepthOffset, setEnableBatchPicking, setEnableBatchRendering, setGlyphAtlas, setHighlightAttributes, setHighlighted, setIconRetriever, setModifier, setModifierRetriever, setOffset, setPosition, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setUnitsFormat, setVisible |
| 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 |
leftAlign
protected boolean leftAlign
- Indicates if the text ("FEBA") is right aligned or left aligned.
symbolCode
protected String symbolCode
ForwardEdgeOfBattleArea.FEBASymbol
protected ForwardEdgeOfBattleArea.FEBASymbol(String symbolCode)
- Constructs a new symbol with the specified position. The position specifies the latitude, longitude, and
altitude where this symbol is drawn on the globe. The position's altitude component is interpreted according
to the altitudeMode.
- Parameters:
symbolCode - MIL-STD-2525C SIDC that identifies the graphic.
getIdentifier
public String getIdentifier()
- Indicates a string identifier for this symbol. The format of the identifier depends on the symbol set to which
this symbol belongs. For symbols belonging to the MIL-STD-2525 symbol set, this returns a 15-character
alphanumeric symbol identification code (SIDC).
- Returns:
- an identifier for this symbol.
getMaxLabelLines
protected int getMaxLabelLines(AVList modifiers)
- Overrides:
getMaxLabelLines in class AbstractTacticalSymbol
getText
protected String getText()
- Indicates the text in the label.
- Returns:
- The string "FEBA".
layoutTextModifiers
protected void layoutTextModifiers(DrawContext dc,
AVList modifiers)
- Layout static text modifiers around the symbol. Static modifiers are not expected to change due to changes in
view. The static layout is computed when a modifier is changed, but may not be computed each frame. For example,
a text modifier indicating a symbol identifier would only need to be laid out when the text is changed, so this
is best treated as a static modifier. However a direction of movement line that needs to be computed based on the
current eye position should be treated as a dynamic modifier.
- Overrides:
layoutTextModifiers in class AbstractTacticalSymbol
- Parameters:
dc - Current draw context.modifiers - Current modifiers.- See Also:
AbstractTacticalSymbol.layoutDynamicModifiers(gov.nasa.worldwind.render.DrawContext, gov.nasa.worldwind.avlist.AVList)
setStatus
public void setStatus(String status)
- Specifies this graphic's Status/Operational Condition field. A graphic's Status defines whether the
represented object exists at the time the symbol was generated, or is anticipated to exist in the future.
Additionally, a graphic's Status can define its operational condition. The recognized values are
- STATUS_ANTICIPATED
- STATUS_SUSPECTED
- STATUS_PRESENT
- STATUS_KNOWN
.
- Parameters:
status - the new value for the Status/Operational Condition field.
- Throws:
IllegalArgumentException - if the specified value is null or is not one of the accepted
status values.
setTextAlign
public void setTextAlign(String align)
- Specifies whether the text ("FEBA") will be drawn on the left or right side of the symbol.
- Parameters:
align - AVKey.LEFT or AVKey.RIGHT. An alignment of AVKey.LEFT indicates that the left edge of the text
aligns with the graphic (which puts the text on the right side of the circle). If the alignment
is any value other than AVKey.LEFT or AVKey.RIGHT the alignment is assumed to be AVKey.RIGHT.