public static final class LonLatGridLayer.Builder extends Object implements AutoCloseable
Configuration on how to display the LonLat grid is done using a LonLatGrid
which can be created using a LonLatGrid.Builder
.
Constructor and Description |
---|
Builder(LonLatGridLayer.Builder other) |
Modifier and Type | Method and Description |
---|---|
LonLatGridLayer |
build()
Returns the LonLat layer.
|
void |
close() |
protected void |
finalize() |
LonLatGridLayer.Builder |
grid(LonLatGrid grid)
Sets the LonLat grid settings.
|
LonLatGridLayer.Builder |
labeled(boolean labeled)
Sets whether the layer should display labels initially.
|
LonLatGridLayer.Builder |
title(String title)
Sets the title to use for the layer.
|
LonLatGridLayer.Builder |
visible(boolean visible)
Sets whether the layer should be visible initially.
|
public Builder(@NotNull LonLatGridLayer.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public LonLatGridLayer build() throws IllegalStateException
IllegalStateException
- If not all mandatory parameters are set.@NotNull public LonLatGridLayer.Builder title(@NotNull String title)
If not set, the title defaults to 'LonLat'.
title
- the title for the layer.@NotNull public LonLatGridLayer.Builder visible(boolean visible)
Default is true
.
visible
- the visibility.@NotNull public LonLatGridLayer.Builder labeled(boolean labeled)
Default is true
.
labeled
- whether the layer should display labels initially.@NotNull public LonLatGridLayer.Builder grid(@NotNull LonLatGrid grid)
grid
- the LonLat grid settings.