|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.reporting.engine.classic.core.modules.output.table.base.SheetLayout
public final class SheetLayout
The sheet layout is used to build the background map and to collect the x- and y-cell-borders.
Constructor Summary | |
---|---|
SheetLayout(boolean strict,
boolean ellipseAsRectangle)
Creates a new TableGrid-object. |
Method Summary | |
---|---|
boolean |
add(RenderBox element,
long shift)
Adds the bounds of the given TableCellData to the grid. |
void |
addRenderableContent(RenderableReplacedContentBox element,
long shift)
|
long |
getCellWidth(int startCell)
|
long |
getCellWidth(int startCell,
int endCell)
Computes the height of the given row. |
int |
getColSpan(int x1,
long endPosition)
|
int |
getColumnCount()
The current number of columns. |
long |
getMaxHeight()
|
long |
getMaxWidth()
|
int |
getRowCount()
The current number of rows. |
long |
getRowHeight(int row)
Computes the height of the given row. |
long |
getRowHeight(int startRow,
int endRow)
|
int |
getRowSpan(int y1,
long endPosition)
|
TableRectangle |
getTableBounds(long x,
long y,
long width,
long height,
TableRectangle rect)
Returns the position of the given element within the table. |
TableRectangle |
getTableBounds(StrictBounds bounds,
TableRectangle rect)
Returns the position of the given element within the table. |
TableRectangle |
getTableBoundsWithCache(long x,
long y,
long width,
long height,
TableRectangle rect)
|
long |
getXPosition(int col)
|
long |
getYPosition(int row)
|
boolean |
isEmpty()
|
boolean |
isStrict()
Gets the strict mode flag. |
void |
pageCompleted()
A Callback method to inform the sheet layout, that the current page is complete, and no more content will be added. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SheetLayout(boolean strict, boolean ellipseAsRectangle)
strict
- the strict mode for the layout.ellipseAsRectangle
- a flag that defines whether ellipse-objects are translated into rectangles and therefore
create backgrounds.Method Detail |
---|
public boolean add(RenderBox element, long shift)
element
- the position that should be added to the grid (might be null).shift
- the vertical shift which adjusts the visual position of the content.
NullPointerException
- if the bounds are nullpublic void addRenderableContent(RenderableReplacedContentBox element, long shift)
public boolean isStrict()
public boolean isEmpty()
public TableRectangle getTableBounds(long x, long y, long width, long height, TableRectangle rect)
x
- the element bounds for which the table bounds should be found.y
- the element bounds for which the table bounds should be found.width
- the element bounds for which the table bounds should be found.height
- the element bounds for which the table bounds should be found.rect
- the returned rectangle or null, if a new instance should be created
public TableRectangle getTableBoundsWithCache(long x, long y, long width, long height, TableRectangle rect)
public int getColSpan(int x1, long endPosition)
public int getRowSpan(int y1, long endPosition)
public TableRectangle getTableBounds(StrictBounds bounds, TableRectangle rect)
bounds
- the element bounds for which the table bounds should be found.rect
- the returned rectangle or null, if a new instance should be created
public void pageCompleted()
public long getRowHeight(int row)
row
- the row, for which the height should be computed.
IndexOutOfBoundsException
- if the row is invalid.public long getMaxHeight()
public long getMaxWidth()
public long getCellWidth(int startCell)
public long getCellWidth(int startCell, int endCell)
startCell
- the first cell in the rangeendCell
- the last cell included in the cell range
IndexOutOfBoundsException
- if the row is invalid.public long getRowHeight(int startRow, int endRow)
public int getColumnCount()
public int getRowCount()
public long getXPosition(int col)
public long getYPosition(int row)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |