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:
Labels
are still rendered normally.Complex strokes
are 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 Summary
ConstructorsConstructorDescriptionDensitySettings
(ColorMap colorMap) Constructs density painting settings based on the given color mapping. -
Method Summary
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getColorMap
Returns the color mapping used for density painting.- Returns:
- the color mapping used for density painting.
-