org.pentaho.reporting.engine.classic.core.layout.model
Class DefaultPageGrid

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.model.DefaultPageGrid
All Implemented Interfaces:
Cloneable, PageGrid

public class DefaultPageGrid
extends Object
implements PageGrid

Creation-Date: 05.04.2007, 16:15:32

Author:
Thomas Morgner

Constructor Summary
DefaultPageGrid(PageDefinition pageDefinition)
           
 
Method Summary
 Object clone()
           
 int getColumnCount()
           
 long[] getHorizontalBreaks()
           
 long getMaximumPageHeight()
           
 long getMaximumPageWidth()
           
 PhysicalPageBox getPage(int row, int col)
          In case of overlapping pageboxes, this method may return null.
 int getRowCount()
           
 long[] getVerticalBreaks()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPageGrid

public DefaultPageGrid(PageDefinition pageDefinition)
Method Detail

getPage

public PhysicalPageBox getPage(int row,
                               int col)
In case of overlapping pageboxes, this method may return null.

Specified by:
getPage in interface PageGrid
Parameters:
row -
col -
Returns:

getHorizontalBreaks

public long[] getHorizontalBreaks()
Specified by:
getHorizontalBreaks in interface PageGrid

getVerticalBreaks

public long[] getVerticalBreaks()

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface PageGrid

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface PageGrid

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface PageGrid
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getMaximumPageWidth

public long getMaximumPageWidth()

getMaximumPageHeight

public long getMaximumPageHeight()