org.deegree.graphics.optimizers
Interface Optimizer

All Known Implementing Classes:
AbstractOptimizer

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: 1.4 $ $Date: 2004/04/27 15:40:15 $
Author:
Markus Schneider

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

Method Detail

setMapView

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

Parameters:
mapView -

addTheme

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

Parameters:
theme -

optimize

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

Parameters:
g -