lib.tilers
Class RectangularPixelTiler

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

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

Rectangle tiler. Given the pixels in the x and y axis that a block must be, it tiles the image into as many blocks can fit.


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

Constructor Detail

RectangularPixelTiler

public RectangularPixelTiler(int blockwidth,
                             int blockheight)
Parameters:
blockwidth - the pixels each block will be in the x axle
blockheight - the pixels each block will be in the y axle
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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object