public final class LonLatGrid extends Object implements AutoCloseable
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.
Modifier and Type | Class and Description |
---|---|
static class |
LonLatGrid.AdvancedBuilder
Advanced builder for a LonLat grid.
|
static class |
LonLatGrid.Builder
Builder for a LonLat grid.
|
Constructor and Description |
---|
LonLatGrid(LonLatGrid other) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
double |
getOriginLat()
Get the origin latitude of this grid.
|
double |
getOriginLon()
Get the origin longitude of this grid.
|
List<LonLatGridSetting> |
getSettings()
Return the LonLatGridSettings used to create this grid.
|
static LonLatGrid.AdvancedBuilder |
newAdvancedBuilder()
Creates a new builder with the default values.
|
static LonLatGrid.Builder |
newBuilder()
Creates a new builder with the default values.
|
public LonLatGrid(@NotNull LonLatGrid other)
public void close()
close
in interface AutoCloseable
@NotNull public static LonLatGrid.Builder newBuilder()
This builder comes with pre-defined settings for scale ranges. It allows you to customize the styling, for example the line style to use.
@NotNull public static LonLatGrid.AdvancedBuilder newAdvancedBuilder()
This builder allows you to configure the LonLat grid styling for different scale ranges.
@NotNull public List<LonLatGridSetting> getSettings()
public double getOriginLon()
public double getOriginLat()