public static final class LonLatGrid.AdvancedBuilder extends Object implements AutoCloseable
Constructor and Description |
---|
AdvancedBuilder(LonLatGrid.AdvancedBuilder other) |
Modifier and Type | Method and Description |
---|---|
LonLatGrid |
build()
Returns the LonLat grid.
|
void |
close() |
protected void |
finalize() |
LonLatGrid.AdvancedBuilder |
originLat(double originLat)
Indicates the origin latitude.
|
LonLatGrid.AdvancedBuilder |
originLon(double originLon)
Indicates the origin longitude.
|
LonLatGrid.AdvancedBuilder |
setting(LonLatGridSetting gridSetting)
Includes the setting within the LonLat grid.
|
public AdvancedBuilder(@NotNull LonLatGrid.AdvancedBuilder other)
public void close()
close
in interface AutoCloseable
@NotNull public LonLatGrid build() throws IllegalStateException
IllegalStateException
- when the settings are invalid.LonLatGrid
@NotNull public LonLatGrid.AdvancedBuilder originLon(double originLon) throws IllegalArgumentException
This is optional. Defaults to 0.
originLon
- the origin longitude.IllegalArgumentException
- when the origin longitude is smaller than -180 or larger than 180.@NotNull public LonLatGrid.AdvancedBuilder originLat(double originLat) throws IllegalArgumentException
This is optional. Defaults to 0.
originLat
- the origin latitude.IllegalArgumentException
- when the origin latitude is smaller than -90 or larger than 90.@NotNull public LonLatGrid.AdvancedBuilder setting(@NotNull LonLatGridSetting gridSetting) throws IllegalArgumentException
gridSetting
- the LonLat grid setting.IllegalArgumentException
- when an invalid setting is passed.