public class TLspPlotStyle extends ALspStyle implements ILspWorldElevationStyle
expressions
.
Construction of this style is done through its TLspPlotStyle.Builder
.
This style can currently be used only in combination with a TLspPlotLayerBuilder
.
Each property is calculated by an expression:
TLspPlotStyle.Builder.automaticScaling(double)
for details.TLspEyeDomeLightingSettings
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>>
Builder used to create plot styles.
|
ILspWorldElevationStyle.ElevationMode
Modifier | Constructor and Description |
---|---|
protected |
TLspPlotStyle(TLspPlotStyle.Builder<?> aBuilder)
Creates a new style with the properties that are set on the builder
|
Modifier and Type | Method and Description |
---|---|
TLspPlotStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object o) |
ILcdExpression<Color> |
getColor()
Returns the expression that determines the modulation color applied to the icon.
|
double |
getDensityHardness()
Returns the hardness of the density visualization
|
IndexColorModel |
getDensityIndexColorModel()
Returns the index color model used to visualize densities
|
ILspWorldElevationStyle.ElevationMode |
getElevationMode()
Returns the elevation mode of this style.
|
TLspEyeDomeLightingSettings |
getEyeDomeLighting()
Returns the eye-dome lighting settings
|
ILcdExpression<? extends ILcdIcon> |
getIcon()
Returns the expression that determines what icon to use.
|
ILcdExpression<Float> |
getOpacity()
Returns the expression that determines transparency added to the icon.
|
ILcdExpression<Float> |
getScale()
Returns the expression that determines the scale factor applied to the icon.
|
ILcdExpression<Boolean> |
getVisibility()
Returns the expression that determines whether the object should be displayed or not.
|
int |
hashCode() |
boolean |
isPaintDensity()
Returns whether the plots should be painted as a density or not.
|
boolean |
isTransparent()
Always returns false.
|
static TLspPlotStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
boolean |
usesOrientation()
Returns whether the icon should respect the orientation of the domain object (as defined
by ILcdOriented).
|
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
protected TLspPlotStyle(TLspPlotStyle.Builder<?> aBuilder)
aBuilder
- a builder which will be used to initialize this style.public static TLspPlotStyle.Builder<?> newBuilder()
TLspPlotStyle for example code fragments
,
Builder for default values
public TLspPlotStyle.Builder<?> asBuilder()
public boolean isTransparent()
isTransparent
in class ALspStyle
public ILspWorldElevationStyle.ElevationMode getElevationMode()
ILspWorldElevationStyle
getElevationMode
in interface ILspWorldElevationStyle
public ILcdExpression<Boolean> getVisibility()
public ILcdExpression<Float> getScale()
public ILcdExpression<Color> getColor()
public ILcdExpression<Float> getOpacity()
public ILcdExpression<? extends ILcdIcon> getIcon()
public boolean usesOrientation()
public boolean isPaintDensity()
public IndexColorModel getDensityIndexColorModel()
public double getDensityHardness()
public TLspEyeDomeLightingSettings getEyeDomeLighting()