org.molwind.chemical.view
Class ChemicalTileGenerator

java.lang.Object
  extended by org.molwind.chemical.view.ChemicalTileGenerator
All Implemented Interfaces:
TileGenerator

public class ChemicalTileGenerator
extends java.lang.Object
implements TileGenerator

ChemicalTileGenerator generates tiles containing chemical compounds.

Version:
1.0
Author:
Oliver Karch

Constructor Summary
ChemicalTileGenerator(ChemicalWorld chemicalWorld)
          Create a new tile generator based on the given chemical world.
 
Method Summary
 Tile generateTile(LayeredPosition position)
          Generates a tile from the given position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChemicalTileGenerator

public ChemicalTileGenerator(ChemicalWorld chemicalWorld)
Create a new tile generator based on the given chemical world.

Parameters:
chemicalWorld - the chemical world
Method Detail

generateTile

public Tile generateTile(LayeredPosition position)
                  throws TileException
Generates a tile from the given position.

Specified by:
generateTile in interface TileGenerator
Parameters:
position - the position
Returns:
a tile object represented by the given position
Throws:
TileException - is thrown upon tile error


Copyright © 2008-2010. All Rights Reserved.