Class Tabulator
java.lang.Object
net.sf.jasperreports.engine.export.tabulator.Tabulator
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected class
protected class
protected class
protected static class
Tabulator.SpanInfo<T extends DimensionEntry>
protected class
protected class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTabulator
(ExporterFilter filter, List<? extends JRPrintElement> elements, boolean isAccessibleHtml) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMargins
(int width, int height) protected boolean
canOverwrite
(Cell existingCell, FrameCell currentParent) protected void
collapseSpanColumns
(Table table, DimensionRange<Column> range) protected void
collapseSpanRows
(Table table, DimensionRange<Row> range) protected Column
columnKey
(int startCoord) protected void
columnSplit
(Table table, Column splitCol, Column newCol) protected void
createLayeredCell
(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) protected void
createOverlappedLayer
(int xOffset, int yOffset, LayeredCell layeredCell, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) protected FrameCell
droppedParent
(FrameCell existingParent, FrameCell parent) protected JRPrintElement
getCellElement
(PrintElementIndex parentIndex, int index) protected Tabulator.SpanInfo
<Column> getColumnCellSpan
(NavigableSet<Column> columns, Column column, Row row, Cell cell) protected Tabulator.SpanInfo
<Column> getColumnCellSpan
(TablePosition position, Cell cell) getColumnSpanRange
(Table table, Column col, Row row, Cell spanned) protected Tabulator.SpanInfo
<Row> getRowCellSpan
(NavigableSet<Row> rows, Column column, Row row, Cell cell) protected Tabulator.SpanInfo
<Row> getRowCellSpan
(TablePosition position, Cell cell) getRowSpanRange
(Table table, Column col, Row row, Cell spanned) getTable()
getTableCell
(TablePosition position, Cell cell) protected boolean
protected boolean
protected boolean
isSplitCell
(Cell spanned, Cell cell) protected void
layoutElements
(List<? extends JRPrintElement> elementList, Table table, FrameCell parentCell, PrintElementIndex parentIndex, int xOffset, int yOffset, Bounds elementBounds) protected void
layoutFrame
(Table table, FrameCell parentCell, int xOffset, int yOffset, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> elementColRange, DimensionRange<Row> elementRowRange, JRPrintFrame frame) protected void
moveCellsToLayerTable
(FrameCell parentCell, Table layerTable, DimensionRange<Column> colRange, DimensionRange<Row> rowRange) protected Cell
overlapParentCell
(Cell existingCell, FrameCell currentParent) protected boolean
placeElement
(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, boolean allowOverlap) protected void
placeInLayeredCell
(int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, LayeredCell layeredCell, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) protected void
placeOverlappedElement
(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, Bounds overlapBounds) protected Row
rowKey
(int startCoord) protected void
protected void
setElementCells
(DimensionRange<Column> elementColRange, DimensionRange<Row> elementRowRange, Cell elementCell) protected void
setElementCells
(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> colRange, DimensionRange<Row> rowRange) void
tabulate()
void
tabulate
(int xOffset, int yOffset)
-
Field Details
-
EXCEPTION_MESSAGE_KEY_DROPPING_PARENT_ERROR
- See Also:
-
-
Constructor Details
-
Tabulator
public Tabulator(ExporterFilter filter, List<? extends JRPrintElement> elements, boolean isAccessibleHtml)
-
-
Method Details
-
tabulate
public void tabulate() -
tabulate
public void tabulate(int xOffset, int yOffset) -
layoutElements
protected void layoutElements(List<? extends JRPrintElement> elementList, Table table, FrameCell parentCell, PrintElementIndex parentIndex, int xOffset, int yOffset, Bounds elementBounds) -
placeElement
protected boolean placeElement(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, boolean allowOverlap) -
placeOverlappedElement
protected void placeOverlappedElement(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, Bounds overlapBounds) -
placeInLayeredCell
protected void placeInLayeredCell(int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, LayeredCell layeredCell, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) -
createLayeredCell
protected void createLayeredCell(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) -
createOverlappedLayer
protected void createOverlappedLayer(int xOffset, int yOffset, LayeredCell layeredCell, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) -
setElementCells
protected void setElementCells(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> colRange, DimensionRange<Row> rowRange) -
layoutFrame
protected void layoutFrame(Table table, FrameCell parentCell, int xOffset, int yOffset, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> elementColRange, DimensionRange<Row> elementRowRange, JRPrintFrame frame) -
canOverwrite
-
isParent
-
overlapParentCell
-
getColumnSpanRange
-
getRowSpanRange
-
moveCellsToLayerTable
protected void moveCellsToLayerTable(FrameCell parentCell, Table layerTable, DimensionRange<Column> colRange, DimensionRange<Row> rowRange) -
collapseSpanColumns
-
collapseSpanRows
-
setElementCells
protected void setElementCells(DimensionRange<Column> elementColRange, DimensionRange<Row> elementRowRange, Cell elementCell) -
addMargins
public void addMargins(int width, int height) -
columnKey
-
rowKey
-
columnSplit
-
rowSplit
-
isSplitCell
-
getTable
-
getCellElement
-
getCellElement
-
isParent
-
getColumnCellSpan
-
getRowCellSpan
-
droppedParent
-
getTableCell
-