public class BasicAirspaceAttributes extends BasicShapeAttributes implements AirspaceAttributes
AirspaceAttributes
interface.
AirspaceAttributes was originally designed as a special purpose attribute bundle for Airspace
shapes, but is
now redundant subclass of BasicShapeAttributes
. BasicAirspaceAttributes is still
supported to ensure backward compatibility with earlier versions of World Wind. Usage of methods unique to
AirspaceAttributes should be replaced with the equivalent methods in ShapeAttributes.drawInterior, drawOutline, enableAntialiasing, enableLighting, imageScale, imageSource, interiorMaterial, interiorOpacity, outlineMaterial, outlineOpacity, outlineStippleFactor, outlineStipplePattern, outlineWidth, unresolved
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
Constructor and Description |
---|
BasicAirspaceAttributes()
Creates a new BasicAirspaceAttributes with the default attributes.
|
BasicAirspaceAttributes(AirspaceAttributes attributes)
Creates a new
BasicAirspaceAttributes configured with the specified attributes . |
BasicAirspaceAttributes(Material material,
double opacity)
Creates a new BasicAirspaceAttributes with the specified interior material and interior opacity.
|
BasicAirspaceAttributes(ShapeAttributes attributes)
Creates a new
BasicAirspaceAttributes configured with the specified
ShapeAttributes . |
Modifier and Type | Method and Description |
---|---|
protected void |
applyMaterial(DrawContext dc,
Material material,
double opacity,
boolean enableMaterial) |
AirspaceAttributes |
copy()
Returns a new ShapeAttributes instance of the same type as this ShapeAttributes who's properties are configured
exactly as this ShapeAttributes.
|
void |
copy(AirspaceAttributes attributes) |
protected void |
restoreDeprecatedState(RestorableSupport rs,
RestorableSupport.StateObject so) |
void |
restoreState(RestorableSupport rs,
RestorableSupport.StateObject so)
Restores the state of any attributes contained in the specified
RestorableSupport . |
copy, equals, export, exportAsKML, getImageScale, getImageSource, getInteriorMaterial, getInteriorOpacity, getOutlineMaterial, getOutlineOpacity, getOutlineStippleFactor, getOutlineStipplePattern, getOutlineWidth, getRestorableState, hashCode, isDrawInterior, isDrawOutline, isEnableAntialiasing, isEnableLighting, isExportFormatSupported, isUnresolved, setDrawInterior, setDrawOutline, setEnableAntialiasing, setEnableLighting, setImageScale, setImageSource, setInteriorMaterial, setInteriorOpacity, setOutlineMaterial, setOutlineOpacity, setOutlineStippleFactor, setOutlineStipplePattern, setOutlineWidth, setUnresolved
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy, getImageScale, getImageSource, getInteriorMaterial, getInteriorOpacity, getOutlineMaterial, getOutlineOpacity, getOutlineStippleFactor, getOutlineStipplePattern, getOutlineWidth, getRestorableState, isDrawInterior, isDrawOutline, isEnableAntialiasing, isEnableLighting, isUnresolved, setDrawInterior, setDrawOutline, setEnableAntialiasing, setEnableLighting, setImageScale, setImageSource, setInteriorMaterial, setInteriorOpacity, setOutlineMaterial, setOutlineOpacity, setOutlineStippleFactor, setOutlineStipplePattern, setOutlineWidth, setUnresolved
export, isExportFormatSupported
public BasicAirspaceAttributes()
Attribute | Default Value |
---|---|
unresolved | true |
drawInterior | true |
drawOutline | false |
enableAntialiasing | false |
enableLighting | true |
interiorMaterial | Material.WHITE |
outlineMaterial | Material.BLACK |
interiorOpacity | 1.0 |
outlineOpacity | 1.0 |
outlineWidth | 1.0 |
outlineStippleFactor | 0 |
outlineStipplePattern | 0xF0F0 |
imageSource | null |
imageScale | 1.0 |
public BasicAirspaceAttributes(AirspaceAttributes attributes)
BasicAirspaceAttributes
configured with the specified attributes
.attributes
- the attributes to configure the new BasicAirspaceAttributes
with.IllegalArgumentException
- if attributes
is null
.public BasicAirspaceAttributes(Material material, double opacity)
Attribute | Default Value |
---|---|
unresolved | true |
drawInterior | true |
drawOutline | false |
enableAntialiasing | false |
enableLighting | true |
interiorMaterial | material |
outlineMaterial | Material.BLACK |
interiorOpacity | opacity |
outlineOpacity | 1.0 |
outlineWidth | 1.0 |
outlineStippleFactor | 0 |
outlineStipplePattern | 0xF0F0 |
imageSource | null |
imageScale | 1.0 |
public BasicAirspaceAttributes(ShapeAttributes attributes)
BasicAirspaceAttributes
configured with the specified
ShapeAttributes
.attributes
- the attributes to configure the new BasicAirspaceAttributes
with.IllegalArgumentException
- if attributes
is null
.protected void applyMaterial(DrawContext dc, Material material, double opacity, boolean enableMaterial)
public AirspaceAttributes copy()
copy
in interface ShapeAttributes
copy
in class BasicShapeAttributes
public void copy(AirspaceAttributes attributes)
protected void restoreDeprecatedState(RestorableSupport rs, RestorableSupport.StateObject so)
public void restoreState(RestorableSupport rs, RestorableSupport.StateObject so)
RestorableSupport
. If the
StateObject
is not null
it's searched for attribute state values, otherwise the
RestorableSupport
root is searched.restoreState
in interface ShapeAttributes
restoreState
in class BasicShapeAttributes
rs
- the RestorableSupport
that contains the attributes' state.so
- the StateObject
to search for state values, if not null
.