org.deegree.ogcwebservices.wms
Class GraphicContextFactory
java.lang.Object
org.deegree.ogcwebservices.wms.GraphicContextFactory
public class GraphicContextFactory
- extends java.lang.Object
- Version:
- $Revision: 18195 $
- Author:
- Andreas Poth
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 |
GraphicContextFactory
public GraphicContextFactory()
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 forwidth
- width of the desired target objectheight
- 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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org