|
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 | |||||||||
public interface Optimizer
This is the interface for (graphical) Optimizers that need to alter the contents of Themes (e.g.
positions of display elements} before the parent MapView object is painted.
For example, the placements of LabelDisplayElements in a Theme may be optimized to minimize
overlapping using the LabelOptimizer.
| Method Summary | |
|---|---|
void |
addTheme(Theme theme)
Adds a Theme to be considered by this Optimizer. |
void |
optimize(java.awt.Graphics2D g)
Invokes the optimization process. |
void |
setMapView(MapView mapView)
Sets the associated MapView instance. |
| Method Detail |
|---|
void setMapView(MapView mapView)
MapView instance. This is needed to provide scale and projection information. Called
by the MapView.
mapView - MapView instance to associate with this Optimizervoid addTheme(Theme theme)
Theme to be considered by this Optimizer.
theme - Theme to be considered
void optimize(java.awt.Graphics2D g)
throws java.lang.Exception
Optimizer will now process and modify the contents of the attached
Themes.
g - graphis context that will be used to draw the optimized display elements
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