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 classprotected classprotected classprotected classprotected static classTabulator.SpanInfo<T extends DimensionEntry>protected classprotected class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTabulator(ExporterFilter filter, List<? extends JRPrintElement> elements, boolean isAccessibleHtml) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMargins(int width, int height) protected booleancanOverwrite(Cell existingCell, FrameCell currentParent) protected voidcollapseSpanColumns(Table table, DimensionRange<Column> range) protected voidcollapseSpanRows(Table table, DimensionRange<Row> range) protected ColumncolumnKey(int startCoord) protected voidcolumnSplit(Table table, Column splitCol, Column newCol) protected voidcreateLayeredCell(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) protected voidcreateOverlappedLayer(int xOffset, int yOffset, LayeredCell layeredCell, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) protected FrameCelldroppedParent(FrameCell existingParent, FrameCell parent) protected JRPrintElementgetCellElement(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 booleanprotected booleanprotected booleanisSplitCell(Cell spanned, Cell cell) protected voidlayoutElements(List<? extends JRPrintElement> elementList, Table table, FrameCell parentCell, PrintElementIndex parentIndex, int xOffset, int yOffset, Bounds elementBounds) protected voidlayoutFrame(Table table, FrameCell parentCell, int xOffset, int yOffset, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> elementColRange, DimensionRange<Row> elementRowRange, JRPrintFrame frame) protected voidmoveCellsToLayerTable(FrameCell parentCell, Table layerTable, DimensionRange<Column> colRange, DimensionRange<Row> rowRange) protected CelloverlapParentCell(Cell existingCell, FrameCell currentParent) protected booleanplaceElement(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, boolean allowOverlap) protected voidplaceInLayeredCell(int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, LayeredCell layeredCell, DimensionRange<Column> layeredColRange, DimensionRange<Row> layeredRowRange) protected voidplaceOverlappedElement(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, Bounds overlapBounds) protected RowrowKey(int startCoord) protected voidprotected voidsetElementCells(DimensionRange<Column> elementColRange, DimensionRange<Row> elementRowRange, Cell elementCell) protected voidsetElementCells(Table table, FrameCell parentCell, int xOffset, int yOffset, JRPrintElement element, PrintElementIndex parentIndex, int elementIndex, DimensionRange<Column> colRange, DimensionRange<Row> rowRange) voidtabulate()voidtabulate(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
-