TLspPlotStyle
instead.public class TLspPlotStyle extends TLspPlotStyle
expressions
.
Construction of this style is done through its TLspPlotStyle.Builder
.
Each property is calculated by an expression:
TLspPlotStyle.Builder.automaticScaling(double)
for details.
For defaults, see TLspPlotStyle.Builder
.
Example:
ILcdExpression<Boolean> visibilityExpression = eq(idAttribute, constant(43)); ILcdExpression<ILcdIcon> iconExpression = ifThenElse(eq(classAttribute, constant(12)), someIcon, otherIcon); ILcdExpression<Float> opacityExpression = fraction(fuelBurnAttribute, 0, 13000); TLspPlotStyle style = TLspPlotStyle.newBuilder() .visibility(visibilityExpression) .icon(iconExpression) .opacity(opacityExpression) .build();In this example, the object is visible if its ID is 43. The icon is determined by a class attribute, and the opacity depends on its fuel burn attribute.
TLcdExpressionFactory
,
TLspPlotLayerBuilder
Modifier and Type | Class and Description |
---|---|
static class |
TLspPlotStyle.Builder<B extends TLspPlotStyle.Builder<B>>
Deprecated.
The plot painting functionality has been move to Lightspeed, please use
TLspPlotStyle instead. |
ILspWorldElevationStyle.ElevationMode
Modifier and Type | Method and Description |
---|---|
TLspPlotStyle.Builder<?> |
asBuilder()
Deprecated.
Creates a new builder initialized with all the properties of this style.
|
static TLspPlotStyle.Builder<?> |
newBuilder()
Deprecated.
The plot painting functionality has been move to Lightspeed, please use
TLspPlotStyle instead. |
equals, getColor, getDensityHardness, getDensityIndexColorModel, getElevationMode, getEyeDomeLighting, getIcon, getOpacity, getScale, getVisibility, hashCode, isPaintDensity, isTransparent, usesOrientation
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
public static TLspPlotStyle.Builder<?> newBuilder()
TLspPlotStyle
instead.TLspPlotStyle for example code fragments
,
Builder for default values
public TLspPlotStyle.Builder<?> asBuilder()
asBuilder
in class TLspPlotStyle