public final class TLspParameterizedFillStyle extends ALspStyle implements ILspWorldElevationStyle
ILcdPolygon
. Most properties of this style
can be controlled through expressions
.
Construction of this style is done through its TLspParameterizedFillStyle.Builder
.
The following properties of this style are calculated by an expression:
For defaults, see TLspParameterizedFillStyle.Builder
.
TLcdColorMap colorMap = ...; TLcdDataProperty populationProperty = ...; ILcdExpressionIn this example, the fill color is based on the value of the populationProperty. The mapping between the population and the actual fill color is based on acolor = mixmap(toFloat(attribute(Integer.class,populationProperty)), colorMap); TLspParameterizedFillStyle style = TLspParameterizedFillStyle.newBuilder() .color(color) .build();
TLcdColorMap
.
Submitting a TLspParameterizedFillStyle
and TLspFillStyle
for the same domain object is not supported.
Only one of them will be used to visualize the domain object.
Note: TLcdExpressionFactory.viewPositionAttribute()
must not be used when the elevation mode is set to
ILspWorldElevationStyle.ElevationMode.ON_TERRAIN
or when the elevation mode is ILspWorldElevationStyle.ElevationMode.OBJECT_DEPENDENT
and
all z-values of the geometry are 0.Modifier and Type | Class and Description |
---|---|
static class |
TLspParameterizedFillStyle.Builder<B extends TLspParameterizedFillStyle.Builder<B>>
Builder for parameterized fill styles.
|
ILspWorldElevationStyle.ElevationMode
Modifier and Type | Method and Description |
---|---|
TLspParameterizedFillStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object aO) |
ILcdExpression<Color> |
getColor()
Gets the color expression.
|
ILspWorldElevationStyle.ElevationMode |
getElevationMode()
Returns the elevation mode of this style.
|
ILcdExpression<Float> |
getOpacity()
Returns the expression that determines transparency of the fill.
|
ILcdExpression<Boolean> |
getVisibility()
Returns the expression that determines whether the object should be displayed or not.
|
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 TLspParameterizedFillStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
addStyleChangeListener, getZOrder, removeStyleChangeListener, style
public static TLspParameterizedFillStyle.Builder<?> newBuilder()
public TLspParameterizedFillStyle.Builder<?> asBuilder()
public ILcdExpression<Color> getColor()
public ILcdExpression<Float> getOpacity()
public ILcdExpression<Boolean> getVisibility()
public boolean isTransparent()
ALspStyle
isTransparent
in class ALspStyle
public ILspWorldElevationStyle.ElevationMode getElevationMode()
ILspWorldElevationStyle
getElevationMode
in interface ILspWorldElevationStyle
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
.