lib.tilers
Class AdaptiveRectangularTiler

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

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

Adaptive tiler finds its way on how to tile and split the given image. It will determine the best number of rows and columns in which to split the image.


Constructor Summary
AdaptiveRectangularTiler(int initialRows, int initialCols)
          Given the rows and columns tile the image.
 
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

AdaptiveRectangularTiler

public AdaptiveRectangularTiler(int initialRows,
                                int initialCols)
Given the rows and columns tile the image. Rows and columns will always be equal or more than the initial numbers given.

Parameters:
initialRows - the initial number of rows
initialCols - the initial number of columns
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