Package com.luciad.maps.effects
Class EyeDomeLightingModel.Builder
java.lang.Object
com.luciad.maps.effects.EyeDomeLightingModel.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
EyeDomeLightingModel
Builder for an EyeDomeLightingModel.- Since:
- 2026.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the eye-dome lighting model.voidclose()color(android.graphics.Color color) Sets the color of the shade.protected voidfinalize()strength(double strength) Sets the shading multiplication factor.window(long window) Sets the number of surrounding pixels taken into account by the EDL model.
-
Constructor Details
-
Builder
Copy constructor.- Parameters:
other- the builder to copy.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
window
Sets the number of surrounding pixels taken into account by the EDL model.The default is 2.
- Parameters:
window- number of surrounding pixels taken into account by the EDL model.- Returns:
- this builder.
-
strength
@NotNull public EyeDomeLightingModel.Builder strength(double strength) throws IllegalArgumentException Sets the shading multiplication factor.A value between 0 and 1 softens the shade, a value higher than 1 hardens the shade. The default is 1.
- Parameters:
strength- shading multiplication factor. Must be non-negative.- Returns:
- this builder.
- Throws:
IllegalArgumentException- when the strength is negative.
-
color
Sets the color of the shade.Note that the alpha component of the color is ignored so the color is fully opaque. The default is black.
- Parameters:
color- color of the shade.- Returns:
- this builder.
-
build
Builds the eye-dome lighting model.- Returns:
- the built eye-dome lighting model.
-