|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Fill object encapsulates the graphical-symbolization parameters for areas of geometries.
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:
Field Summary | |
static Fill |
DEFAULT
|
static Fill |
NULL
|
Method Summary | |
void |
accept(StyleVisitor visitor)
|
Expression |
getBackgroundColor()
This parameter gives the solid color that will be used as a background for a Fill. |
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)
This parameter gives the solid color that will be used as a background for a Fill. |
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. |
Methods inherited from interface org.geotools.event.GTComponent |
changed, getNote, getParent, removed, setNote |
Field Detail |
public static final Fill DEFAULT
public static final Fill NULL
Method Detail |
public Expression getColor()
public void setColor(Expression color)
color
- solid color that will be used for a Fillpublic Expression getBackgroundColor()
public void setBackgroundColor(Expression backgroundColor)
backgroundColor
- solid color that will be used as a backgroundpublic Expression getOpacity()
public void setOpacity(Expression opacity)
opacity
- DOCUMENT ME!public Graphic getGraphicFill()
public void setGraphicFill(Graphic graphicFill)
graphicFill
- DOCUMENT ME!public void accept(StyleVisitor visitor)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |