NASA World Wind

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

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.symbology.AbstractTacticalGraphic
          extended by gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
              extended by gov.nasa.worldwind.symbology.milstd2525.graphics.areas.AbstractCircularGraphic
                  extended by gov.nasa.worldwind.symbology.milstd2525.graphics.areas.CircularFireSupportArea
All Implemented Interfaces:
AVList, Movable, Highlightable, PreRenderable, Renderable, MilStd2525TacticalGraphic, TacticalCircle, TacticalGraphic, TacticalPoint

public class CircularFireSupportArea
extends AbstractCircularGraphic

Implementation of circular Fire Support graphics. This class implements the following graphics:


Field Summary
protected static String DIAGONAL_FILL_PATH
          Path to the image used for the polygon fill pattern.
protected static Offset LEFT_ALIGN_OFFSET
          Center text block on label position when the text is left aligned.
 
Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.areas.AbstractCircularGraphic
circle
 
Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
maskedSymbolCode, OUTLINE_STIPPLE_FACTOR_ANTICIPATED, OUTLINE_STIPPLE_FACTOR_PRESENT, OUTLINE_STIPPLE_PATTERN, symbolCode
 
Fields inherited from class gov.nasa.worldwind.symbology.AbstractTacticalGraphic
activeOverrides, activeShapeAttributes, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_LABEL_INTERIOR_OPACITY, delegateOwner, frameTimestamp, highlightAttributes, highlighted, labelOffset, labels, modifiers, mustCreateLabels, normalAttributes, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, text, unitsFormat, visible
 
Constructor Summary
CircularFireSupportArea(String sidc)
          Create a new circular area.
 
Method Summary
protected  void applyDefaultAttributes(ShapeAttributes attributes)
          Apply defaults to the active attributes bundle.
protected  void createLabels()
          Create labels for the start and end of the path.
protected  FireSupportTextBuilder createTextBuilder()
           
protected  void determineLabelPositions(DrawContext dc)
          Determine positions for the start and end labels.
protected  Offset getDefaultLabelOffset()
          Indicates the default offset applied to the graphic's main label.
static Set<String> getGraphicsWithTimeLabel()
          Indicates the function IDs of circular Fire Support area graphics that display a date/time range as a separate label at the left side of the circle.
protected  Object getImageSource()
          Indicates the source of the image that provides the polygon fill pattern.
protected  String getMainLabelTextAlign()
          Indicates the text alignment to apply to the main label of this graphic.
static List<String> getSupportedGraphics()
          Indicates the graphics supported by this class.
protected  boolean isFilled()
          Indicates whether or not the polygon must be filled with a diagonal line pattern.
 
Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.areas.AbstractCircularGraphic
applyDelegateOwner, createShape, determineActiveAttributes, doRenderGraphic, getModifier, getPosition, getPositions, getRadius, getReferencePosition, preRender, reset, setModifier, setPosition, setPositions, setRadius
 
Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
createSymbol, getDefaultMaterial, getIdentifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setStatus
 
Methods inherited from class gov.nasa.worldwind.symbology.AbstractTacticalGraphic
addLabel, applyLabelAttributes, applyOverrideAttributes, computeGeometry, computeLabelInteriorOpacity, determineDelegateOwner, determinePerFrameAttributes, doRenderGraphicModifiers, doRenderTextModifiers, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, getDelegateOwner, getHighlightAttributes, getLabelMaterial, getLabelOffset, getUnitsFormat, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, move, moveTo, onModifierChanged, render, setAttributes, setDelegateOwner, setHighlightAttributes, setHighlighted, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.symbology.TacticalGraphic
getAttributes, getDelegateOwner, getHighlightAttributes, getIdentifier, getLabelOffset, getText, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, 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
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
 

Field Detail

DIAGONAL_FILL_PATH

protected static final String DIAGONAL_FILL_PATH
Path to the image used for the polygon fill pattern.

See Also:
Constant Field Values

LEFT_ALIGN_OFFSET

protected static final Offset LEFT_ALIGN_OFFSET
Center text block on label position when the text is left aligned.

Constructor Detail

CircularFireSupportArea

public CircularFireSupportArea(String sidc)
Create a new circular area.

Parameters:
sidc - Symbol code the identifies the graphic.
Method Detail

applyDefaultAttributes

protected void applyDefaultAttributes(ShapeAttributes attributes)
Apply defaults to the active attributes bundle. The default attributes are determined by the type of graphic. This method is called each frame to reset the active shape attributes to the appropriate default state. Override attributes specified by the application may be applied after the defaults have been set.

Overrides:
applyDefaultAttributes in class AbstractMilStd2525TacticalGraphic
Parameters:
attributes - Attributes bundle to receive defaults.

createLabels

protected void createLabels()
Create labels for the start and end of the path.

Overrides:
createLabels in class AbstractTacticalGraphic

createTextBuilder

protected FireSupportTextBuilder createTextBuilder()

determineLabelPositions

protected void determineLabelPositions(DrawContext dc)
Description copied from class: AbstractTacticalGraphic
Determine positions for the start and end labels.

Overrides:
determineLabelPositions in class AbstractTacticalGraphic
Parameters:
dc - Current draw context.

getDefaultLabelOffset

protected Offset getDefaultLabelOffset()
Indicates the default offset applied to the graphic's main label. This offset may be overridden by the graphic attributes.

Overrides:
getDefaultLabelOffset in class AbstractTacticalGraphic
Returns:
Offset to apply to the main label.

getGraphicsWithTimeLabel

public static Set<String> getGraphicsWithTimeLabel()
Indicates the function IDs of circular Fire Support area graphics that display a date/time range as a separate label at the left side of the circle. Whether or not a graphic supports this is determined by the graphic's template in MIL-STD-2525C.

Returns:
A Set containing the function IDs of graphics that support a date/time label separate from the graphic's main label.

getImageSource

protected Object getImageSource()
Indicates the source of the image that provides the polygon fill pattern.

Returns:
The source of the polygon fill pattern.

getMainLabelTextAlign

protected String getMainLabelTextAlign()
Indicates the text alignment to apply to the main label of this graphic.

Returns:
Text alignment for the main label.

getSupportedGraphics

public static List<String> getSupportedGraphics()
Indicates the graphics supported by this class.

Returns:
List of masked SIDC strings that identify graphics that this class supports.

isFilled

protected boolean isFilled()
Indicates whether or not the polygon must be filled with a diagonal line pattern.

Returns:
true if the polygon must be filled, otherwise false.

NASA World Wind