org.deegree_impl.graphics.optimizers
Class LabelChoiceFactory

java.lang.Object
  extended byorg.deegree_impl.graphics.optimizers.LabelChoiceFactory

public class LabelChoiceFactory
extends java.lang.Object

Factory class for LabelChoice-objects.

Version:
$Revision: 1.4 $ $Date: 2004/03/12 15:56:47 $
Author:
Markus Schneider

Constructor Summary
LabelChoiceFactory()
           
 
Method Summary
(package private) static java.util.ArrayList createLabelChoices(GM_Curve curve, LabelDisplayElement element, java.awt.Graphics2D g, GeoTransform projection)
          Determines LabelChoices for the given GM_Curve where a Label could be drawn.
(package private) static java.util.ArrayList createLabelChoices(GM_MultiCurve multiCurve, LabelDisplayElement element, java.awt.Graphics2D g, GeoTransform projection)
          Determines LabelChoices for the given GM_MultiCurve where a Label could be drawn.
(package private) static java.util.ArrayList createLabelChoices(LabelDisplayElement element, java.awt.Graphics2D g, GeoTransform projection)
          Determines LabelChoices for the given LabelDisplayElement.
 
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 java.util.ArrayList createLabelChoices(LabelDisplayElement element,
                                              java.awt.Graphics2D g,
                                              GeoTransform projection)
Determines LabelChoices for the given LabelDisplayElement.

Parameters:
element -
g -
projection -
Returns:

createLabelChoices

static java.util.ArrayList createLabelChoices(GM_MultiCurve multiCurve,
                                              LabelDisplayElement element,
                                              java.awt.Graphics2D g,
                                              GeoTransform projection)
                                       throws FilterEvaluationException
Determines LabelChoices for the given GM_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 java.util.ArrayList createLabelChoices(GM_Curve curve,
                                              LabelDisplayElement element,
                                              java.awt.Graphics2D g,
                                              GeoTransform projection)
                                       throws FilterEvaluationException
Determines LabelChoices for the given GM_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