public static class TLspParameterizedFillStyle.Builder<B extends TLspParameterizedFillStyle.Builder<B>> extends ALspStyle.Builder<B> implements ILspWorldElevationStyle.Builder
ILspWorldElevationStyle.ElevationMode.OBJECT_DEPENDENT
.
Example usages:
To create the default fill style: TLspParameterizedFillStyle green = TLspParameterizedFillStyle.newBuilder().build();
To create a red draped fill style:TLspParameterizedLineStyle redDraped = TLspParameterizedFillStyle.newBuilder().color(constant(Color.red)).elevationMode(ON_TERRAIN).build();
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aStyle)
Sets all parameters on the builder based on the given style.
|
TLspParameterizedFillStyle |
build()
Builds the style with the set parameters.
|
B |
color(ILcdExpression<Color> aColorExpression)
Sets the expression that determines the fill color to apply.
|
B |
elevationMode(ILspWorldElevationStyle.ElevationMode aMode)
Specifies the elevation mode.
|
B |
opacity(ILcdExpression<Float> aOpacity)
Sets the expression that determines the transparency of the fill.
|
B |
visibility(ILcdExpression<Boolean> aVisibilityExpression)
Sets the expression that determines whether objects should be displayed or not.
|
B |
zOrder(int aZOrder)
Sets the Z-order of this style.
|
equals, hashCode
public B color(ILcdExpression<Color> aColorExpression)
aColorExpression
- An expression of type Color
public B opacity(ILcdExpression<Float> aOpacity)
1
corresponds to an fully opaque fill.<1
will make the fill transparent.0
or <0
will make the fill completely transparent.>1
has no effect.If not set, fills keep their original opacity determined by the alpha value of its color.
aOpacity
- An expression of type Floatpublic B visibility(ILcdExpression<Boolean> aVisibilityExpression)
If not set, all objects in view are always displayed.
aVisibilityExpression
- An expression of type Booleanpublic B elevationMode(ILspWorldElevationStyle.ElevationMode aMode)
ILspWorldElevationStyle.Builder
elevationMode
in interface ILspWorldElevationStyle.Builder
this
public B zOrder(int aZOrder)
aZOrder
- the z orderthis
public B all(ALspStyle aStyle)
ALspStyle.Builder
all
in class ALspStyle.Builder<B extends TLspParameterizedFillStyle.Builder<B>>
aStyle
- the style to copythis
public TLspParameterizedFillStyle build()
ALspStyle.Builder
build
in class ALspStyle.Builder<B extends TLspParameterizedFillStyle.Builder<B>>