Package com.luciad.maps.effects
Class SunlightModel.Builder
java.lang.Object
com.luciad.maps.effects.SunlightModel.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
SunlightModel
Builder for a SunlightModel.- Since:
- 2026.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionambientColor(android.graphics.Color color) Sets the ambient color of the light.build()Builds the sunlight.voidclose()diffuseColor(android.graphics.Color color) Sets the diffuse color of the light.protected voidfinalize()time(long epochTimeMilliseconds) Sets the time in milliseconds since midnight 01 January, 1970.
-
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
-
ambientColor
Sets the ambient color of the light.The default is a dark gray (64, 64, 64).
- Parameters:
color- the ambient color of the light.- Returns:
- this builder.
-
diffuseColor
Sets the diffuse color of the light.The default is white.
- Parameters:
color- the diffuse color of the light.- Returns:
- this builder.
-
time
Sets the time in milliseconds since midnight 01 January, 1970.This is mandatory.
- Parameters:
epochTimeMilliseconds- Time in milliseconds since midnight GMT+0 (UTC), 01 January 1970.- Returns:
- this builder.
-
build
Builds the sunlight.- Returns:
- the built sunlight.
- Throws:
IllegalStateException- when the time was not set.
-