org.molwind.chemical.view
Class ChemicalTile

java.lang.Object
  extended by org.molwind.view.AbstractTile
      extended by org.molwind.chemical.view.ChemicalTile
All Implemented Interfaces:
Tile

public class ChemicalTile
extends AbstractTile

ChemicalTile contains chemical entities and allows to visualize them.

Version:
1.0
Author:
Oliver Karch

Constructor Summary
ChemicalTile(LayeredPosition position)
          Creates a new tile containing chemical entities.
 
Method Summary
 java.io.File getTempDir()
          Get the TempDir value.
 java.lang.String getWorldName()
          Get the WorldName value.
 void setTempDir(java.io.File newTempDir)
          Set the TempDir value.
 void setWorldName(java.lang.String newWorldName)
          Set the WorldName value.
 void writeTo(java.io.OutputStream output)
          Writes the tile's image to the given output stream.
 
Methods inherited from class org.molwind.view.AbstractTile
addEntities, getEmptyImage, getEntityCount, getEntityIterator, getImageType, getPosition, setImageType, setPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChemicalTile

public ChemicalTile(LayeredPosition position)
Creates a new tile containing chemical entities.

Parameters:
position - the position of the tile
Method Detail

getWorldName

public java.lang.String getWorldName()
Get the WorldName value.

Returns:
the WorldName value

setWorldName

public void setWorldName(java.lang.String newWorldName)
Set the WorldName value.

Parameters:
newWorldName - the new WorldName value

getTempDir

public java.io.File getTempDir()
                        throws java.io.IOException
Get the TempDir value.

Returns:
the TempDir value
Throws:
java.io.IOException - is thrown upon i/o error

setTempDir

public void setTempDir(java.io.File newTempDir)
Set the TempDir value.

Parameters:
newTempDir - the new TempDir value

writeTo

public void writeTo(java.io.OutputStream output)
             throws java.io.IOException
Writes the tile's image to the given output stream.

Specified by:
writeTo in interface Tile
Specified by:
writeTo in class AbstractTile
Parameters:
output - the output stream
Throws:
java.io.IOException - is thrown upon i/o error


Copyright © 2008-2010. All Rights Reserved.