|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.graphics.optimizers.AbstractOptimizer
public abstract class AbstractOptimizer
This is the abstract base class for Optimizers that need to alter the contents of Themes 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.
Field Summary | |
---|---|
protected MapView |
mapView
|
protected Set<Theme> |
themes
|
Constructor Summary | |
---|---|
AbstractOptimizer()
|
Method Summary | |
---|---|
void |
addTheme(Theme theme)
Adds a Theme that the Optimizer should consider. |
abstract void |
optimize(Graphics2D g)
Invokes the optimization process. |
void |
setMapView(MapView mapView)
Sets the associated MapView-instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Set<Theme> themes
protected MapView mapView
Constructor Detail |
---|
public AbstractOptimizer()
Method Detail |
---|
public void setMapView(MapView mapView)
setMapView
in interface Optimizer
mapView
- public void addTheme(Theme theme)
addTheme
in interface Optimizer
theme
- public abstract void optimize(Graphics2D g) throws Exception
optimize
in interface Optimizer
g
-
Exception
|
deegree 2.2 (2008/12/22 11:33 build-3038-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