Class TLspPlotStyle
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle
com.luciad.view.lightspeed.style.TLspPlotStyle
com.luciad.realtime.lightspeed.plots.TLspPlotStyle
- All Implemented Interfaces:
ILspWorldElevationStyle
,ILspStyler
Deprecated.
This style represents a set of properties for point objects that can be controlled through
expressions
.
Construction of this style is done through its TLspPlotStyle.Builder
.
Each property is calculated by an expression:
- Visibility: determines whether the object is displayed or not
- Icon: determines the icon to display
- Scale: a scale factor applied to the icon
- Color: a modulation color applied to the icon
- Opacity: additional transparency applied to the icon
- Orientation: whether the icons should be rotated to match the orientation of the domain object, or be aligned with the screen.
- Automatic scaling: varies the size of icons depending on the view's zoom level.
This is strongly recommended for performance reasons. See
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.
- Since:
- 2012.1
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TLspPlotStyle.Builder<B extends TLspPlotStyle.Builder<B>>
Deprecated.The plot painting functionality has been move to Lightspeed, please useTLspPlotStyle
instead.Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.style.ILspWorldElevationStyle
ILspWorldElevationStyle.ElevationMode
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Creates a new builder initialized with all the properties of this style.static TLspPlotStyle.Builder
<?> Deprecated.The plot painting functionality has been move to Lightspeed, please useTLspPlotStyle
instead.Methods inherited from class com.luciad.view.lightspeed.style.TLspPlotStyle
equals, getColor, getDensityHardness, getDensityIndexColorModel, getElevationMode, getEyeDomeLighting, getIcon, getOpacity, getScale, getVisibility, hashCode, isPaintDensity, isTransparent, usesOrientation
Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
-
Method Details
-
newBuilder
Deprecated.The plot painting functionality has been move to Lightspeed, please useTLspPlotStyle
instead.Creates a new builder with the default values.- Returns:
- the new builder.
- See Also:
-
asBuilder
Deprecated.Creates a new builder initialized with all the properties of this style.- Overrides:
asBuilder
in classTLspPlotStyle
- Returns:
- the new builder.
-
TLspPlotStyle
instead.