| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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(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(Graphics2D g)
              throws 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
Exception
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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