Package com.luciad.layers.grids.lonlat
Class LonLatGrid.AdvancedBuilder
java.lang.Object
com.luciad.layers.grids.lonlat.LonLatGrid.AdvancedBuilder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
LonLatGrid
Advanced builder for a LonLat grid.
- Since:
- 2023.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the LonLat grid.voidclose()protected voidfinalize()originLat(double originLat) Indicates the origin latitude.originLon(double originLon) Indicates the origin longitude.setting(LonLatGridSetting gridSetting) Includes the setting within the LonLat grid.
-
Constructor Details
-
AdvancedBuilder
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
build
Returns the LonLat grid.- Returns:
- the LonLat grid.
- Throws:
IllegalStateException- when the settings are invalid.- See Also:
-
originLon
@NotNull public LonLatGrid.AdvancedBuilder originLon(double originLon) throws IllegalArgumentException Indicates the origin longitude.This is optional. Defaults to 0.
- Parameters:
originLon- the origin longitude.- Returns:
- this builder.
- Throws:
IllegalArgumentException- when the origin longitude is smaller than -180 or larger than 180.
-
originLat
@NotNull public LonLatGrid.AdvancedBuilder originLat(double originLat) throws IllegalArgumentException Indicates the origin latitude.This is optional. Defaults to 0.
- Parameters:
originLat- the origin latitude.- Returns:
- this builder.
- Throws:
IllegalArgumentException- when the origin latitude is smaller than -90 or larger than 90.
-
setting
@NotNull public LonLatGrid.AdvancedBuilder setting(@NotNull LonLatGridSetting gridSetting) throws IllegalArgumentException Includes the setting within the LonLat grid.- Parameters:
gridSetting- the LonLat grid setting.- Returns:
- this builder.
- Throws:
IllegalArgumentException- when an invalid setting is passed.
-