|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Fill
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:
modules/library/api (gt-api.jar)
Field Summary | |
---|---|
static Fill |
DEFAULT
|
static Fill |
NULL
|
Method Summary | |
---|---|
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. |
Methods inherited from interface Fill |
---|
accept |
Field Detail |
---|
static final Fill DEFAULT
static final Fill NULL
Method Detail |
---|
Expression getColor()
getColor
in interface Fill
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |