lib.tilers
Class SquarePixelTiler

java.lang.Object
  extended by lib.tilers.SquarePixelTiler
All Implemented Interfaces:
Tiler<java.awt.image.BufferedImage>

public class SquarePixelTiler
extends java.lang.Object
implements Tiler<java.awt.image.BufferedImage>

Square tiler. Given the pixels of a side of a block, it tiles the image into as many blocks can fit. This is a wrapper class around RectangularPixelTiler

See Also:
RectangularPixelTiler

Constructor Summary
SquarePixelTiler(int blockside)
           
 
Method Summary
 java.util.ArrayList<java.awt.image.BufferedImage> tile(java.awt.image.BufferedImage image)
          Tile the given object according
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SquarePixelTiler

public SquarePixelTiler(int blockside)
Parameters:
blockside - the pixels of each side of the block
Method Detail

tile

public java.util.ArrayList<java.awt.image.BufferedImage> tile(java.awt.image.BufferedImage image)
Description copied from interface: Tiler
Tile the given object according

Specified by:
tile in interface Tiler<java.awt.image.BufferedImage>
Parameters:
image - the object to tile
Returns:
an array list holding the tiles of the object