Class SunlightModel

java.lang.Object
com.luciad.maps.effects.LightModel
com.luciad.maps.effects.SunlightModel
All Implemented Interfaces:
AutoCloseable

public final class SunlightModel extends LightModel implements AutoCloseable
Light with a direction that approximates the direction of sunlight at a given time.
Since:
2026.1
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class LightModel
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class LightModel
    • newBuilder

      @NotNull public static SunlightModel.Builder newBuilder()
      Creates a new builder with the default sunlight parameters.

      The time is mandatory and must still be set.

      Returns:
      a new builder.
    • asBuilder

      @NotNull public SunlightModel.Builder asBuilder()
      Creates a builder pre-filled with this light's parameters.
      Returns:
      a builder pre-filled with this light's parameters.
    • getAmbientColor

      @NotNull public android.graphics.Color getAmbientColor()
      Returns the ambient color of the light.
      Returns:
      the ambient color of the light.
    • getDiffuseColor

      @NotNull public android.graphics.Color getDiffuseColor()
      Returns the diffuse color of the light.
      Returns:
      the diffuse color of the light.
    • getTime

      public long getTime()
      Returns the time in milliseconds since midnight GMT+0 (UTC), 01 January 1970.
      Returns:
      the time in milliseconds since midnight GMT+0 (UTC), 01 January 1970.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object