Interface Fill


  • @XmlElement("Fill")
    public interface Fill
    Indicates how the interior of polygons will be filled.
    Since:
    GeoAPI 2.2
    • Method Detail

      • getGraphicFill

        @XmlElement("GraphicFill")
        GraphicFill getGraphicFill()
        If this object is to be filled with tiled copies of an image, then returns a non-null Graphic that indicates what image should be drawn.
        Returns:
        Graphic object or null if no graphic pattern to use.
      • getColor

        @XmlParameter("Fill")
        Expression getColor()
        Indicates the color to be used for solid-filling the interior of polygons. The format of the color is "#rrggbb" where rr, gg, and bb are two digit hexadecimal integers specify the red, green, and blue color intensities, repsectively. If null, the default color is 50% gray, "#808080".
        Returns:
        Expression : if null the color used shall be a 50% gray "#808080".
      • getOpacity

        @XmlParameter("Opacity")
        Expression getOpacity()
        Indicates the opacity of the fill. This value must be a floating point number ranging from 0.0 to 1.0, where 0.0 means completely transparent and 1.0 means completely opaque. If null, the default value is 1.0, completely opaque.
        Returns:
        Expression : if null, value used shall be 1.0
      • accept

        Object accept​(StyleVisitor visitor,
                      Object extraData)
        calls the visit method of a StyleVisitor
        Parameters:
        visitor - the style visitor