|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.sld.Drawing org.deegree.graphics.sld.Fill
public class Fill
A Fill allows area geometries to be filled. There are two types of fills: solid-color and repeated GraphicFill. In general, if a Fill element is omitted in its containing element, no fill will be rendered. The default is a solid 50%-gray (color "#808080") opaque fill.
Field Summary | |
---|---|
static java.awt.Color |
FILL_DEFAULT
default fill color is #808080 |
static double |
OPACITY_DEFAULT
Opacity is 1 |
Fields inherited from class org.deegree.graphics.sld.Drawing |
---|
cssParams, graphicFill |
Constructor Summary | |
---|---|
protected |
Fill()
Constructs a new Fill. |
|
Fill(java.util.Map<java.lang.String,java.lang.Object> cssParams,
GraphicFill graphicFill)
Constructs a new Fill. |
Method Summary | |
---|---|
java.lang.String |
exportAsXML()
exports the content of the CssParameter as XML formated String |
java.awt.Color |
getFill(Feature feature)
Returns the (evaluated) value of the fill's CssParameter 'fill'. |
double |
getOpacity(Feature feature)
Returns the (evaluated) value of the fill's CssParameter 'fill-opacity'. |
java.lang.String |
getSymbol(Feature feature)
|
void |
setFill(java.awt.Color color)
sets the value of the fill's CssParameter 'fill' as a simple color |
void |
setOpacity(double opacity)
sets the value of the opacity's CssParameter 'opacity' as a value. |
Methods inherited from class org.deegree.graphics.sld.Drawing |
---|
addCssParameter, getCssParameters, getGraphicFill, removeCssParameter, setCssParameters, setGraphicFill |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Color FILL_DEFAULT
public static final double OPACITY_DEFAULT
Constructor Detail |
---|
protected Fill()
public Fill(java.util.Map<java.lang.String,java.lang.Object> cssParams, GraphicFill graphicFill)
cssParams
- graphicFill
- Method Detail |
---|
public java.awt.Color getFill(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation fails or the value is invalidpublic void setFill(java.awt.Color color)
color
- color to be setpublic double getOpacity(Feature feature) throws FilterEvaluationException
feature
- specifies the Feature to be used for evaluation of the underlying 'sld:ParameterValueType'
FilterEvaluationException
- if the evaluation fails or the value is invalidpublic void setOpacity(double opacity)
opacity
- opacity to be setpublic java.lang.String getSymbol(Feature feature) throws FilterEvaluationException
FilterEvaluationException
public java.lang.String exportAsXML()
exportAsXML
in interface Marshallable
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org