org.deegree_impl.graphics.sld
Class PolygonSymbolizer_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.sld.Symbolizer_Impl
      extended byorg.deegree_impl.graphics.sld.PolygonSymbolizer_Impl
All Implemented Interfaces:
Marshallable, PolygonSymbolizer, Symbolizer

public class PolygonSymbolizer_Impl
extends Symbolizer_Impl
implements PolygonSymbolizer, Marshallable

Used to render an interior "fill" and an outlining "stroke" for a polygon or other 2D-area geometry. If a point or line are used, the fill is ignored and the stroke is used as described in the LineSymbol. A missing Geometry element selects the default geometry. A missing Fill or Stroke element means that there will be no fill or stroke plotted, respectively. The contained elements are in the conceptual order of their being used and plotted using the "painters model", where the Fill will be rendered first, and then the Stroke will be rendered on top of the Fill.

----------------------------------------------------------------------

Version:
$Revision: 1.9 $ $Date: 2004/03/15 07:34:38 $
Author:
Katharina Lupp

Field Summary
private  Fill fill
           
private  Stroke stroke
           
 
Fields inherited from class org.deegree_impl.graphics.sld.Symbolizer_Impl
geometry, maxDenominator, minDenominator
 
Constructor Summary
  PolygonSymbolizer_Impl()
          Creates a new PolygonSymbolizer_Impl object.
(package private) PolygonSymbolizer_Impl(Fill fill, Stroke stroke, Geometry geometry, double min, double max)
          constructor initializing the class with the
 
Method Summary
 java.lang.String exportAsXML()
          exports the content of the PolygonSymbolizer as XML formated String
 Fill getFill()
          A Fill allows area geometries to be filled.
 Stroke getStroke()
          A Stroke allows a string of line segments (or any linear geometry) to be rendered.
 void setFill(Fill fill)
          sets the
 void setStroke(Stroke stroke)
          sets the
 java.lang.String toString()
          Produces a textual representation of this object.
 
Methods inherited from class org.deegree_impl.graphics.sld.Symbolizer_Impl
getGeometry, getMaxScaleDenominator, getMinScaleDenominator, setGeometry, setMaxScaleDenominator, setMinScaleDenominator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.graphics.sld.Symbolizer
getGeometry, getMaxScaleDenominator, getMinScaleDenominator, setGeometry, setMaxScaleDenominator, setMinScaleDenominator
 

Field Detail

fill

private Fill fill

stroke

private Stroke stroke
Constructor Detail

PolygonSymbolizer_Impl

public PolygonSymbolizer_Impl()
Creates a new PolygonSymbolizer_Impl object.


PolygonSymbolizer_Impl

PolygonSymbolizer_Impl(Fill fill,
                       Stroke stroke,
                       Geometry geometry,
                       double min,
                       double max)
constructor initializing the class with the

Method Detail

getFill

public Fill getFill()
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.

Specified by:
getFill in interface PolygonSymbolizer
Returns:
the fill of the polygon

setFill

public void setFill(Fill fill)
sets the

Specified by:
setFill in interface PolygonSymbolizer
Parameters:
fill - the fill of the polygon

getStroke

public Stroke getStroke()
A Stroke allows a string of line segments (or any linear geometry) to be rendered. There are three basic types of strokes: solid Color, GraphicFill (stipple), and repeated GraphicStroke. A repeated graphic is plotted linearly and has its graphic symbol bended around the curves of the line string. The default is a solid black line (Color "#000000").

Specified by:
getStroke in interface PolygonSymbolizer
Returns:
the stroke of the polygon

setStroke

public void setStroke(Stroke stroke)
sets the

Specified by:
setStroke in interface PolygonSymbolizer
Parameters:
stroke - the stroke of the polygon

toString

public java.lang.String toString()
Produces a textual representation of this object.

Returns:
the textual representation

exportAsXML

public java.lang.String exportAsXML()
exports the content of the PolygonSymbolizer as XML formated String

Specified by:
exportAsXML in interface Marshallable
Returns:
xml representation of the PolygonSymbolizer