Package com.luciad.layers.grids.lonlat
Class LonLatGrid
java.lang.Object
com.luciad.layers.grids.lonlat.LonLatGrid
- All Implemented Interfaces:
AutoCloseable
The LonLat grid class represents how to visualize the LonLat grid on a map.
It combines one or more settings which determine how the grid is styled at different scale ranges.
The style settings in the grid may not overlap. Overlap occurs when the new style setting has an overlapping scale range with an existing style setting.
- Since:
- 2023.1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Advanced builder for a LonLat grid.static final class
Builder for a LonLat grid. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
double
Returns the origin latitude of this grid.double
Returns the origin longitude of this grid.List
<@NotNull LonLatGridSetting> Returns the LonLatGridSettings used to create this grid.static LonLatGrid.AdvancedBuilder
Creates a new builder with the default values.static LonLatGrid.Builder
Creates a new builder with the default values.
-
Constructor Details
-
LonLatGrid
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
newBuilder
Creates a new builder with the default values.This builder comes with pre-defined settings for scale ranges. It allows you to customize the styling, for example the line style to use.
- Returns:
- the new builder.
-
newAdvancedBuilder
Creates a new builder with the default values.This builder allows you to configure the LonLat grid styling for different scale ranges.
- Returns:
- the new builder.
-
getSettings
Returns the LonLatGridSettings used to create this grid.- Returns:
- the settings.
-
getOriginLon
public double getOriginLon()Returns the origin longitude of this grid.- Returns:
- the origin longitude.
-
getOriginLat
public double getOriginLat()Returns the origin latitude of this grid.- Returns:
- the origin latitude.
-