public static class TLspLOSCoverageStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>> extends ALspStyle.Builder<B> implements ILspWorldElevationStyle.Builder, ILspEffectsHintStyle.Builder
Builder for LOS coverage styles. The default LOS Coverage Style is painted above the ellipsoid and has a color map that is defined as follows:
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aLOScoverageStyle)
Sets all parameters on the builder based on the given LOS Coverage style.
|
TLspLOSCoverageStyle |
build()
Builds the style with the set parameters.
|
B |
colorMap(TLcdColorMap aColorMap)
Sets the color map.
|
B |
effectsHints(ILspEffectsHintStyle.EffectsHint... aEffectsHints)
Specifies the effects hints to be added to the style.
|
B |
elevationMode(ILspWorldElevationStyle.ElevationMode aElevationMode)
Specifies the elevation mode.
|
B |
invisibleColor(Color aInvisibleColor)
Sets the "invisible" value color, for LOS coverages of which
points are invisible for all elevations.
|
String |
toString() |
B |
unknownColor(Color aUnknownColor)
Sets the "unknown" value color, for LOS coverages of which
the outcome could not be determined.
|
B |
zOrder(int aZOrder)
Sets the Z-order of this style.
|
equals, hashCode
public B zOrder(int aZOrder)
aZOrder
- the z orderthis
public B colorMap(TLcdColorMap aColorMap)
null
.
This color map should be defined with levels in the range [-32768, 32767].
Note that even though the given color map also, technically, can define colors for the invisible
and unknown
values, the colors for these values should be
configured using the invisibleColor
and unknownColor
method respectively.
For color maps that explicitly contain the unknown value
an exception is made and
thus will override the configured unknown color.aColorMap
- the color mapthis
IllegalArgumentException
- if aColorMap==null
public B unknownColor(Color aUnknownColor)
null
aUnknownColor
- a color for the "unknown" LOS value.this
IllegalArgumentException
- if aColor==null
public B invisibleColor(Color aInvisibleColor)
null
aInvisibleColor
- a color for the "unknown" LOS value.this
IllegalArgumentException
- if aColor==null
public B elevationMode(ILspWorldElevationStyle.ElevationMode aElevationMode)
ILspWorldElevationStyle.ElevationMode.ABOVE_ELLIPSOID
.elevationMode
in interface ILspWorldElevationStyle.Builder
aElevationMode
- The elevation modethis
public B effectsHints(ILspEffectsHintStyle.EffectsHint... aEffectsHints)
ILspEffectsHintStyle.Builder
effectsHints
in interface ILspEffectsHintStyle.Builder
aEffectsHints
- the effects hints to be added to the stylethis
public B all(ALspStyle aLOScoverageStyle)
all
in class ALspStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>
aLOScoverageStyle
- the style to copy fromthis
public TLspLOSCoverageStyle build()
build
in class ALspStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>