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

org.deegree.graphics.optimizers
Class OptimizerChain

java.lang.Object
  extended by org.deegree.graphics.optimizers.AbstractOptimizer
      extended by org.deegree.graphics.optimizers.OptimizerChain
All Implemented Interfaces:
Optimizer

public class OptimizerChain
extends AbstractOptimizer

Allows the chaining of Optimizers. Does implement the Optimizer-interface as well.

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

Field Summary
 
Fields inherited from class org.deegree.graphics.optimizers.AbstractOptimizer
mapView, themes
 
Constructor Summary
OptimizerChain()
          Constructs a new empty OptimizerChain
OptimizerChain(AbstractOptimizer[] optimizers)
          Constructs a new OptimizerChain that contains the submitted Optimizer instances.
 
Method Summary
 void addOptimizer(AbstractOptimizer optimizer)
          Appends an Optimizer to the end of the processing chain.
 void optimize(Graphics2D g)
          Performs the optimization.
 
Methods inherited from class org.deegree.graphics.optimizers.AbstractOptimizer
addTheme, setMapView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimizerChain

public OptimizerChain()
Constructs a new empty OptimizerChain


OptimizerChain

public OptimizerChain(AbstractOptimizer[] optimizers)
Constructs a new OptimizerChain that contains the submitted Optimizer instances.

Parameters:
optimizers -
Method Detail

addOptimizer

public void addOptimizer(AbstractOptimizer optimizer)
Appends an Optimizer to the end of the processing chain.

Parameters:
optimizer -

optimize

public void optimize(Graphics2D g)
              throws Exception
Performs the optimization. Calls the optimize-method of all contained Optimizer instances subsequently.

Specified by:
optimize in interface Optimizer
Specified by:
optimize in class AbstractOptimizer
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