org.deegree.ogcwebservices.wms
Class GraphicContextFactory
java.lang.Object
org.deegree.ogcwebservices.wms.GraphicContextFactory
public class GraphicContextFactory
- extends Object
- Version:
- $Revision: 9345 $
- Author:
- Andreas Poth
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphicContextFactory
public GraphicContextFactory()
createGraphicTarget
public static Object createGraphicTarget(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 forwidth
- width of the desired target objectheight
- height of the desired target object
- Returns:
- object to render to
createGraphicContext
public static Graphics createGraphicContext(String mimeType,
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net