public interface Fill extends Fill
There are two types of fill: solid-color and repeated graphic fill.
The details of this object are taken from the OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.:
<xsd:element name="Fill">
<xsd:annotation>
<xsd:documentation>
A "Fill" specifies the pattern for filling an area geometry.
The allowed CssParameters are: "fill" (color) and "fill-opacity".
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="sld:GraphicFill" minOccurs="0"/>
<xsd:element ref="sld:CssParameter" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Renderers can use this information when displaying styled features, though it must be remembered that not all renderers will be able to fully represent strokes as set out by this interface. For example, opacity may not be supported.
Notes:
Modifier and Type | Method and Description |
---|---|
void |
accept(StyleVisitor visitor) |
Expression |
getBackgroundColor()
Deprecated.
value is not used, please use getColor()
|
Expression |
getColor()
This parameter gives the solid color that will be used for a Fill.
|
Graphic |
getGraphicFill()
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the
fill graphic to use.
|
Expression |
getOpacity()
This specifies the level of translucency to use when rendering the fill.
|
void |
setBackgroundColor(Expression backgroundColor)
Deprecated.
Please use setColor( Expression )
|
void |
setColor(Expression color)
This parameter gives the solid color that will be used for a Fill.
|
void |
setGraphicFill(Graphic graphicFill)
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the
fill graphic to use.
|
void |
setOpacity(Expression opacity)
This specifies the level of translucency to use when rendering the fill.
|
Expression getColor()
void setColor(Expression color)
color
- solid color that will be used for a FillExpression getBackgroundColor()
void setBackgroundColor(Expression backgroundColor)
backgroundColor
- solid color that will be used as a backgroundExpression getOpacity()
getOpacity
in interface Fill
void setOpacity(Expression opacity)
Graphic getGraphicFill()
getGraphicFill
in interface Fill
void setGraphicFill(Graphic graphicFill)
void accept(StyleVisitor visitor)
Copyright © 1996–2019 Geotools. All rights reserved.