| |
|
| java.lang.Object org.geotools.event.AbstractGTComponent org.geotools.styling.PolygonSymbolizerImpl
PolygonSymbolizerImpl | public class PolygonSymbolizerImpl extends AbstractGTComponent implements PolygonSymbolizer,Cloneable(Code) | | Provides a representation of a PolygonSymbolizer in an SLD Document. A
PolygonSymbolizer defines how a polygon geometry should be rendered.
author: James Macgill, CCG version: $Id: PolygonSymbolizerImpl.java 20703 2006-07-24 16:57:44Z jgarnett $ |
Method Summary | |
public void | accept(StyleVisitor visitor) Accepts a StyleVisitor to perform some operation on this LineSymbolizer. | public Object | clone() Creates a deep copy clone. | public boolean | equals(Object oth) Compares this PolygonSymbolizerImpl with another.
Two PolygonSymbolizerImpls are equal if they have the same
geometryProperty, fill and stroke.
Parameters: oth - the object to compare against. | public Fill | getFill() Provides the graphical-symbolization parameter to use to fill the area
of the geometry. | public String | getGeometryPropertyName() This property defines the geometry to be used for styling.
The property is optional and if it is absent (null) then the "default"
geometry property of the feature should be used. | public Stroke | getStroke() Provides the graphical-symbolization parameter to use for the outline of
the Polygon. | public int | hashCode() Generates a hashcode for the PolygonSymbolizerImpl. | public void | setFill(Fill fill) Sets the graphical-symbolization parameter to use to fill the area of
the geometry. | public void | setGeometryPropertyName(String name) Sets the GeometryPropertyName. | public void | setStroke(Stroke stroke) Sets the graphical-symbolization parameter to use for the outline of the
Polygon. |
PolygonSymbolizerImpl | protected PolygonSymbolizerImpl()(Code) | | Creates a new instance of DefaultPolygonStyler
|
accept | public void accept(StyleVisitor visitor)(Code) | | Accepts a StyleVisitor to perform some operation on this LineSymbolizer.
Parameters: visitor - The visitor to accept. |
clone | public Object clone()(Code) | | Creates a deep copy clone. TODO: Need to complete the deep copy,
currently only shallow copy.
The deep copy clone. throws: RuntimeException - DOCUMENT ME! |
equals | public boolean equals(Object oth)(Code) | | Compares this PolygonSymbolizerImpl with another.
Two PolygonSymbolizerImpls are equal if they have the same
geometryProperty, fill and stroke.
Parameters: oth - the object to compare against. true if oth is equal to this object. |
getFill | public Fill getFill()(Code) | | Provides the graphical-symbolization parameter to use to fill the area
of the geometry.
The Fill style to use when rendering the area. |
getGeometryPropertyName | public String getGeometryPropertyName()(Code) | | This property defines the geometry to be used for styling.
The property is optional and if it is absent (null) then the "default"
geometry property of the feature should be used. Geometry types other
than inherently area types can be used. If a line is used then the line
string is closed for filling (only) by connecting its end point to its
start point. The geometryPropertyName is the name of a geometry
property in the Feature being styled. Typically, features only have
one geometry so, in general, the need to select one is not required.
Note: this moves a little away from the SLD spec which provides an
XPath reference to a Geometry object, but does follow it in spirit.
String The name of the attribute in the feature being styledthat should be used. If null then the default geometry shouldbe used. |
getStroke | public Stroke getStroke()(Code) | | Provides the graphical-symbolization parameter to use for the outline of
the Polygon.
The Stroke style to use when rendering lines. |
hashCode | public int hashCode()(Code) | | Generates a hashcode for the PolygonSymbolizerImpl.
A hashcode. |
setFill | public void setFill(Fill fill)(Code) | | Sets the graphical-symbolization parameter to use to fill the area of
the geometry.
Parameters: fill - The Fill style to use when rendering the area. |
setStroke | public void setStroke(Stroke stroke)(Code) | | Sets the graphical-symbolization parameter to use for the outline of the
Polygon.
Parameters: stroke - The Stroke style to use when rendering lines. |
|
|
|