| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.graphics.optimizers.AbstractOptimizer
org.deegree.graphics.optimizers.LabelOptimizer
public class LabelOptimizer
Selects optimized Labels (graphical representations generated from LabelDisplayElements) that have a minimimal amount of overlapping.
The labeling and optimization approach uses ideas from papers by Ingo Petzold on automated label placement.
TODO: The handling of rotated labels is currently broken. Don't use rotated LabelDisplayElements with this optimizer at the moment!
| Field Summary | 
|---|
| Fields inherited from class org.deegree.graphics.optimizers.AbstractOptimizer | 
|---|
mapView, themes | 
| Constructor Summary | |
|---|---|
LabelOptimizer()
Creates a new instance of LabelOptimizer.  | 
|
LabelOptimizer(Theme[] themes)
Creates a new instance of LabelOptimizer for the given Themes.  | 
|
| Method Summary | |
|---|---|
 void | 
addTheme(Theme theme)
Adds a Theme that the Optimizer should consider.  | 
 void | 
optimize(Graphics2D g)
Finds optimized Label representations for the registered LabelDisplayElements.  | 
| Methods inherited from class org.deegree.graphics.optimizers.AbstractOptimizer | 
|---|
setMapView | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LabelOptimizer()
public LabelOptimizer(Theme[] themes)
themes - | Method Detail | 
|---|
public void addTheme(Theme theme)
addTheme in interface OptimizeraddTheme in class AbstractOptimizertheme - 
public void optimize(Graphics2D g)
              throws Exception
optimize in interface Optimizeroptimize in class AbstractOptimizerg - 
Exception
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net