lib.tilers
Class RectangularTiler

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

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

Rectangle tiler. Given the rows and columns, it splits the image into rows x columns rectangles.


Constructor Summary
RectangularTiler(int rows, int cols)
           
 
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

RectangularTiler

public RectangularTiler(int rows,
                        int cols)
Parameters:
rows - the rows to tile the image
cols - the columns to tile the image
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