deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.graphics.displayelements
Class DisplayElementFactory

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

public class DisplayElementFactory
extends java.lang.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(java.lang.Object o)
          Builds a DisplayElement using the given Feature or GridCoverage and the default Symbolizer.
static DisplayElement buildDisplayElement(java.lang.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(java.lang.Object o, UserStyle[] styles)
           
 DisplayElement[] createDisplayElement(java.lang.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(java.lang.Object o,
                                             UserStyle[] styles)
                                      throws java.lang.ClassNotFoundException,
                                             java.lang.IllegalAccessException,
                                             java.lang.InstantiationException,
                                             java.lang.NoSuchMethodException,
                                             java.lang.reflect.InvocationTargetException,
                                             GeometryException,
                                             PropertyPathResolvingException
Parameters:
o -
styles -
Returns:
the display elements
Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
GeometryException
PropertyPathResolvingException

createDisplayElement

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

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

buildDisplayElement

public static DisplayElement buildDisplayElement(java.lang.Object o,
                                                 Symbolizer symbolizer)
                                          throws IncompatibleGeometryTypeException,
                                                 java.lang.ClassNotFoundException,
                                                 java.lang.IllegalAccessException,
                                                 java.lang.InstantiationException,
                                                 java.lang.NoSuchMethodException,
                                                 java.lang.reflect.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
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
GeometryException
PropertyPathResolvingException

buildDisplayElement

public static DisplayElement buildDisplayElement(java.lang.Object o)
                                          throws IncompatibleGeometryTypeException,
                                                 java.lang.ClassNotFoundException,
                                                 java.lang.IllegalAccessException,
                                                 java.lang.InstantiationException,
                                                 java.lang.NoSuchMethodException,
                                                 java.lang.reflect.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
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
GeometryException

buildPointDisplayElement

public static PointDisplayElement buildPointDisplayElement(Feature feature,
                                                           Geometry geom,
                                                           PointSymbolizer sym)
                                                    throws java.lang.ClassNotFoundException,
                                                           java.lang.IllegalAccessException,
                                                           java.lang.InstantiationException,
                                                           java.lang.NoSuchMethodException,
                                                           java.lang.reflect.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:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException

buildLineStringDisplayElement

public static LineStringDisplayElement buildLineStringDisplayElement(Feature feature,
                                                                     Geometry geom,
                                                                     LineSymbolizer sym)
                                                              throws IncompatibleGeometryTypeException,
                                                                     java.lang.ClassNotFoundException,
                                                                     java.lang.IllegalAccessException,
                                                                     java.lang.InstantiationException,
                                                                     java.lang.NoSuchMethodException,
                                                                     java.lang.reflect.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
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
GeometryException

buildPolygonDisplayElement

public static PolygonDisplayElement buildPolygonDisplayElement(Feature feature,
                                                               Geometry geom,
                                                               PolygonSymbolizer sym)
                                                        throws IncompatibleGeometryTypeException,
                                                               java.lang.ClassNotFoundException,
                                                               java.lang.IllegalAccessException,
                                                               java.lang.InstantiationException,
                                                               java.lang.NoSuchMethodException,
                                                               java.lang.reflect.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
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException

buildLabelDisplayElement

public static LabelDisplayElement buildLabelDisplayElement(Feature feature,
                                                           Geometry geom,
                                                           TextSymbolizer sym)
                                                    throws IncompatibleGeometryTypeException,
                                                           java.lang.ClassNotFoundException,
                                                           java.lang.IllegalAccessException,
                                                           java.lang.InstantiationException,
                                                           java.lang.NoSuchMethodException,
                                                           java.lang.reflect.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
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.reflect.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.5 (2011/06/29 09:44 build-8-official)

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