org.geotools.styling
Class PolygonSymbolizerImpl

Object
  extended by AbstractSymbolizer
      extended by PolygonSymbolizerImpl
All Implemented Interfaces:
Cloneable, PolygonSymbolizer, Symbolizer

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)
Module:
modules/library/main (gt-main.jar)

Field Summary
 
Fields inherited from class AbstractSymbolizer
description, geometry, name, unitOfMeasure
 
Constructor Summary
protected PolygonSymbolizerImpl()
          Creates a new instance of DefaultPolygonStyler
protected PolygonSymbolizerImpl(Stroke stroke, Fill fill, Displacement disp, Expression offset, Unit<Length> uom, String geom, String name, Description desc)
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 Object accept(StyleVisitor visitor, Object data)
          Accepts a StyleVisitor to perform some operation on this LineSymbolizer.
 Object clone()
          Creates a deep copy clone.
 boolean equals(Object obj)
           
 Displacement getDisplacement()
           
 Fill getFill()
          Provides the graphical-symbolization parameter to use to fill the area of the geometry.
 Expression getPerpendicularOffset()
           
 StrokeImpl getStroke()
          Provides the graphical-symbolization parameter to use for the outline of the Polygon.
 int hashCode()
           
 void setDisplacement(Displacement displacement)
           
 void setFill(Fill fill)
          Sets the graphical-symbolization parameter to use to fill the area of the geometry.
 void setPerpendicularOffset(Expression offset)
           
 void setStroke(Stroke stroke)
          Sets the graphical-symbolization parameter to use for the outline of the Polygon.
 
Methods inherited from class AbstractSymbolizer
getDescription, getGeometry, getGeometryPropertyName, getName, getUnitOfMeasure, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Symbolizer
getName, getUnitOfMeasure
 
Methods inherited from interface Symbolizer
getDescription, getGeometry, getGeometryPropertyName, setDescription, setGeometry, setGeometryPropertyName, setName, setUnitOfMeasure
 
Methods inherited from interface Symbolizer
getName, getUnitOfMeasure
 

Constructor Detail

PolygonSymbolizerImpl

protected PolygonSymbolizerImpl()
Creates a new instance of DefaultPolygonStyler


PolygonSymbolizerImpl

protected PolygonSymbolizerImpl(Stroke stroke,
                                Fill fill,
                                Displacement disp,
                                Expression offset,
                                Unit<Length> uom,
                                String geom,
                                String name,
                                Description desc)
Method Detail

getPerpendicularOffset

public Expression getPerpendicularOffset()
Specified by:
getPerpendicularOffset in interface PolygonSymbolizer

setPerpendicularOffset

public void setPerpendicularOffset(Expression offset)

getDisplacement

public Displacement getDisplacement()
Specified by:
getDisplacement in interface PolygonSymbolizer

setDisplacement

public void setDisplacement(Displacement displacement)

getFill

public Fill getFill()
Provides the graphical-symbolization parameter to use to fill the area of the geometry.

Specified by:
getFill in interface PolygonSymbolizer
Returns:
The Fill style to use when rendering the area.

setFill

public void setFill(Fill fill)
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.

getStroke

public StrokeImpl getStroke()
Provides the graphical-symbolization parameter to use for the outline of the Polygon.

Specified by:
getStroke in interface PolygonSymbolizer
Returns:
The Stroke style to use when rendering lines.

setStroke

public void setStroke(Stroke stroke)
Sets the graphical-symbolization parameter to use for the outline of the Polygon.

Parameters:
stroke - The Stroke style to use when rendering lines.

accept

public Object accept(StyleVisitor visitor,
                     Object data)
Accepts a StyleVisitor to perform some operation on this LineSymbolizer.

Specified by:
accept in interface PolygonSymbolizer
Specified by:
accept in interface Symbolizer
Parameters:
visitor - The visitor to accept.

accept

public void accept(StyleVisitor visitor)

clone

public Object clone()
Creates a deep copy clone. TODO: Need to complete the deep copy, currently only shallow copy.

Overrides:
clone in class Object
Returns:
The deep copy clone.
Throws:
RuntimeException - DOCUMENT ME!

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractSymbolizer

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractSymbolizer


Copyright © 1996-2010 Geotools. All Rights Reserved.