Class StyleRow


  • public class StyleRow
    extends AttributesRow
    Style Row containing the values from a single result set row
    Since:
    3.2.0
    Author:
    osbornb
    • Constructor Detail

      • StyleRow

        public StyleRow()
        Constructor to create an empty row
      • StyleRow

        public StyleRow​(StyleTable table)
        Constructor to create an empty row
        Parameters:
        table - style table
      • StyleRow

        public StyleRow​(AttributesRow attributesRow)
        Constructor
        Parameters:
        attributesRow - attributes row
      • StyleRow

        public StyleRow​(StyleRow styleRow)
        Copy Constructor
        Parameters:
        styleRow - style row to copy
    • Method Detail

      • isTableStyle

        public boolean isTableStyle()
        Is a table style
        Returns:
        table style flag
        Since:
        3.5.0
      • setTableStyle

        public void setTableStyle​(boolean tableStyle)
        Set table style flag
        Parameters:
        tableStyle - table style flag
        Since:
        3.5.0
      • getNameColumnIndex

        public int getNameColumnIndex()
        Get the name column index
        Returns:
        name column index
      • getNameColumn

        public AttributesColumn getNameColumn()
        Get the name column
        Returns:
        name column
      • getName

        public String getName()
        Get the name
        Returns:
        name
      • setName

        public void setName​(String name)
        Set the name
        Parameters:
        name - Feature Style name
      • getDescriptionColumnIndex

        public int getDescriptionColumnIndex()
        Get the description column index
        Returns:
        description column index
      • getDescriptionColumn

        public AttributesColumn getDescriptionColumn()
        Get the description column
        Returns:
        description column
      • getDescription

        public String getDescription()
        Get the description
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        Set the description
        Parameters:
        description - Feature Style description
      • getColorColumnIndex

        public int getColorColumnIndex()
        Get the color column index
        Returns:
        color column index
      • getColorColumn

        public AttributesColumn getColorColumn()
        Get the color column
        Returns:
        color column
      • getColor

        public Color getColor()
        Get the style color
        Returns:
        color
      • hasColor

        public boolean hasColor()
        Check if the style has a color
        Returns:
        true if has a color
      • getHexColor

        public String getHexColor()
        Get the color
        Returns:
        color
      • setColor

        public void setColor​(Color color)
        Set the color
        Parameters:
        color - color
      • setColor

        public void setColor​(String color)
        Set the color
        Parameters:
        color - Geometry color in hex format #RRGGBB or #RGB
      • getColorOrDefault

        public Color getColorOrDefault()
        Get the color or default value
        Returns:
        color
      • getHexColorOrDefault

        public String getHexColorOrDefault()
        Get the color or default value
        Returns:
        color
      • getOpacityColumnIndex

        public int getOpacityColumnIndex()
        Get the opacity column index
        Returns:
        opacity column index
      • getOpacityColumn

        public AttributesColumn getOpacityColumn()
        Get the opacity column
        Returns:
        opacity column
      • getOpacity

        public Double getOpacity()
        Get the opacity
        Returns:
        opacity
      • setOpacity

        public void setOpacity​(Double opacity)
        Set the opacity
        Parameters:
        opacity - Geometry color opacity inclusively between 0.0 and 1.0
      • getOpacityOrDefault

        public double getOpacityOrDefault()
        Get the opacity or default value
        Returns:
        opacity
      • getWidthColumnIndex

        public int getWidthColumnIndex()
        Get the width column index
        Returns:
        width column index
      • getWidthColumn

        public AttributesColumn getWidthColumn()
        Get the width column
        Returns:
        width column
      • getWidth

        public Double getWidth()
        Get the width
        Returns:
        width
      • setWidth

        public void setWidth​(Double width)
        Set the width
        Parameters:
        width - Geometry line stroke or point width greater than or equal to 0.0
      • getWidthOrDefault

        public double getWidthOrDefault()
        Get the width value or default width
        Returns:
        width
      • getFillColorColumnIndex

        public int getFillColorColumnIndex()
        Get the fill color column index
        Returns:
        fill color column index
      • getFillColorColumn

        public AttributesColumn getFillColorColumn()
        Get the fill color column
        Returns:
        fill color column
      • getFillColor

        public Color getFillColor()
        Get the style fill color
        Returns:
        fill color
      • hasFillColor

        public boolean hasFillColor()
        Check if the style has a fill color
        Returns:
        true if has a fill color
      • getFillHexColor

        public String getFillHexColor()
        Get the fill color
        Returns:
        fill color
      • setFillColor

        public void setFillColor​(Color color)
        Set the color
        Parameters:
        color - color
      • setFillColor

        public void setFillColor​(String fillColor)
        Set the fill color
        Parameters:
        fillColor - Closed geometry fill color in hex format #RRGGBB or #RGB
      • getFillOpacityColumnIndex

        public int getFillOpacityColumnIndex()
        Get the fill opacity column index
        Returns:
        fill opacity column index
      • getFillOpacityColumn

        public AttributesColumn getFillOpacityColumn()
        Get the fill opacity column
        Returns:
        fill opacity column
      • getFillOpacity

        public Double getFillOpacity()
        Get the fill opacity
        Returns:
        fill opacity
      • setFillOpacity

        public void setFillOpacity​(Double fillOpacity)
        Set the fill opacity
        Parameters:
        fillOpacity - Closed geometry fill color opacity inclusively between 0.0 and 1.0
      • getFillOpacityOrDefault

        public double getFillOpacityOrDefault()
        Get the fill opacity or default value
        Returns:
        fill opacity