deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.graphics.displayelements
Class DisplayElementFactory

java.lang.Object
  extended by org.deegree.graphics.displayelements.DisplayElementFactory

public class DisplayElementFactory
extends Object

Factory class for the different kinds of DisplayElements.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
DisplayElementFactory()
           
 
Method Summary
static DisplayElement buildDisplayElement(Object o)
          Builds a DisplayElement using the given Feature or GridCoverage and the default Symbolizer.
static DisplayElement buildDisplayElement(Object o, Symbolizer symbolizer)
          Builds a DisplayElement using the given Feature or GridCoverage and Symbolizer.
static LabelDisplayElement buildLabelDisplayElement(Feature feature, Geometry geom, TextSymbolizer sym)
          Creates a LabelDisplayElement using the given geometry and style information.
static LineStringDisplayElement buildLineStringDisplayElement(Feature feature, Geometry geom, LineSymbolizer sym)
          Creates a LineStringDisplayElement using the given geometry and style information.
static PointDisplayElement buildPointDisplayElement(Feature feature, Geometry geom, PointSymbolizer sym)
          Creates a PointDisplayElement using the given geometry and style information.
static PolygonDisplayElement buildPolygonDisplayElement(Feature feature, Geometry geom, PolygonSymbolizer sym)
          Creates a PolygonDisplayElement using the given geometry and style information.
static RasterDisplayElement buildRasterDisplayElement(GridCoverage gc, RasterSymbolizer sym)
          Creates a RasterDisplayElement from the given GridCoverage.
static RasterDisplayElement buildRasterDisplayElement(GridCoverage gc, RasterSymbolizer sym, GetMap request)
           
 DisplayElement[] createDisplayElement(Object o, UserStyle[] styles)
           
 DisplayElement[] createDisplayElement(Object o, UserStyle[] styles, GetMap request)
          Returns the display elements for a Feature or GridCoverage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayElementFactory

public DisplayElementFactory()
Method Detail

createDisplayElement

public DisplayElement[] createDisplayElement(Object o,
                                             UserStyle[] styles)
                                      throws ClassNotFoundException,
                                             IllegalAccessException,
                                             InstantiationException,
                                             NoSuchMethodException,
                                             InvocationTargetException,
                                             GeometryException,
                                             PropertyPathResolvingException
Parameters:
o -
styles -
Returns:
the display elements
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException
GeometryException
PropertyPathResolvingException

createDisplayElement

public DisplayElement[] createDisplayElement(Object o,
                                             UserStyle[] styles,
                                             GetMap request)
                                      throws ClassNotFoundException,
                                             IllegalAccessException,
                                             InstantiationException,
                                             NoSuchMethodException,
                                             InvocationTargetException,
                                             GeometryException,
                                             PropertyPathResolvingException
Returns the display elements for a Feature or GridCoverage.

Parameters:
o -
styles -
request -
Returns:
the display elements
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException
GeometryException
PropertyPathResolvingException

buildDisplayElement

public static DisplayElement buildDisplayElement(Object o,
                                                 Symbolizer symbolizer)
                                          throws IncompatibleGeometryTypeException,
                                                 ClassNotFoundException,
                                                 IllegalAccessException,
                                                 InstantiationException,
                                                 NoSuchMethodException,
                                                 InvocationTargetException,
                                                 GeometryException,
                                                 PropertyPathResolvingException
Builds a DisplayElement using the given Feature or GridCoverage and Symbolizer.

Parameters:
o - contains the geometry or raster information (Feature or GridCoverage)
symbolizer - contains the drawing (style) information and selects the geometry property of the Feature to be drawn
Returns:
constructed DisplayElement
Throws:
IncompatibleGeometryTypeException - if the selected geometry of the Feature is not compatible with the Symbolizer
ClassNotFoundException
IllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException
GeometryException
PropertyPathResolvingException

buildDisplayElement

public static DisplayElement buildDisplayElement(Object o)
                                          throws IncompatibleGeometryTypeException,
                                                 ClassNotFoundException,
                                                 IllegalAccessException,
                                                 InstantiationException,
                                                 NoSuchMethodException,
                                                 InvocationTargetException,
                                                 GeometryException
Builds a DisplayElement using the given Feature or GridCoverage and the default Symbolizer.

Parameters:
o - contains the geometry or raster information (Feature or GridCoverage)
Returns:
constructed DisplayElement
Throws:
IncompatibleGeometryTypeException - if the selected geometry of the Feature is not compatible with the Symbolizer
ClassNotFoundException
IllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException
GeometryException

buildPointDisplayElement

public static PointDisplayElement buildPointDisplayElement(Feature feature,
                                                           Geometry geom,
                                                           PointSymbolizer sym)
                                                    throws ClassNotFoundException,
                                                           IllegalAccessException,
                                                           InstantiationException,
                                                           NoSuchMethodException,
                                                           InvocationTargetException
Creates a PointDisplayElement using the given geometry and style information.

Parameters:
feature - associated feature (source of the geometry information)
geom - geometry information
sym - style information
Returns:
constructed PointDisplayElement
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException

buildLineStringDisplayElement

public static LineStringDisplayElement buildLineStringDisplayElement(Feature feature,
                                                                     Geometry geom,
                                                                     LineSymbolizer sym)
                                                              throws IncompatibleGeometryTypeException,
                                                                     ClassNotFoundException,
                                                                     IllegalAccessException,
                                                                     InstantiationException,
                                                                     NoSuchMethodException,
                                                                     InvocationTargetException,
                                                                     GeometryException
Creates a LineStringDisplayElement using the given geometry and style information.

Parameters:
feature - associated feature (source of the geometry information)
geom - geometry information
sym - style information
Returns:
constructed LineStringDisplayElement
Throws:
IncompatibleGeometryTypeException - if the geometry property is not a Curve or MultiCurve
ClassNotFoundException
IllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException
GeometryException

buildPolygonDisplayElement

public static PolygonDisplayElement buildPolygonDisplayElement(Feature feature,
                                                               Geometry geom,
                                                               PolygonSymbolizer sym)
                                                        throws IncompatibleGeometryTypeException,
                                                               ClassNotFoundException,
                                                               IllegalAccessException,
                                                               InstantiationException,
                                                               NoSuchMethodException,
                                                               InvocationTargetException
Creates a PolygonDisplayElement using the given geometry and style information.

Parameters:
feature - associated feature (source of the geometry information)
geom - geometry information
sym - style information
Returns:
constructed PolygonDisplayElement
Throws:
IncompatibleGeometryTypeException - if the geometry property is not a Surface or MultiSurface
ClassNotFoundException
IllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException

buildLabelDisplayElement

public static LabelDisplayElement buildLabelDisplayElement(Feature feature,
                                                           Geometry geom,
                                                           TextSymbolizer sym)
                                                    throws IncompatibleGeometryTypeException,
                                                           ClassNotFoundException,
                                                           IllegalAccessException,
                                                           InstantiationException,
                                                           NoSuchMethodException,
                                                           InvocationTargetException
Creates a LabelDisplayElement using the given geometry and style information.

Parameters:
feature - associated feature (source of the geometry information and label caption)
geom - geometry information
sym - style information
Returns:
constructed LabelDisplayElement
Throws:
IncompatibleGeometryTypeException - if the geometry property is not a Point, a Surface or MultiSurface
ClassNotFoundException
IllegalAccessException
InstantiationException
NoSuchMethodException
InvocationTargetException

buildRasterDisplayElement

public static RasterDisplayElement buildRasterDisplayElement(GridCoverage gc,
                                                             RasterSymbolizer sym)
Creates a RasterDisplayElement from the given GridCoverage.

Parameters:
gc - grid coverage (source of the raster data)
sym - raster symbolizer
Returns:
RasterDisplayElement

buildRasterDisplayElement

public static RasterDisplayElement buildRasterDisplayElement(GridCoverage gc,
                                                             RasterSymbolizer sym,
                                                             GetMap request)
Parameters:
gc -
sym -
request -
Returns:
the new raster display element

deegree 2.3 (2010/04/09 10:10 build-4-official)

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