org.deegree.rendering.r2d
Class RenderHelper
java.lang.Object
org.deegree.rendering.r2d.RenderHelper
public class RenderHelper
- extends Object
RenderHelper
- Version:
- $Revision: 22706 $, $Date: 2010-02-23 16:34:48 +0100 (Di, 23 Feb 2010) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Method Summary |
static Path2D.Double |
calculateStarPolygon(int edges,
int skip,
double size)
Example: calculateStarPolygon (5, 2) connects the first, third, fifth, second, fourth and again first edge in
that order. |
static Shape |
getShapeFromMark(Mark mark,
double size,
double rotation)
|
static Shape |
getShapeFromSvg(InputStream in,
String url)
|
static Shape |
getShapeFromSvg(String url,
double size,
double rotation)
|
static void |
renderMark(Mark mark,
int size,
UOM uom,
Java2DRenderer renderer,
double x,
double y,
double rotation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenderHelper
public RenderHelper()
calculateStarPolygon
public static Path2D.Double calculateStarPolygon(int edges,
int skip,
double size)
- Example: calculateStarPolygon (5, 2) connects the first, third, fifth, second, fourth and again first edge in
that order.
- Parameters:
edges
- the number of edgesskip
- specifies, how to connect the edgessize
-
- Returns:
- a general path that draws the star polygon by the rule
getShapeFromMark
public static Shape getShapeFromMark(Mark mark,
double size,
double rotation)
- Parameters:
mark
- size
- rotation
-
- Returns:
- a shape representing the mark
renderMark
public static void renderMark(Mark mark,
int size,
UOM uom,
Java2DRenderer renderer,
double x,
double y,
double rotation)
- Parameters:
mark
- size
- uom
- renderer
- x
- y
- rotation
-
getShapeFromSvg
public static Shape getShapeFromSvg(String url,
double size,
double rotation)
- Parameters:
url
- size
- rotation
-
- Returns:
- a shape object from the given svg
getShapeFromSvg
public static Shape getShapeFromSvg(InputStream in,
String url)
- Parameters:
in
- url
-
- Returns:
- a shape object
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>