deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.graphics.sld
Class AbstractSymbolizer

java.lang.Object
  extended by org.deegree.graphics.sld.AbstractSymbolizer
All Implemented Interfaces:
Symbolizer
Direct Known Subclasses:
LineSymbolizer, PointSymbolizer, PolygonSymbolizer, RasterSymbolizer, TextSymbolizer

public abstract class AbstractSymbolizer
extends Object
implements Symbolizer

This is the basis of all symbolizers. It defines the method getGeometry that's common to all symbolizers.

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

Version:
$Revision: 9340 $ $Date: 2007-12-27 13:32:12 +0100 (Do, 27 Dez 2007) $
Author:
Katharina Lupp

Field Summary
protected  Geometry geometry
           
protected  double maxDenominator
           
protected  double minDenominator
           
protected  String responsibleClass
           
 
Constructor Summary
AbstractSymbolizer()
          default constructor
AbstractSymbolizer(Geometry geometry)
          constructor initializing the class with the
AbstractSymbolizer(Geometry geometry, String resonsibleClass)
          constructor initializing the class with the
 
Method Summary
 Geometry getGeometry()
          The Geometry element is optional and if it is absent then the default geometry property of the feature type that is used in the containing FeatureStyleType is used.
 double getMaxScaleDenominator()
          The ScaleDenominator-information is optional and determines whether a rule (and thus a Symbolizer) is a to be applied at a certain scale.
 double getMinScaleDenominator()
          The ScaleDenominator-information is optional and determines whether a rule (and thus a Symbolizer) is a to be applied at a certain scale.
 String getResponsibleClass()
          returns the name of a class that will be used for rendering the current symbolizer.
 void setGeometry(Geometry geometry)
          sets the
 void setMaxScaleDenominator(double maxDenominator)
          Sets the MaxScaleDenominator
 void setMinScaleDenominator(double minDenominator)
          Sets the MinScaleDenominator
 void setResponsibleClass(String responsibleClass)
          sets a class that will be used for rendering the current symbolizer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxDenominator

protected double maxDenominator

minDenominator

protected double minDenominator

geometry

protected Geometry geometry

responsibleClass

protected String responsibleClass
Constructor Detail

AbstractSymbolizer

AbstractSymbolizer()
default constructor


AbstractSymbolizer

AbstractSymbolizer(Geometry geometry)
constructor initializing the class with the


AbstractSymbolizer

AbstractSymbolizer(Geometry geometry,
                   String resonsibleClass)
constructor initializing the class with the

Method Detail

getGeometry

public Geometry getGeometry()
The Geometry element is optional and if it is absent then the default geometry property of the feature type that is used in the containing FeatureStyleType is used. The precise meaning of default geometry property is system-dependent. Most frequently, feature types will have only a single geometry property.

Specified by:
getGeometry in interface Symbolizer
Returns:
the geometry of the symbolizer

setGeometry

public void setGeometry(Geometry geometry)
sets the

Specified by:
setGeometry in interface Symbolizer
Parameters:
geometry - the geometry of the symbolizer

getMinScaleDenominator

public double getMinScaleDenominator()
Description copied from interface: Symbolizer
The ScaleDenominator-information is optional and determines whether a rule (and thus a Symbolizer) is a to be applied at a certain scale.

Specified by:
getMinScaleDenominator in interface Symbolizer
Returns:
the MinScaleDenominator

setMinScaleDenominator

public void setMinScaleDenominator(double minDenominator)
Description copied from interface: Symbolizer
Sets the MinScaleDenominator

Specified by:
setMinScaleDenominator in interface Symbolizer
Parameters:
minDenominator - the MinScaleDenominator

getMaxScaleDenominator

public double getMaxScaleDenominator()
Description copied from interface: Symbolizer
The ScaleDenominator-information is optional and determines whether a rule (and thus a Symbolizer) is a to be applied at a certain scale.

Specified by:
getMaxScaleDenominator in interface Symbolizer
Returns:
the MaxScaleDenominator

setMaxScaleDenominator

public void setMaxScaleDenominator(double maxDenominator)
Description copied from interface: Symbolizer
Sets the MaxScaleDenominator

Specified by:
setMaxScaleDenominator in interface Symbolizer
Parameters:
maxDenominator - the MaxScaleDenominator

getResponsibleClass

public String getResponsibleClass()
returns the name of a class that will be used for rendering the current symbolizer. This enables a user to define his own rendering class (DisplayElement) for a symbolizer to realize styles/renderings that can't be defined using SLD at the moment.
The returned class must extend org.deegree_impl.graphics.displayelements.GeometryDisplayElement_Impl
For default the method returns the deegree default class name for rendering the current symbolizer.

Returns:
the name of a class that will be used for rendering the current symbolizer.

setResponsibleClass

public void setResponsibleClass(String responsibleClass)
sets a class that will be used for rendering the current symbolizer. This enables a user to define his own rendering class (DisplayElement) for a symbolizer to realize styles/renderings that can't be defined using SLD at the moment.
The passed class must extend org.deegree_impl.graphics.displayelements.GeometryDisplayElement_Impl

Parameters:
responsibleClass -

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net