NASA World Wind

gov.nasa.worldwind.symbology.milstd2525
Interface MilStd2525TacticalGraphic

All Superinterfaces:
AVList, Highlightable, Movable, Renderable, TacticalGraphic
All Known Implementing Classes:
AbstractAxisArrow, AbstractCircularGraphic, AbstractMilStd2525TacticalGraphic, AbstractRectangularGraphic, AdvanceForFeint, Airborne, AirfieldZone, Airhead, Ambush, AttackByFirePosition, AttackRotaryWing, Aviation, AviationZone, BasicArea, BattlePosition, Boundary, CircularFireSupportArea, CircularPositionArea, CircularRangeFan, CombatSupportArea, DirectionOfAttack, DirectionOfAttackAviation, DirectionOfAttackForFeint, DoseRateContourLine, Dummy, Encirclement, FilledArea, FireSupportLine, FortifiedArea, ForwardEdgeOfBattleArea, ForwardLineOfOwnTroops, GroupOfTargets, HoldingLine, InfiltrationLane, IrregularFireSupportArea, LimitedAccessArea, LinearTarget, LineOfContact, MainAttack, MilStd2525PointGraphic, MinimumSafeDistanceZones, MunitionFlightPath, OffenseArea, PhaseLine, PrincipleDirectionOfFire, PullUpPoint, RectangularFireSupportArea, RectangularPositionArea, RectangularTarget, Route, RoutePoint, SearchArea, SectorRangeFan, Smoke, SpecialInterestArea, SupportByFirePosition, SupportingAttack, WeaponsFreeZone

public interface MilStd2525TacticalGraphic
extends TacticalGraphic

Interface to describe tactical graphics defined by MIL-STD-2525. See the TacticalGraphic Usage Guide for instructions on using TacticalGraphic in an application.

The following table lists the modifiers supported by 2525 graphics. Note that not all graphics support all modifiers.

FieldModifier keyData typeDescription
ASymbologyConstants.SYMBOLStringSIDC for a MIL-STD-2525 Tactical Symbol
BSymbologyConstants.ECHELONStringEchelon
CSymbologyConstants.QUANTITYStringQuantity
HSymbologyConstants.ADDITIONAL_INFOStringAdditional information
QSymbologyConstants.DIRECTION_OF_MOVEMENTAngleDirection indicator
TSymbologyConstants.UNIQUE_DESIGNATIONStringUnique designation
VSymbologyConstants.TYPEStringType
WSymbologyConstants.DATE_TIME_GROUPStringDate/time
XSymbologyConstants.ALTITUDE_DEPTHDoubleAltitude/depth
AMSymbologyConstants.DISTANCEDoubleRadius, length or width of rectangle.
ANSymbologyConstants.AZIMUTHAngleAzimuth

Here's an example of setting modifiers during construction of a graphic:

 AVList modifiers = new AVListImpl();
 modifiers.setValue(SymbologyConstants.UNIQUE_DESIGNATION, "X469"); // Field T
 modifiers.setValue(SymbologyConstants.DATE_TIME_GROUP, "10095900ZJAN92); // Field W
 modifiers.setValue(SymbologyConstants.ADDITIONAL_INFO, "Anthrax Suspected"); // Field H
 modifiers.setValue(SymbologyConstants.DIRECTION_OF_MOVEMENT, Angle.fromDegrees(30.0)); // Field Q

 Position position = Position.fromDegrees(35.1026, -118.348, 0);

 // Create the graphic with the modifier list
 TacticalGraphic graphic = factory.createGraphic("GHMPNEB----AUSX", positions, modifiers);
 

Some graphics support multiple instances of a modifier. For example, 2525 uses the field code W for a date/time modifier. Some graphics support multiple timestamps, in which case the fields are labeled W, W1, W2, etc. An application can pass an Iterable to setModifier if multiple values are required to specify the modifier. Here's an example of how to specify two timestamps:

 String startDate = ...
 String endData = ...

 graphic.setModifier(SymbologyConstants.DATE_TIME_GROUP, Arrays.asList(startDate, endDate));
 


Method Summary
 String getStatus()
          Indicates the current value of graphic's Status/Operational Condition field.
 void setStatus(String value)
          Specifies this graphic's Status/Operational Condition field.
 
Methods inherited from interface gov.nasa.worldwind.symbology.TacticalGraphic
getAttributes, getDelegateOwner, getHighlightAttributes, getIdentifier, getLabelOffset, getModifier, getPositions, getText, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setModifier, setPositions, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
 
Methods inherited from interface gov.nasa.worldwind.render.Renderable
render
 
Methods inherited from interface gov.nasa.worldwind.render.Highlightable
isHighlighted, setHighlighted
 
Methods inherited from interface gov.nasa.worldwind.Movable
getReferencePosition, move, moveTo
 
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
 

Method Detail

getStatus

String getStatus()
Indicates the current value of graphic's Status/Operational Condition field.

Returns:
this graphic's Status/Operational Condition field.
See Also:
setStatus(String)

setStatus

void setStatus(String value)
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 depend on the graphic's scheme:

Tactical graphics

Meteorological and Oceanographic

Emergency Management

Parameters:
value - 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.

NASA World Wind