Class AviationZone
- 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.AviationZone
-
- All Implemented Interfaces:
AVList
,Draggable
,Movable
,Highlightable
,PreRenderable
,Renderable
,MilStd2525TacticalGraphic
,TacticalGraphic
- Direct Known Subclasses:
WeaponsFreeZone
public class AviationZone extends BasicArea
Implementation of aviation area graphics. This class implements the following graphics:- Restricted Operations Zone (2.X.2.2.3.1)
- Short Range Air Defense Engagement Zone (2.X.2.2.3.2)
- High Density Airspace Control Zone (2.X.2.2.3.3)
- Missile Engagement Zone (2.X.2.2.3.4)
- Low Altitude Missile Engagement Zone (2.X.2.2.3.4.1)
- High Altitude Missile Engagement Zone (2.X.2.2.3.4.2)
-
-
Field Summary
Fields Modifier and Type Field Description protected static Offset
LABEL_OFFSET
Center text block on label position.-
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 AviationZone(java.lang.String sidc)
Create a new aviation area.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
createLabelText()
Create the text for the main label on this graphic.protected java.lang.String
doCreateLabelText(boolean includeAltitude)
Create text for the area's label.protected Offset
getDefaultLabelOffset()
Indicates the default offset applied to the graphic's main label.protected java.lang.String
getGraphicLabel()
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.-
Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea
applyDelegateOwner, createLabels, createPolygon, determineIdentityLabelPositions, determineLabelPositions, determineMainLabelPosition, doRenderGraphic, 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, 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
-
LABEL_OFFSET
protected static final Offset LABEL_OFFSET
Center text block on label position.
-
-
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.
-
getDefaultLabelOffset
protected Offset getDefaultLabelOffset()
Description copied from class:AbstractTacticalGraphic
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.
-
getLabelAlignment
protected java.lang.String getLabelAlignment()
Description copied from class:BasicArea
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.
-
createLabelText
protected java.lang.String createLabelText()
Description copied from class:BasicArea
Create the text for the main label on this graphic.- Overrides:
createLabelText
in classBasicArea
- Returns:
- Text for the main label. May return null if there is no text.
-
doCreateLabelText
protected java.lang.String doCreateLabelText(boolean includeAltitude)
Create text for the area's label.- Parameters:
includeAltitude
- Indicates whether to include altitude information in the label (if the SymbologyConstants.ALTITUDE_DEPTH modifier is set). Not all aviation area graphics support the altitude modifier.- Returns:
- Text for the label, based on the active modifiers.
-
getGraphicLabel
protected java.lang.String getGraphicLabel()
- Overrides:
getGraphicLabel
in classBasicArea
-
-