Class LonLatGrid

java.lang.Object
com.luciad.layers.grids.lonlat.LonLatGrid
All Implemented Interfaces:
AutoCloseable

public final class LonLatGrid extends Object implements 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
  • Constructor Details

    • LonLatGrid

      public LonLatGrid(@NotNull LonLatGrid other)
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • newBuilder

      @NotNull public static LonLatGrid.Builder 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

      @NotNull public static LonLatGrid.AdvancedBuilder 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

      @NotNull public List<@NotNull LonLatGridSetting> 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.