| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 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(Map<String,Object> cssParams,
         GraphicFill graphicFill)
Constructs a new Fill.  | 
| Method Summary | |
|---|---|
 String | 
exportAsXML()
exports the content of the CssParameter as XML formated String  | 
 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'.  | 
 String | 
getSymbol(Feature feature)
 | 
 void | 
setFill(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 Color FILL_DEFAULT
public static final double OPACITY_DEFAULT
| Constructor Detail | 
|---|
protected Fill()
public Fill(Map<String,Object> cssParams,
            GraphicFill graphicFill)
cssParams - graphicFill - | Method Detail | 
|---|
public 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(Color color)
color - color to be set
public 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 set
public String getSymbol(Feature feature)
                 throws FilterEvaluationException
FilterEvaluationExceptionpublic String exportAsXML()
exportAsXML in interface Marshallable
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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