Package com.luciad.layers.grids.lonlat
Class LonLatGridLayer.Builder
java.lang.Object
com.luciad.layers.grids.lonlat.LonLatGridLayer.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
LonLatGridLayer
Builder for creating a LonLatGridLayer.
Configuration on how to display the LonLat grid is done using a LonLatGrid
which can be created using a LonLatGrid.Builder
.
- Since:
- 2023.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the LonLat layer.void
close()
protected void
finalize()
grid
(LonLatGrid grid) Sets the LonLat grid settings.labeled
(boolean labeled) Sets whether the layer should display labels initially.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 the LonLat layer.- Returns:
- a 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 defaults to 'LonLat'.
- 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.
-
labeled
Sets whether the layer should display labels initially.Default is
true
.- Parameters:
labeled
- whether the layer should display labels initially.- Returns:
- this builder.
-
grid
Sets the LonLat grid settings.- Parameters:
grid
- the LonLat grid settings.- Returns:
- this builder.
-