Class ProjectedImageryLayer.Builder
java.lang.Object
com.luciad.layers.projectedimagery.ProjectedImageryLayer.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ProjectedImageryLayer
Builder for creating a ProjectedImageryLayer.
Obtain an instance via ProjectedImageryLayer#newBuilder.
- Since:
- 2026.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newProjectedImageryLayerbased on the properties set on this builder.voidclose()protected voidfinalize()model(IProjectedImageryModel model) Sets the projected imagery model of the layer.selectedProjections(List<@NotNull SelectedProjection> projections) Sets the projections to display initially, each with its blend weight.style(ProjectedImageryStyle style) Sets the style of this layer.Sets the title of the layer.visible(boolean visible) Sets whether the layer should be visible initially.
-
Constructor Details
-
Builder
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
build
Returns a newProjectedImageryLayerbased on the properties set on this builder.- Returns:
- a new layer.
- Throws:
IllegalStateException- ifmodelhas not been set.
-
title
Sets the title of the layer.This parameter is optional. If not set, the title from the model's metadata is used.
- Parameters:
title- the layer title.- Returns:
- this builder.
-
visible
Sets whether the layer should be visible initially.This parameter is optional. The default is
true.- Parameters:
visible- the initial visibility.- Returns:
- this builder.
-
model
@NotNull public ProjectedImageryLayer.Builder model(@NotNull IProjectedImageryModel model) throws NullPointerException Sets the projected imagery model of the layer.This parameter is mandatory.
- Parameters:
model- the projected imagery model. Must not benull.- Returns:
- this builder.
- Throws:
NullPointerException- when the model isnull.
-
style
Sets the style of this layer.- Parameters:
style- the projected imagery style to apply.- Returns:
- this builder.
-
selectedProjections
@NotNull public ProjectedImageryLayer.Builder selectedProjections(@NotNull List<@NotNull SelectedProjection> projections) Sets the projections to display initially, each with its blend weight.This parameter is optional. The default is an empty list.
- Parameters:
projections- the projections to display.- Returns:
- this builder.
-