java.lang.Object
mil.nga.geopackage.extension.nga.style.Styles

public class Styles extends Object
Styles for a single feature geometry or feature table default
Since:
3.2.0
  • Constructor Details

    • Styles

      public Styles()
      Constructor
    • Styles

      public Styles(boolean tableStyles)
      Constructor
      Parameters:
      tableStyles - table styles
      Since:
      3.5.0
  • Method Details

    • setDefault

      public void setDefault(StyleRow styleRow)
      Set the default style icon
      Parameters:
      styleRow - default style
    • setStyle

      public void setStyle(StyleRow styleRow, GeometryType geometryType)
      Set the style for the geometry type
      Parameters:
      styleRow - style row
      geometryType - geometry type
    • getDefault

      public StyleRow getDefault()
      Default style
      Returns:
      default style
    • getStyles

      public Map<GeometryType,StyleRow> getStyles()
      Get an unmodifiable mapping between specific geometry types and styles
      Returns:
      geometry types to style mapping
    • getStyle

      public StyleRow getStyle()
      Get the style, either the default or single geometry type style
      Returns:
      style
    • getStyle

      public StyleRow getStyle(GeometryType geometryType)
      Get the style for the geometry type
      Parameters:
      geometryType - geometry type
      Returns:
      style
    • isEmpty

      public boolean isEmpty()
      Determine if this styles is empty
      Returns:
      true if empty, false if at least one style
    • hasDefault

      public boolean hasDefault()
      Determine if there is a default style
      Returns:
      true if default style exists
    • isTableStyles

      public boolean isTableStyles()
      Is table styles
      Returns:
      table styles flag
      Since:
      3.5.0
    • setTableStyles

      public void setTableStyles(boolean tableStyles)
      Set table styles flag
      Parameters:
      tableStyles - table styles flag
      Since:
      3.5.0