|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.optimizers.AbstractOptimizer org.deegree.graphics.optimizers.LabelOptimizer
public class LabelOptimizer
Selects the optimal Label
s (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 LabelDisplayElement
s 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 Theme s. |
|
LabelOptimizer(Theme[] themes)
Creates a new instance of LabelOptimizer for the given Theme s. |
Method Summary | |
---|---|
void |
addTheme(Theme theme)
Adds a Theme to be considered by this Optimizer . |
void |
optimize(java.awt.Graphics2D g)
Finds optimized Label s for the registered LabelDisplayElement s. |
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 Theme
s.
public LabelOptimizer(Theme[] themes)
LabelOptimizer
for the given Theme
s.
themes
- Method Detail |
---|
public void addTheme(Theme theme)
Optimizer
Theme
to be considered by this Optimizer
.
addTheme
in interface Optimizer
addTheme
in class AbstractOptimizer
theme
- Theme
to be consideredpublic void optimize(java.awt.Graphics2D g) throws java.lang.Exception
Label
s for the registered LabelDisplayElement
s.
g
-
java.lang.Exception
|
deegree 2.5 (2011/06/29 09:44 build-8-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