deegree 2.1 (2007/11/08 09:57 build-328-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: 6796 $ $Date: 2007-05-03 17:16:23 +0200 (Do, 03 Mai 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.1 (2007/11/08 09:57 build-328-official)

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