Class SelectedProjection

java.lang.Object
com.luciad.layers.projectedimagery.SelectedProjection
All Implemented Interfaces:
AutoCloseable

public final class SelectedProjection extends Object implements AutoCloseable
A projection to display, together with its blend weight.

Several projections can be selected at once so that, for example, a navigation controller can cross-fade between them by animating the weights. The weight scales the whole projection: the effective opacity is the style opacity times the weight, and the effective sky opacity is the style sky opacity times the weight.

Since:
2026.1
  • Constructor Details

    • SelectedProjection

      public SelectedProjection(@NotNull String id, double weight) throws IllegalArgumentException
      Creates a selected projection.
      Parameters:
      id - the ID of the projection to display.
      weight - the blend weight. Must be in the range [0, 1].
      Throws:
      IllegalArgumentException - when weight < 0 or weight > 1.
  • Method Details

    • finalize

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

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getId

      @NotNull public String getId()
      Returns the ID of the projection to display.
      Returns:
      the ID of the projection to display.
    • getWeight

      public double getWeight()
      Returns the blend weight.
      Returns:
      the blend weight.
    • hashCode

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

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