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

org.deegree.graphics.optimizers
Class LabelChoiceFactory

java.lang.Object
  extended by org.deegree.graphics.optimizers.LabelChoiceFactory

public class LabelChoiceFactory
extends Object

Factory class for LabelChoice-objects.

Version:
$Revision: 9340 $ $Date: 2007-12-27 13:32:12 +0100 (Do, 27 Dez 2007) $
Author:
Markus Schneider

Constructor Summary
LabelChoiceFactory()
           
 
Method Summary
(package private) static ArrayList<LabelChoice> createLabelChoices(Curve curve, LabelDisplayElement element, Graphics2D g, GeoTransform projection)
          Determines LabelChoices for the given Curve where a Label could be drawn.
(package private) static ArrayList<LabelChoice> createLabelChoices(LabelDisplayElement element, Graphics2D g, GeoTransform projection)
          Determines LabelChoices for the given LabelDisplayElement.
(package private) static ArrayList<LabelChoice> createLabelChoices(MultiCurve multiCurve, LabelDisplayElement element, Graphics2D g, GeoTransform projection)
          Determines LabelChoices for the given MultiCurve where a Label could be drawn.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelChoiceFactory

public LabelChoiceFactory()
Method Detail

createLabelChoices

static ArrayList<LabelChoice> createLabelChoices(LabelDisplayElement element,
                                                 Graphics2D g,
                                                 GeoTransform projection)
Determines LabelChoices for the given LabelDisplayElement.

Parameters:
element -
g -
projection -
Returns:

createLabelChoices

static ArrayList<LabelChoice> createLabelChoices(MultiCurve multiCurve,
                                                 LabelDisplayElement element,
                                                 Graphics2D g,
                                                 GeoTransform projection)
                                          throws FilterEvaluationException
Determines LabelChoices for the given MultiCurve where a Label could be drawn. For each LabelChoice, three candidates are generated: one on the line, one above it and one below.

Parameters:
element -
g -
projection -
Returns:
ArrayList containing LabelChoice-objects
Throws:
FilterEvaluationException

createLabelChoices

static ArrayList<LabelChoice> createLabelChoices(Curve curve,
                                                 LabelDisplayElement element,
                                                 Graphics2D g,
                                                 GeoTransform projection)
                                          throws FilterEvaluationException
Determines LabelChoices for the given Curve where a Label could be drawn. For each LabelChoice, three candidates are generated: one on the line, one above it and one below.

Parameters:
curve -
element -
g -
projection -
Returns:
ArrayList containing LabelChoice-objects
Throws:
FilterEvaluationException

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