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 Tutorial 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.
2525 Graphics Modifiers Field Modifier key Data type Description A SymbologyConstants.SYMBOL String SIDC for a MIL-STD-2525 Tactical Symbol B SymbologyConstants.ECHELON String Echelon C SymbologyConstants.QUANTITY String Quantity H SymbologyConstants.ADDITIONAL_INFO String Additional information Q SymbologyConstants.DIRECTION_OF_MOVEMENT Angle
Direction indicator T SymbologyConstants.UNIQUE_DESIGNATION String Unique designation V SymbologyConstants.TYPE String Type W SymbologyConstants.DATE_TIME_GROUP String Date/time X SymbologyConstants.ALTITUDE_DEPTH Double Altitude/depth AM SymbologyConstants.DISTANCE Double Radius, length or width of rectangle. AN SymbologyConstants.AZIMUTH Angle Azimuth 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
tosetModifier
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getStatus()
Indicates the current value of graphic's Status/Operational Condition field.void
setStatus(java.lang.String value)
Specifies this graphic's Status/Operational Condition field.-
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 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.render.Renderable
render
-
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
-
-
-
-
Method Detail
-
getStatus
java.lang.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(java.lang.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
- STATUS_ANTICIPATED
- STATUS_SUSPECTED
- STATUS_PRESENT
- STATUS_KNOWN
Meteorological and Oceanographic
- Not supported
Emergency Management
- STATUS_ANTICIPATED
- STATUS_PRESENT
- Parameters:
value
- the new value for the Status/Operational Condition field.- Throws:
java.lang.IllegalArgumentException
- if the specified value isnull
or is not one of the accepted status values.
-
-