deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.rendering.r2d
Class RenderHelper

java.lang.Object
  extended by 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 $

Constructor Summary
RenderHelper()
           
 
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
 

Constructor Detail

RenderHelper

public RenderHelper()
Method Detail

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 edges
skip - specifies, how to connect the edges
size -
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

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>