public class EchelonSymbol extends AbstractTacticalSymbol
AbstractTacticalSymbol.IconAtlasElement, AbstractTacticalSymbol.IconSource, AbstractTacticalSymbol.IconTexture, AbstractTacticalSymbol.Label, AbstractTacticalSymbol.Line, AbstractTacticalSymbol.OrderedSymbol
TacticalSymbol.LODSelector
Modifier and Type | Field and Description |
---|---|
protected static Offset |
DEFAULT_OFFSET |
protected Position |
orientationPosition
The label is drawn along a line from the label position to the orientation position.
|
protected Angle |
rotation
Rotation to apply to symbol, computed each frame.
|
protected java.lang.String |
sidc
Identifier for this graphic.
|
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, 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 |
---|
EchelonSymbol(java.lang.String sidc)
Constructs a new symbol with the specified position.
|
Modifier and Type | Method and Description |
---|---|
protected AVList |
assembleIconRetrieverParameters(AVList params) |
protected Angle |
computeRotation(Vec4 screenPoint,
Vec4 orientationScreenPoint)
Compute the amount of rotation to apply to a label in order to keep it oriented toward its orientation position.
|
protected void |
computeTransform(DrawContext dc,
AbstractTacticalSymbol.OrderedSymbol osym) |
protected void |
drawIcon(DrawContext dc)
Overridden to apply rotation.
|
java.lang.String |
getIdentifier()
Indicates a string identifier for this symbol.
|
Position |
getOrientationPosition()
Indicates the orientation position.
|
void |
setOrientationPosition(Position orientationPosition)
Specifies the orientation position.
|
addGlyph, addGlyph, addLabel, addLabel, addLine, addLine, applyImplicitModifiers, beginDrawing, computeMinTextLayout, computeScale, computeScaledBounds, computeScaledRect, computeScreenExtent, computeSymbolPoints, createPickedObject, determineActiveAttributes, doDrag, doDrawOrderedRenderable, drag, draw, drawBatched, drawGlyphs, drawGraphicModifiers, drawLabels, drawLines, drawOrderedRenderable, drawTextModifiers, endDrawing, getActiveAttributes, getAltitudeMode, getAttributes, getDelegateOwner, getDepthOffset, getFormattedPosition, getGlyph, getGlyphAtlas, getHighlightAttributes, getIconRetriever, getLODSelector, getMaxLabelLines, getMaxSymbolDimension, getModifier, getModifierRetriever, getOffset, getPosition, getReferencePosition, getUnitsFormat, intersectsFrustum, isDragEnabled, isEnableBatchPicking, isEnableBatchRendering, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, layout, layoutDynamicModifiers, layoutGraphicModifiers, layoutIcon, layoutLabelRect, layoutPoints, layoutRect, layoutStaticModifiers, layoutTextModifiers, 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
onMessage
protected static final Offset DEFAULT_OFFSET
protected Position orientationPosition
protected Angle rotation
protected java.lang.String sidc
public EchelonSymbol(java.lang.String sidc)
sidc
- MIL-STD-2525C sidc code.java.lang.IllegalArgumentException
- if sidc
is null, or does not contain a value for the Echelon field.protected AVList assembleIconRetrieverParameters(AVList params)
assembleIconRetrieverParameters
in class AbstractTacticalSymbol
protected Angle computeRotation(Vec4 screenPoint, Vec4 orientationScreenPoint)
screenPoint
- Geographic position of the text, projected onto the screen.orientationScreenPoint
- Orientation position, projected onto the screen.protected void computeTransform(DrawContext dc, AbstractTacticalSymbol.OrderedSymbol osym)
computeTransform
in class AbstractTacticalSymbol
protected void drawIcon(DrawContext dc)
drawIcon
in class AbstractTacticalSymbol
public java.lang.String getIdentifier()
public Position getOrientationPosition()
public void setOrientationPosition(Position orientationPosition)
orientationPosition
- Draw label oriented toward this position.