| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| 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
 | 
static double | 
OPACITY_DEFAULT
 | 
| Fields inherited from class org.deegree.graphics.sld.Drawing | 
|---|
cssParams, graphicFill | 
| Constructor Summary | |
|---|---|
protected  | 
Fill()
Constructs a new Fill.  | 
protected  | 
Fill(HashMap<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'.  | 
 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()
protected Fill(HashMap<String,Object> cssParams,
               GraphicFill 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 setpublic String exportAsXML()
exportAsXML in interface Marshallable
  | 
deegree 2.1 (2007/11/08 09:57 build-328-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://deegree.sourceforge.net