NASA World Wind

gov.nasa.worldwind.symbology.milstd2525.graphics.areas
Class FireSupportTextBuilder

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

public class FireSupportTextBuilder
extends Object

Utility class to construct text for the graphics of Fire Support Area graphics. Many of these graphics come in three versions (quad, circle, and polygon), but share the same text. This class encodes the logic to construct the appropriate label text depending on the type of graphic.


Constructor Summary
FireSupportTextBuilder()
           
 
Method Summary
protected  String createAirspaceCoordinationText(TacticalGraphic graphic)
           
protected  String createMainText(TacticalGraphic graphic, String functionId, boolean includeTime, boolean includeAltitude)
           
 String[] createText(TacticalGraphic graphic)
          Construct the text for labels in a Fire Support area graphic.
protected  String createTimeRangeText(TacticalGraphic graphic)
           
protected  String getGraphicLabel(String sidc)
           
protected  boolean isAirspaceCoordinationArea(String functionId)
           
protected  boolean isShowAltitude(String maskedSidc)
           
protected  boolean isShowSeparateTimeLabel(String maskedSidc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FireSupportTextBuilder

public FireSupportTextBuilder()
Method Detail

createAirspaceCoordinationText

protected String createAirspaceCoordinationText(TacticalGraphic graphic)

createMainText

protected String createMainText(TacticalGraphic graphic,
                                String functionId,
                                boolean includeTime,
                                boolean includeAltitude)

createText

public String[] createText(TacticalGraphic graphic)
Construct the text for labels in a Fire Support area graphic. All area graphics support main label placed inside the area. Some also support a time range label placed at the left side of the graphic. This method returns text for all applicable labels as a list. The first element of the list is the main label text. The second element (if present) is the time range label text.

Parameters:
graphic - Graphic for which to create text.
Returns:
Array of text for labels. This array will always include at least one string: the main label text. It may include a second element. The second element (if present) is text for a label that must be placed at the left side of the area.

createTimeRangeText

protected String createTimeRangeText(TacticalGraphic graphic)

getGraphicLabel

protected String getGraphicLabel(String sidc)

isAirspaceCoordinationArea

protected boolean isAirspaceCoordinationArea(String functionId)

isShowAltitude

protected boolean isShowAltitude(String maskedSidc)

isShowSeparateTimeLabel

protected boolean isShowSeparateTimeLabel(String maskedSidc)

NASA World Wind