org.opengis.style
Interface Fill

All Known Subinterfaces:
Fill
All Known Implementing Classes:
FillImpl

@XmlElement(value="Fill")
public interface Fill

Indicates how the interior of polygons will be filled.

Since:
GeoAPI 2.2
Author:
Open Geospatial Consortium, Johann Sorel (Geomatys), Chris Dillard (SYS Technologies)

Method Summary
 Object accept(StyleVisitor visitor, Object extraData)
          calls the visit method of a StyleVisitor
 Expression getColor()
          Indicates the color to be used for solid-filling the interior of polygons.
 GraphicFill getGraphicFill()
          If this object is to be filled with tiled copies of an image, then returns a non-null Graphic that indicates what image should be drawn.
 Expression getOpacity()
          Indicates the opacity of the fill.
 

Method Detail

getGraphicFill

@XmlElement(value="GraphicFill")
GraphicFill getGraphicFill()
If this object is to be filled with tiled copies of an image, then returns a non-null Graphic that indicates what image should be drawn.

Returns:
Graphic object or null if no graphic pattern to use.

getColor

@XmlParameter(value="Fill")
Expression getColor()
Indicates the color to be used for solid-filling the interior of polygons. The format of the color is "#rrggbb" where rr, gg, and bb are two digit hexadecimal integers specify the red, green, and blue color intensities, repsectively. If null, the default color is 50% gray, "#808080".

Returns:
Expression : if null the color used shall be a 50% gray "#808080".

getOpacity

@XmlParameter(value="Opacity")
Expression getOpacity()
Indicates the opacity of the fill. This value must be a floating point number ranging from 0.0 to 1.0, where 0.0 means completely transparent and 1.0 means completely opaque. If null, the default value is 1.0, completely opaque.

Returns:
Expression : if null, value used shall be 1.0

accept

@Extension
Object accept(StyleVisitor visitor,
                        Object extraData)
calls the visit method of a StyleVisitor

Parameters:
visitor - the style visitor


Copyright © 1996-2014 Geotools. All Rights Reserved.