Class IrregularFireSupportArea
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.symbology.AbstractTacticalGraphic
-
- gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
-
- gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea
-
- gov.nasa.worldwind.symbology.milstd2525.graphics.areas.IrregularFireSupportArea
-
- All Implemented Interfaces:
AVList
,Draggable
,Movable
,Highlightable
,PreRenderable
,Renderable
,MilStd2525TacticalGraphic
,TacticalGraphic
public class IrregularFireSupportArea extends BasicArea
Implementation of the irregular Fire Support area graphics. This class implements the following graphics:- Area Target (2.X.4.3.1)
- Bomb (2.X.4.3.1.5)
- Airspace Coordination Area (ACA), Irregular (2.X.4.3.2.2.1)
- Free Fire Area (FFA), Irregular (2.X.4.3.2.3.1)
- Restrictive Fire Area (RFA), Irregular (2.X.4.3.2.5.1)
- Terminally Guided Munitions Footprint
- Sensor Zone, Irregular
- Dead Space Area, Irregular
- Zone of Responsibility, Irregular
- Target Build-up Area, Irregular
- Target Value Area, Irregular
- Artillery Target Intelligence Zone, Irregular ( 2.X.4.3.3.1.1)
- Call For Fire Zone, Irregular (2.X.4.3.3.2.1)
- Censor Zone, Irregular (2.X.4.3.3.4.1)
- Critical Friendly Zone, Irregular (2.X.4.3.3.6.1)
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.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.BasicArea
identityLabel1, identityLabel2, polygon
-
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, dragEnabled, draggableSupport, frameTimestamp, highlightAttributes, highlighted, labelOffset, labels, modifiers, mustCreateLabels, normalAttributes, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, text, unitsFormat, visible
-
-
Constructor Summary
Constructors Constructor Description IrregularFireSupportArea(java.lang.String sidc)
Create the area graphic.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyDefaultAttributes(ShapeAttributes attributes)
Apply defaults to the active attributes bundle.protected Position
computeTimeLabelPosition(DrawContext dc)
Determine the position of the time range label.protected void
createLabels()
protected void
determineLabelPositions(DrawContext dc)
Determine the appropriate position for the graphic's labels.protected Offset
getDefaultLabelOffset()
Indicates the default offset applied to the graphic's main label.static java.util.Set<java.lang.String>
getGraphicsWithTimeLabel()
Indicates the function IDs of rectangular Fire Support area graphics that display a date/time range as a separate label at the left side of the rectangle.protected java.lang.Object
getImageSource()
Indicates the source of the image that provides the polygon fill pattern.protected java.lang.String
getLabelAlignment()
Indicates the alignment of the graphic's main label.static java.util.List<java.lang.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.BasicArea
applyDelegateOwner, createLabelText, createPolygon, determineIdentityLabelPositions, determineMainLabelPosition, doRenderGraphic, getGraphicLabel, getPositionCount, getPositions, getReferencePosition, makeShapes, preRender, setPositions
-
Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatus
-
Methods inherited from class gov.nasa.worldwind.symbology.AbstractTacticalGraphic
addLabel, applyLabelAttributes, applyOverrideAttributes, computeGeometry, computeLabelInteriorOpacity, determineActiveAttributes, determineDelegateOwner, determinePerFrameAttributes, doDrag, doRenderGraphicModifiers, doRenderTextModifiers, drag, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, getDelegateOwner, getHighlightAttributes, getLabelMaterial, getLabelOffset, getUnitsFormat, isDragEnabled, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, move, moveTo, onModifierChanged, render, setAttributes, setDelegateOwner, setDragEnabled, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.render.Renderable
render
-
Methods inherited from interface gov.nasa.worldwind.symbology.TacticalGraphic
getAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
-
-
-
-
Field Detail
-
DIAGONAL_FILL_PATH
protected static final java.lang.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.
-
-
Method Detail
-
getSupportedGraphics
public static java.util.List<java.lang.String> getSupportedGraphics()
Indicates the graphics supported by this class.- Returns:
- List of masked SIDC strings that identify graphics that this class supports.
-
getGraphicsWithTimeLabel
public static java.util.Set<java.lang.String> getGraphicsWithTimeLabel()
Indicates the function IDs of rectangular Fire Support area graphics that display a date/time range as a separate label at the left side of the rectangle. 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.
-
createLabels
protected void createLabels()
- Overrides:
createLabels
in classBasicArea
-
determineLabelPositions
protected void determineLabelPositions(DrawContext dc)
Description copied from class:BasicArea
Determine the appropriate position for the graphic's labels.- Overrides:
determineLabelPositions
in classBasicArea
- Parameters:
dc
- Current draw context.
-
computeTimeLabelPosition
protected Position computeTimeLabelPosition(DrawContext dc)
Determine the position of the time range label. This label is placed at the North-West corner of the polygon.- Parameters:
dc
- Current draw context.- Returns:
- Position for the time range label, or null if the position cannot be determined.
-
getLabelAlignment
protected java.lang.String getLabelAlignment()
Indicates the alignment of the graphic's main label.- Overrides:
getLabelAlignment
in classBasicArea
- Returns:
- Alignment for the main label. One of AVKey.CENTER, AVKey.LEFT, or AVKey.RIGHT.
-
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 classAbstractTacticalGraphic
- Returns:
- Offset to apply to the main label.
-
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 classAbstractMilStd2525TacticalGraphic
- Parameters:
attributes
- Attributes bundle to receive defaults.
-
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.
-
getImageSource
protected java.lang.Object getImageSource()
Indicates the source of the image that provides the polygon fill pattern.- Returns:
- The source of the polygon fill pattern.
-
-