| java.lang.Object org.deegree.graphics.sld.Drawing org.deegree.graphics.sld.Fill
Fill | public class Fill extends Drawing implements Marshallable(Code) | | 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.
author: Katharina Lupp author: Markus Schneider version: $Revision: 9340 $ $Date: 2007-12-27 04:32:12 -0800 (Thu, 27 Dec 2007) $ |
Method Summary | |
public String | exportAsXML() | public Color | getFill(Feature feature) Returns the (evaluated) value of the fill's CssParameter 'fill'. | public double | getOpacity(Feature feature) Returns the (evaluated) value of the fill's CssParameter 'fill-opacity'. | public void | setFill(Color color) | public void | setOpacity(double opacity) sets the value of the opacity's CssParameter 'opacity' as a value. |
FILL_DEFAULT | final public static Color FILL_DEFAULT(Code) | | |
OPACITY_DEFAULT | final public static double OPACITY_DEFAULT(Code) | | |
Fill | protected Fill()(Code) | | Constructs a new Fill.
|
exportAsXML | public String exportAsXML()(Code) | | exports the content of the CssParameter as XML formated String
xml representation of the CssParameter |
getFill | public Color getFill(Feature feature) throws FilterEvaluationException(Code) | | 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' the (evaluated) value of the parameter throws: FilterEvaluationException - if the evaluation fails or the value is invalid |
getOpacity | public double getOpacity(Feature feature) throws FilterEvaluationException(Code) | | 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' the (evaluated) value of the parameter throws: FilterEvaluationException - if the evaluation fails or the value is invalid |
setFill | public void setFill(Color color)(Code) | | sets the value of the fill's CssParameter 'fill' as a simple color
Parameters: color - color to be set |
setOpacity | public void setOpacity(double opacity)(Code) | | 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 to 0. If a value > 1 is passed it will be set to
1.
Parameters: opacity - opacity to be set |
|
|