deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.graphics.optimizers
Interface Optimizer

All Known Implementing Classes:
AbstractOptimizer, LabelOptimizer, OptimizerChain

public interface Optimizer

This is the general interface 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.

Version:
$Revision: 9340 $ $Date: 2007-12-27 13:32:12 +0100 (Do, 27 Dez 2007) $
Author:
Markus Schneider

Method Summary
 void addTheme(Theme theme)
          Adds a Theme that the Optimizer should consider.
 void optimize(Graphics2D g)
          Invokes the optimization process.
 void setMapView(MapView mapView)
          Sets the associated MapView-instance.
 

Method Detail

setMapView

void setMapView(MapView mapView)
Sets the associated MapView-instance. Is needed for the scale and projection information. Called by the MapView.

Parameters:
mapView -

addTheme

void addTheme(Theme theme)
Adds a Theme that the Optimizer should consider.

Parameters:
theme -

optimize

void optimize(Graphics2D g)
              throws Exception
Invokes the optimization process. The Optimizer will now process and modify the contents of the attached Themes.

Parameters:
g -
Throws:
Exception

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net