Class Icons


  • public class Icons
    extends Object
    Icons for a single feature geometry or feature table default
    Since:
    3.2.0
    Author:
    osbornb
    • Constructor Detail

      • Icons

        public Icons()
        Constructor
      • Icons

        public Icons​(boolean tableIcons)
        Constructor
        Parameters:
        tableIcons - table icons
        Since:
        3.5.0
    • Method Detail

      • setDefault

        public void setDefault​(IconRow iconRow)
        Set the default icon
        Parameters:
        iconRow - default icon
      • setIcon

        public void setIcon​(IconRow iconRow,
                            GeometryType geometryType)
        Set the icon for the geometry type
        Parameters:
        iconRow - icon row
        geometryType - geometry type
      • getDefault

        public IconRow getDefault()
        Get the default icon
        Returns:
        default icon
      • getIcons

        public Map<GeometryType,​IconRow> getIcons()
        Get an unmodifiable mapping between specific geometry types and icons
        Returns:
        geometry types to icon mapping
      • getIcon

        public IconRow getIcon()
        Get the icon, either the default or single geometry type icon
        Returns:
        style
      • getIcon

        public IconRow getIcon​(GeometryType geometryType)
        Get the icon for the geometry type
        Parameters:
        geometryType - geometry type
        Returns:
        icon
      • isEmpty

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

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

        public boolean isTableIcons()
        Is table icons
        Returns:
        table icons flag
        Since:
        3.5.0
      • setTableIcons

        public void setTableIcons​(boolean tableIcons)
        Set table icons flag
        Parameters:
        tableIcons - table icons flag
        Since:
        3.5.0