Class FeatureStyle


  • public class FeatureStyle
    extends Object
    Feature Style, including a style and icon, for a single feature geometry
    Since:
    3.2.0
    Author:
    osbornb
    • Constructor Detail

      • FeatureStyle

        public FeatureStyle()
        Constructor
      • FeatureStyle

        public FeatureStyle​(StyleRow style)
        Constructor
        Parameters:
        style - style row
      • FeatureStyle

        public FeatureStyle​(IconRow icon)
        Constructor
        Parameters:
        icon - icon row
      • FeatureStyle

        public FeatureStyle​(StyleRow style,
                            IconRow icon)
        Constructor
        Parameters:
        style - style row
        icon - icon row
    • Method Detail

      • getStyle

        public StyleRow getStyle()
        Get the style row
        Returns:
        style row or null
      • setStyle

        public void setStyle​(StyleRow style)
        Set the style row
        Parameters:
        style - style row
      • getIcon

        public IconRow getIcon()
        Get the icon row
        Returns:
        icon row or null
      • setIcon

        public void setIcon​(IconRow icon)
        Set the icon row
        Parameters:
        icon - icon row
      • hasStyle

        public boolean hasStyle()
        Check if the feature style has a style row
        Returns:
        true if has style row
      • hasIcon

        public boolean hasIcon()
        Check if the feature style has an icon row
        Returns:
        true if has icon row
      • useIcon

        public boolean useIcon()
        Determine if an icon exists and should be used. Returns false when an icon does not exist or when both a table level icon and row level style exist.
        Returns:
        true if the icon exists and should be used over a style
        Since:
        3.5.0