deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.graphics.displayelements
Class CurveWalker

java.lang.Object
  extended by org.deegree.graphics.displayelements.CurveWalker

 class CurveWalker
extends Object

Walks along a given curve and generates positions on the line string in regular intervals (i.e. a series of points on the line string with steps of the same distance).

Version:
$Revision: 9340 $, $Date: 2007-12-27 13:32:12 +0100 (Do, 27 Dez 2007) $
Author:
Constructor Summary
CurveWalker(Rectangle roi)
          Creates a new instance of CurveWalker.
 
Method Summary
(package private)  ArrayList<double[]> createPositions(int[][] pos, double width, boolean polygon)
          Determines positions on the given curve where a caption could be drawn.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurveWalker

CurveWalker(Rectangle roi)
Creates a new instance of CurveWalker. The region of interest (where positions are actually needed, because they are visible) is specified by the given Rectangle.

Parameters:
roi - region of interest (visibile area)
Method Detail

createPositions

ArrayList<double[]> createPositions(int[][] pos,
                                    double width,
                                    boolean polygon)
Determines positions on the given curve where a caption could be drawn. For each of these positions, three candidates are produced; one on the line, one above of it and one below.

Parameters:
pos -
width - distance between single positions
Returns:
ArrayList containing positions

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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