Class FillSymbol

  • All Implemented Interfaces:
    JsonSerializable
    Direct Known Subclasses:
    PictureFillSymbol, SimpleFillSymbol

    public abstract class FillSymbol
    extends Symbol
    Defines a FillSymbol's basic functionality and is base class for all FillSymbols.

    FillSymbols symbolize Graphics and Features that have polygon geometries. A FillSymbol defines a color for the interior of a polygon along with a pattern. A FillSymbol can also be used in combination with a LineSymbol to add an outline to a FillSymbol.

    FillSymbols can be used to represent Features such as countries, provinces, or habitats.

    Since:
    100.0.0
    See Also:
    LineSymbol, Graphic, Feature
    • Method Detail

      • getColor

        public int getColor()
        Gets the interior color used to display this symbol.
        Returns:
        an integer representing the fill color as 0xAARRGGBB
        Since:
        100.0.0
      • setColor

        public void setColor​(int color)
        Sets the interior color used to display this symbol.
        Parameters:
        color - an integer representing the fill color as 0xAARRGGBB
        Since:
        100.0.0
      • getOutline

        public LineSymbol getOutline()
        Gets the LineSymbol used to create the border for this FillSymbol, if one is used.
        Returns:
        the outline if there is one or null otherwise
        Since:
        100.0.0
      • setOutline

        public void setOutline​(LineSymbol outline)
        Sets a LineSymbol to be the border for this FillSymbol.

        If the outline is set to null, then this FillSymbol will have no border attached to it.

        Parameters:
        outline - the new outline for this fill symbol, can be null
        Since:
        100.0.0