Package com.luciad.layers.features
Class DensitySettings
java.lang.Object
com.luciad.layers.features.DensitySettings
- All Implemented Interfaces:
- AutoCloseable
DensitySettings are used on a feature layer to enable and configure density painting.
 
 When density painting is active, the color map in the density settings is used to determine the colors of shapes. The IFeaturePainter determines which shapes are drawn. The density level is based on the amount of overlapping features that are drawn by the IFeaturePainter, with the alpha value serving as a weight. The color is derived from the ColorMap using the density level.
 
 For example, a region with two overlapping features, where one has an alpha of 0.75 and the other an alpha of 0.5, has a density level of 1.25. The color of this region is equal to colorMap.retrieveColor(1.25).
 
Notes:
- Labelsare still rendered normally.
- Complex strokesare ignored.
- Draped and non-draped shapes won't interact with each other. For example: elevated polylines will not be affected by the density level of draped shapes.
- Since:
- 2024.1
- 
Constructor SummaryConstructorsConstructorDescriptionDensitySettings(ColorMap colorMap) Constructs density painting settings based on the given color mapping.
- 
Method Summary
- 
Constructor Details- 
DensitySettingsConstructs density painting settings based on the given color mapping.- Parameters:
- colorMap- the color mapping to be used for density painting.
 
 
- 
- 
Method Details- 
finalizeprotected void finalize()
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
getColorMapReturns the color mapping used for density painting.- Returns:
- the color mapping used for density painting.
 
 
-