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

org.deegree.ogcwebservices.wms
Class GraphicContextFactory

java.lang.Object
  extended by org.deegree.ogcwebservices.wms.GraphicContextFactory

public class GraphicContextFactory
extends java.lang.Object

Version:
$Revision: 18195 $
Author:
Andreas Poth

Constructor Summary
GraphicContextFactory()
           
 
Method Summary
static java.awt.Graphics createGraphicContext(java.lang.String mimeType, java.lang.Object target)
          creates a graphic context for the passed target considering the passed mime type
static java.lang.Object createGraphicTarget(java.lang.String mimeType, int width, int height)
          creates a graphic target object for the passed mime type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicContextFactory

public GraphicContextFactory()
Method Detail

createGraphicTarget

public static java.lang.Object createGraphicTarget(java.lang.String mimeType,
                                                   int width,
                                                   int height)
creates a graphic target object for the passed mime type. The target will be the object where to render the to. A BufferedImage for raster image mime types and a DOM Document for SVG.

Parameters:
mimeType - mime type to create a object for
width - width of the desired target object
height - height of the desired target object
Returns:
object to render to

createGraphicContext

public static java.awt.Graphics createGraphicContext(java.lang.String mimeType,
                                                     java.lang.Object target)
creates a graphic context for the passed target considering the passed mime type

Parameters:
mimeType - mime type of the graphic (target)
target - object to render to.
Returns:
graphic context of the target

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