gov.nasa.worldwind.symbology.milstd2525.graphics.areas
Class Airhead
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.Airhead
- All Implemented Interfaces:
- AVList, Movable, Highlightable, PreRenderable, Renderable, MilStd2525TacticalGraphic, TacticalGraphic
public class Airhead
- extends BasicArea
Implementation of the Airhead graphic (2.X.2.6.2.2).
| 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 |
Airhead(String sidc)
Create a new area graphic. |
| Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea |
applyDelegateOwner, createLabels, createPolygon, determineIdentityLabelPositions, determineLabelPositions, doRenderGraphic, getGraphicLabel, getLabelAlignment, getPositionCount, getPositions, getReferencePosition, makeShapes, preRender, setPositions |
| Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic |
applyDefaultAttributes, 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, 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, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible |
| 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 |
DEFAULT_OFFSET
public static final Offset DEFAULT_OFFSET
- Default offset to apply to the label. The default aligns the top center of the label with the label's geographic
position, in order to keep the text South of the area.
Airhead
public Airhead(String sidc)
- Create a new area graphic.
- Parameters:
sidc - Symbol code the identifies the graphic.
createLabelText
protected String createLabelText()
- Description copied from class:
BasicArea
- Create the text for the main label on this graphic.
- Overrides:
createLabelText in class BasicArea
- Returns:
- Text for the main label. May return null if there is no text.
determineMainLabelPosition
protected Position determineMainLabelPosition(DrawContext dc)
- Compute the position for the area's main label. This position indicates the position of the first line of the
label. If there are more lines, they will be arranged South of the first line.
- Overrides:
determineMainLabelPosition in class BasicArea
- Parameters:
dc - Current draw context.
- Returns:
- Position for the graphic's main label.
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.
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.