Package com.luciad.view.lightspeed.style
Class ALspDensityStyle.Builder<B extends ALspDensityStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.ALspDensityStyle.Builder<B>
- All Implemented Interfaces:
ILspWorldElevationStyle.Builder
- Direct Known Subclasses:
ALspSoftDensityStyle.Builder
,TLspDensityFillStyle.Builder
- Enclosing class:
ALspDensityStyle
public abstract static class ALspDensityStyle.Builder<B extends ALspDensityStyle.Builder<B>>
extends ALspStyle.Builder<B>
implements ILspWorldElevationStyle.Builder
Builder used to create density styles.
- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionSets all parameters on the builder based on the given style.abstract ALspDensityStyle
build()
Builds the style with the set parameters.Specifies the elevation mode.weight
(float aWeight) Sets the weight of this style's contribution to the density plot.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Method Details
-
all
Description copied from class:ALspStyle.Builder
Sets all parameters on the builder based on the given style. This is useful for example to create a new style that has almost all properties equal to another style.- Specified by:
all
in classALspStyle.Builder<B extends ALspDensityStyle.Builder<B>>
- Parameters:
aStyle
- the style to copy- Returns:
this
-
weight
Sets the weight of this style's contribution to the density plot. The default value is 1, meaning that each object which uses this style increments the density value by 1. The weight value must be between 0 and 1, with 0 meaning that objects do not contribute to the density plot at all. If needed,TLspIndexColorModelStyle.getScaleFactor()
can be used to scale the range of the density values.- Parameters:
aWeight
- the weight of this style's contribution to the density plot, between 0 and 1- Returns:
this
-
elevationMode
Description copied from interface:ILspWorldElevationStyle.Builder
Specifies the elevation mode. The default mode depends on the specific implementation.- Specified by:
elevationMode
in interfaceILspWorldElevationStyle.Builder
- Parameters:
aMode
-- Returns:
this
-
build
Description copied from class:ALspStyle.Builder
Builds the style with the set parameters.- Specified by:
build
in classALspStyle.Builder<B extends ALspDensityStyle.Builder<B>>
- Returns:
- the resulting style
-