org.deegree.graphics.sld
Interface Fill

All Superinterfaces:
Drawing
All Known Implementing Classes:
Fill_Impl

public interface Fill
extends Drawing

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.

Version:
$Revision: 1.6 $ $Date: 2004/01/22 07:49:29 $
Author:
Andreas Poth, Markus Schneider

Field Summary
static java.awt.Color FILL_DEFAULT
           
static double OPACITY_DEFAULT
           
 
Method Summary
 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'.
 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 interface org.deegree.graphics.sld.Drawing
addCssParameter, getCssParameters, getGraphicFill, removeCssParameter, setCssParameters, setGraphicFill
 

Field Detail

FILL_DEFAULT

public static final java.awt.Color FILL_DEFAULT

OPACITY_DEFAULT

public static final double OPACITY_DEFAULT
See Also:
Constant Field Values
Method Detail

getFill

public java.awt.Color getFill(Feature feature)
                       throws FilterEvaluationException
Returns the (evaluated) value of the fill's CssParameter 'fill'.

Parameters:
feature - specifies the Feature to be used for evaluation of the underlying 'sld:ParameterValueType'
Returns:
the (evaluated) value of the parameter
Throws:
FilterEvaluationException - if the evaluation fails or the value is invalid

setFill

public void setFill(java.awt.Color color)
sets the value of the fill's CssParameter 'fill' as a simple color

Parameters:
color - color to be set

getOpacity

public double getOpacity(Feature feature)
                  throws FilterEvaluationException
Returns the (evaluated) value of the fill's CssParameter 'fill-opacity'.

Parameters:
feature - specifies the Feature to be used for evaluation of the underlying 'sld:ParameterValueType'
Returns:
the (evaluated) value of the parameter
Throws:
FilterEvaluationException - if the evaluation fails or the value is invalid

setOpacity

public void setOpacity(double opacity)
sets the value of the opacity's CssParameter 'opacity' as a value. Valid values ranges from 0 .. 1. If a value < 0 is passed it will be set too 0. If a value > 1 is passed it will be set too 1.

Parameters:
opacity - opacity to be set