Package org.geotools.styling
Class PolygonSymbolizerImpl
Object
AbstractSymbolizer
PolygonSymbolizerImpl
- All Implemented Interfaces:
- Cloneable,- PolygonSymbolizer,- Symbolizer,- Cloneable
public class PolygonSymbolizerImpl
extends AbstractSymbolizer
implements PolygonSymbolizer, Cloneable
Provides a representation of a PolygonSymbolizer in an SLD Document. A PolygonSymbolizer defines how a polygon
 geometry should be rendered.
- Author:
- James Macgill, CCG, Johann Sorel (Geomatys)
- 
Field SummaryFields inherited from class AbstractSymbolizerdescription, geometry, name, options, unitOfMeasureFields inherited from interface PolygonSymbolizerGRAPHIC_MARGIN_KEY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates a new instance of DefaultPolygonStylerprotectedPolygonSymbolizerImpl(Stroke stroke, Fill fill, Displacement disp, Expression offset, Unit<Length> uom, String geom, String name, Description desc) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept(StyleVisitor visitor) accept(TraversingStyleVisitor visitor, Object data) Accepts a StyleVisitor to perform some operation on this LineSymbolizer.clone()Creates a deep copy clone.booleanThe Displacement gives the X and Y displacements from the original geometry.getFill()Provides the graphical-symbolization parameter to use to fill the area of the geometry.PerpendicularOffset works as defined for LineSymbolizer, allowing to draw polygons smaller or larger than their actual geometry.Provides the graphical-symbolization parameter to use for the outline of the Polygon.inthashCode()voidsetDisplacement(Displacement displacement) Provide x / y offset in pixels used to crate shadows.voidSets the graphical-symbolization parameter to use to fill the area of the geometry.voidsetPerpendicularOffset(Expression offset) PerpendicularOffset works as defined for LineSymbolizer, allowing to draw polygons smaller or larger than their actual geometry.voidSets the graphical-symbolization parameter to use for the outline of the Polygon.Methods inherited from class AbstractSymbolizergetDescription, getGeometry, getGeometryPropertyName, getName, getOptions, getUnitOfMeasure, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasureMethods inherited from class Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SymbolizergetDescription, getGeometry, getGeometryPropertyName, getName, getOptions, getUnitOfMeasure, hasOption, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure
- 
Constructor Details- 
PolygonSymbolizerImplprotected PolygonSymbolizerImpl()Creates a new instance of DefaultPolygonStyler
- 
PolygonSymbolizerImplprotected PolygonSymbolizerImpl(Stroke stroke, Fill fill, Displacement disp, Expression offset, Unit<Length> uom, String geom, String name, Description desc) 
 
- 
- 
Method Details- 
getPerpendicularOffsetDescription copied from interface:PolygonSymbolizerPerpendicularOffset works as defined for LineSymbolizer, allowing to draw polygons smaller or larger than their actual geometry. The distance is in uoms and is positive to the outside of the polygon. Negative numbers mean drawing the polygon smaller. The default offset is 0.- Specified by:
- getPerpendicularOffsetin interface- PolygonSymbolizer
- Returns:
- Expression
 
- 
setPerpendicularOffsetDescription copied from interface:PolygonSymbolizerPerpendicularOffset works as defined for LineSymbolizer, allowing to draw polygons smaller or larger than their actual geometry.- Specified by:
- setPerpendicularOffsetin interface- PolygonSymbolizer
- Parameters:
- offset- Offset from the edge polygon positive outside; negative to the inside with a default of 0.
 
- 
getDisplacementDescription copied from interface:PolygonSymbolizerThe Displacement gives the X and Y displacements from the original geometry. This element may be used to avoid over-plotting of multiple PolygonSymbolizers for one geometry or supplying "shadows" of polygon gemeotries. The displacements are in units of pixels above and to the right of the point. The default displacement is X=0, Y=0.- Specified by:
- getDisplacementin interface- PolygonSymbolizer
- Returns:
- Displacement
 
- 
setDisplacementDescription copied from interface:PolygonSymbolizerProvide x / y offset in pixels used to crate shadows.- Specified by:
- setDisplacementin interface- PolygonSymbolizer
 
- 
getFillProvides the graphical-symbolization parameter to use to fill the area of the geometry.- Specified by:
- getFillin interface- PolygonSymbolizer
- Returns:
- The Fill style to use when rendering the area.
 
- 
setFillSets the graphical-symbolization parameter to use to fill the area of the geometry.- Specified by:
- setFillin interface- PolygonSymbolizer
- Parameters:
- fill- The Fill style to use when rendering the area.
 
- 
getStrokeProvides the graphical-symbolization parameter to use for the outline of the Polygon.- Specified by:
- getStrokein interface- PolygonSymbolizer
- Returns:
- The Stroke style to use when rendering lines.
 
- 
setStrokeSets the graphical-symbolization parameter to use for the outline of the Polygon.- Specified by:
- setStrokein interface- PolygonSymbolizer
- Parameters:
- stroke- The Stroke style to use when rendering lines.
 
- 
acceptAccepts a StyleVisitor to perform some operation on this LineSymbolizer.- Specified by:
- acceptin interface- PolygonSymbolizer
- Specified by:
- acceptin interface- Symbolizer
- Parameters:
- visitor- The visitor to accept.
- Returns:
- value produced
 
- 
accept- Specified by:
- acceptin interface- Symbolizer
 
- 
cloneCreates a deep copy clone. TODO: Need to complete the deep copy, currently only shallow copy.
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- AbstractSymbolizer
 
- 
equals- Overrides:
- equalsin class- AbstractSymbolizer
 
 
-