NASA World Wind

gov.nasa.worldwind.symbology.milstd2525.graphics
Class DefaultOffsets

java.lang.Object
  extended by gov.nasa.worldwind.symbology.milstd2525.graphics.DefaultOffsets

public class DefaultOffsets
extends Object

Object to provide default offsets for MIL-STD-2525C tactical point graphics. The offset is used to align a point on the graphic with the graphic's geographic position. This class automatically populates the map with values appropriate for the point graphic images supplied by World Wind.

See Also:
AbstractTacticalSymbol.setOffset(gov.nasa.worldwind.render.Offset)

Field Summary
protected static Offset DEFAULT_OFFSET
          Offset to align the center of the graphic with the geographic position.
static Offset OFFSET_BOTTOM_QUARTER
          Offset to align a point 25% up from the bottom edge with the geographic position.
static Offset OFFSET_C2GM_GNL_PNT_WPN_DRPPNT
          Offset for the Drop Point graphic (2.X.2.1.1.3.2).
static Offset OFFSET_MOBSU_OBST_MNE_APMNE
          Offset for the Antipersonnel (AP) Mines graphic (2.X.3.1.5.5).
static Offset OFFSET_MOBSU_OBST_MNE_ATMAHD
          Offset for the Antitank Mine with Anti-handling Device graphic (2.X.3.1.5.3).
static Offset OFFSET_MOBSU_OBST_MNE_WAMNE
          Offset for the Wide Area Mines graphic (2.X.3.1.5.6).
static Offset OFFSET_OTH_HAZ_SML
          Offset for the Sea Mine-Like Hazard graphic (2.X.6.2.1).
protected  Map<String,Offset> offsets
          Map to store defaults.
 
Constructor Summary
DefaultOffsets()
          Create the map and populate it with the default offsets.
 
Method Summary
 Offset get(String sidc)
          Determine the default offset for a graphic.
protected  void populate()
          Populate the map with default offsets.
protected  void putAll(Offset value, String... keys)
          Map one value to many keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OFFSET

protected static Offset DEFAULT_OFFSET
Offset to align the center of the graphic with the geographic position.


OFFSET_BOTTOM_QUARTER

public static final Offset OFFSET_BOTTOM_QUARTER
Offset to align a point 25% up from the bottom edge with the geographic position.


OFFSET_C2GM_GNL_PNT_WPN_DRPPNT

public static final Offset OFFSET_C2GM_GNL_PNT_WPN_DRPPNT
Offset for the Drop Point graphic (2.X.2.1.1.3.2).


OFFSET_MOBSU_OBST_MNE_APMNE

public static final Offset OFFSET_MOBSU_OBST_MNE_APMNE
Offset for the Antipersonnel (AP) Mines graphic (2.X.3.1.5.5).


OFFSET_MOBSU_OBST_MNE_ATMAHD

public static final Offset OFFSET_MOBSU_OBST_MNE_ATMAHD
Offset for the Antitank Mine with Anti-handling Device graphic (2.X.3.1.5.3).


OFFSET_MOBSU_OBST_MNE_WAMNE

public static final Offset OFFSET_MOBSU_OBST_MNE_WAMNE
Offset for the Wide Area Mines graphic (2.X.3.1.5.6).


OFFSET_OTH_HAZ_SML

public static final Offset OFFSET_OTH_HAZ_SML
Offset for the Sea Mine-Like Hazard graphic (2.X.6.2.1).


offsets

protected Map<String,Offset> offsets
Map to store defaults.

Constructor Detail

DefaultOffsets

public DefaultOffsets()
Create the map and populate it with the default offsets.

Method Detail

get

public Offset get(String sidc)
Determine the default offset for a graphic.

Parameters:
sidc - Masked SIDC for a point graphic.
Returns:
Default offset for the specified graphic.

populate

protected void populate()
Populate the map with default offsets.


putAll

protected void putAll(Offset value,
                      String... keys)
Map one value to many keys.

Parameters:
value - Value to add.
keys - Keys that map to the value.

NASA World Wind