|
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.EchelonSymbol
public class EchelonSymbol
Tactical symbol implementation to render the echelon modifier as part of a tactical graphic.
| 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 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 String |
sidc
Identifier for this graphic. |
| Constructor Summary | |
|---|---|
EchelonSymbol(String sidc)
Constructs a new symbol with the specified position. |
|
| Method Summary | |
|---|---|
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)
|
protected void |
drawIcon(DrawContext dc)
Overridden to apply rotation. |
String |
getIdentifier()
Indicates a string identifier for this symbol. |
Position |
getOrientationPosition()
Indicates the orientation position. |
void |
setOrientationPosition(Position orientationPosition)
Specifies the orientation position. |
| 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 DEFAULT_OFFSET
protected Position orientationPosition
protected Angle rotation
protected String sidc
| Constructor Detail |
|---|
public EchelonSymbol(String sidc)
sidc - MIL-STD-2525C sidc code.
IllegalArgumentException - if sidc is null, or does not contain a value for the Echelon field.| Method Detail |
|---|
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)
computeTransform in class AbstractTacticalSymbolprotected void drawIcon(DrawContext dc)
drawIcon in class AbstractTacticalSymbolpublic String getIdentifier()
public Position getOrientationPosition()
public void setOrientationPosition(Position orientationPosition)
orientationPosition - Draw label oriented toward this position.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||