Class FireSupportTextBuilder
- java.lang.Object
- 
- gov.nasa.worldwind.symbology.milstd2525.graphics.areas.FireSupportTextBuilder
 
- 
 public class FireSupportTextBuilder extends java.lang.ObjectUtility 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 SummaryConstructors Constructor Description FireSupportTextBuilder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcreateAirspaceCoordinationText(TacticalGraphic graphic)protected java.lang.StringcreateMainText(TacticalGraphic graphic, java.lang.String functionId, boolean includeTime, boolean includeAltitude)java.lang.String[]createText(TacticalGraphic graphic)Construct the text for labels in a Fire Support area graphic.protected java.lang.StringcreateTimeRangeText(TacticalGraphic graphic)protected java.lang.StringgetGraphicLabel(java.lang.String sidc)protected booleanisAirspaceCoordinationArea(java.lang.String functionId)protected booleanisShowAltitude(java.lang.String maskedSidc)protected booleanisShowSeparateTimeLabel(java.lang.String maskedSidc)
 
- 
- 
- 
Method Detail- 
createTextpublic java.lang.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.
 
 - 
isShowSeparateTimeLabelprotected boolean isShowSeparateTimeLabel(java.lang.String maskedSidc) 
 - 
isShowAltitudeprotected boolean isShowAltitude(java.lang.String maskedSidc) 
 - 
isAirspaceCoordinationAreaprotected boolean isAirspaceCoordinationArea(java.lang.String functionId) 
 - 
createMainTextprotected java.lang.String createMainText(TacticalGraphic graphic, java.lang.String functionId, boolean includeTime, boolean includeAltitude) 
 - 
createTimeRangeTextprotected java.lang.String createTimeRangeText(TacticalGraphic graphic) 
 - 
getGraphicLabelprotected java.lang.String getGraphicLabel(java.lang.String sidc) 
 - 
createAirspaceCoordinationTextprotected java.lang.String createAirspaceCoordinationText(TacticalGraphic graphic) 
 
- 
 
-