public class TLspLOSCoverageStyle extends ALspStyle implements ILspWorldElevationStyle, ILspEffectsHintStyle
The LOS Coverage style. This style is used by the TLspLOSCoveragePainter
to
visualize a LOS calculation.
A LOS Coverage style defines the following things:
NOTE: Styles are generally immutable, and this style is no exception. You shouldn't
modify the color map after the style has been created, but instead create
a new TLspLOSCoverageStyle
instance with a new color map instance.
Modifier and Type | Class and Description |
---|---|
static class |
TLspLOSCoverageStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>
Builder for LOS coverage styles.
|
ILspWorldElevationStyle.ElevationMode
ILspEffectsHintStyle.EffectsHint
Modifier | Constructor and Description |
---|---|
protected |
TLspLOSCoverageStyle(TLspLOSCoverageStyle.Builder aBuilder) |
Modifier and Type | Method and Description |
---|---|
TLspLOSCoverageStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object o) |
TLcdColorMap |
getColorMap()
Gets the color map of this LOS Coverage Style.
|
Collection<ILspEffectsHintStyle.EffectsHint> |
getEffectsHints()
Returns the effects hints specified for this style.
|
ILspWorldElevationStyle.ElevationMode |
getElevationMode()
Returns the elevation mode of this style.
|
Color |
getInvisibleColor()
Returns the color used to display "invisible" los elevation values
|
Color |
getUnknownColor()
Returns the unknown color used to display "unknown" los elevation values
|
int |
hashCode() |
boolean |
isCompatible(TLspPaintPass aPaintPass)
Utility method to determine whether the style is compatible with the given paint pass.
|
boolean |
isTransparent()
Determines whether this style is transparent.
|
static TLspLOSCoverageStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
addStyleChangeListener, getZOrder, removeStyleChangeListener, style
protected TLspLOSCoverageStyle(TLspLOSCoverageStyle.Builder aBuilder)
public static TLspLOSCoverageStyle.Builder<?> newBuilder()
public TLspLOSCoverageStyle.Builder<?> asBuilder()
public TLcdColorMap getColorMap()
public Color getUnknownColor()
public Color getInvisibleColor()
public boolean isTransparent()
Determines whether this style is transparent.
The return value of this method depends on the color map of the style. If the color map contains a single transparent color, or has a master opacity value lower than 255
isTransparent
in class ALspStyle
public ILspWorldElevationStyle.ElevationMode getElevationMode()
ILspWorldElevationStyle
getElevationMode
in interface ILspWorldElevationStyle
public Collection<ILspEffectsHintStyle.EffectsHint> getEffectsHints()
ILspEffectsHintStyle
getEffectsHints
in interface ILspEffectsHintStyle
public boolean isCompatible(TLspPaintPass aPaintPass)
ALspStyle
isCompatible
in class ALspStyle
aPaintPass
- the paint passtrue
if the style can be used in the given paint pass, false
otherwise
.