Package com.luciad.layers.los
Class LineOfSightLayer.Builder
java.lang.Object
com.luciad.layers.los.LineOfSightLayer.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
LineOfSightLayer
- Since:
- 2025.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a new layer, based on the properties set on this builder.void
close()
protected void
finalize()
lineOfSightStyle
(LineOfSightStyle losStyle) Sets the style for this layer.model
(IFeatureModel model) Sets the model of the layer.Sets the title to use for 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:
close
in interfaceAutoCloseable
-
build
Returns a new layer, based on the properties set on this builder.- Returns:
- a new layer, based on the properties set on this builder.
- Throws:
IllegalStateException
- If not all mandatory parameters are set.
-
title
Sets the title to use for the layer.If not set, the title from the
ModelMetadata
is used.- Parameters:
title
- the title for the layer.- Returns:
- this builder.
-
visible
Sets whether the layer should be visible initially.Default is
true
.- Parameters:
visible
- the visibility.- Returns:
- this builder.
-
model
@NotNull public LineOfSightLayer.Builder model(@NotNull IFeatureModel model) throws NullPointerException Sets the model of the layer.This model provides the line-of-sight features to be presented. Such a feature represents an observer with some additional properties which together define a line-of-sight coverage. They can be created using
LineOfSightFeature#newBuilder
and related functions.Calling this function is mandatory.
- Parameters:
model
- the model of the layer.- Returns:
- this builder.
- Throws:
NullPointerException
- if model isnull
.- See Also:
-
lineOfSightStyle
Sets the style for this layer.- Parameters:
losStyle
- the line-of-sight style to apply.- Returns:
- this builder.
-