|
deegree 2.3 (2010/04/09 10:10 build-4-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 the optimal Labels (graphical representations generated from
LabelDisplayElements) with respect to the 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 with no associated Themes. |
|
LabelOptimizer(Theme[] themes)
Creates a new instance of LabelOptimizer for the given Themes. |
|
| Method Summary | |
|---|---|
void |
addTheme(Theme theme)
Adds a Theme to be considered by this Optimizer. |
void |
optimize(Graphics2D g)
Finds optimized Labels 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()
LabelOptimizer with no associated Themes.
public LabelOptimizer(Theme[] themes)
LabelOptimizer for the given Themes.
themes - | Method Detail |
|---|
public void addTheme(Theme theme)
OptimizerTheme to be considered by this Optimizer.
addTheme in interface OptimizeraddTheme in class AbstractOptimizertheme - Theme to be considered
public void optimize(Graphics2D g)
throws Exception
Labels for the registered LabelDisplayElements.
g -
Exception
|
deegree 2.3 (2010/04/09 10:10 build-4-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://www.deegree.org