Class Tabulator
- java.lang.Object
-
- net.sf.jasperreports.engine.export.tabulator.Tabulator
-
public class Tabulator extends Object
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
Tabulator.CollapseCheck
protected class
Tabulator.ParentCheck
protected class
Tabulator.ParentDrop
protected class
Tabulator.SpanCheck
protected static class
Tabulator.SpanInfo<T extends DimensionEntry>
protected class
Tabulator.SpanRangeCheck
protected class
Tabulator.TableCellCreator
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_DROPPING_PARENT_ERROR
-
Constructor Summary
Constructors Constructor Description Tabulator(ExporterFilter filter, List<? extends JRPrintElement> elements, boolean isAccessibleHtml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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)
JRPrintElement
getCellElement(BaseElementCell cell)
protected Tabulator.SpanInfo<Column>
getColumnCellSpan(NavigableSet<Column> columns, Column column, Row row, Cell cell)
protected Tabulator.SpanInfo<Column>
getColumnCellSpan(TablePosition position, Cell cell)
protected Pair<Column,Column>
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)
protected Pair<Row,Row>
getRowSpanRange(Table table, Column col, Row row, Cell spanned)
Table
getTable()
TableCell
getTableCell(TablePosition position, Cell cell)
protected boolean
isParent(FrameCell parent, Cell child)
protected boolean
isParent(FrameCell parent, FrameCell child)
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
rowSplit(Table table, Row splitRow, Row newRow)
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 Detail
-
EXCEPTION_MESSAGE_KEY_DROPPING_PARENT_ERROR
public static final String EXCEPTION_MESSAGE_KEY_DROPPING_PARENT_ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Tabulator
public Tabulator(ExporterFilter filter, List<? extends JRPrintElement> elements, boolean isAccessibleHtml)
-
-
Method Detail
-
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)
-
getColumnSpanRange
protected Pair<Column,Column> getColumnSpanRange(Table table, Column col, Row row, Cell spanned)
-
getRowSpanRange
protected Pair<Row,Row> getRowSpanRange(Table table, Column col, Row row, Cell spanned)
-
moveCellsToLayerTable
protected void moveCellsToLayerTable(FrameCell parentCell, Table layerTable, DimensionRange<Column> colRange, DimensionRange<Row> rowRange)
-
collapseSpanColumns
protected void collapseSpanColumns(Table table, DimensionRange<Column> range)
-
collapseSpanRows
protected void collapseSpanRows(Table table, DimensionRange<Row> range)
-
setElementCells
protected void setElementCells(DimensionRange<Column> elementColRange, DimensionRange<Row> elementRowRange, Cell elementCell)
-
addMargins
public void addMargins(int width, int height)
-
columnKey
protected Column columnKey(int startCoord)
-
rowKey
protected Row rowKey(int startCoord)
-
getTable
public Table getTable()
-
getCellElement
public JRPrintElement getCellElement(BaseElementCell cell)
-
getCellElement
protected JRPrintElement getCellElement(PrintElementIndex parentIndex, int index)
-
getColumnCellSpan
protected Tabulator.SpanInfo<Column> getColumnCellSpan(TablePosition position, Cell cell)
-
getColumnCellSpan
protected Tabulator.SpanInfo<Column> getColumnCellSpan(NavigableSet<Column> columns, Column column, Row row, Cell cell)
-
getRowCellSpan
protected Tabulator.SpanInfo<Row> getRowCellSpan(TablePosition position, Cell cell)
-
getRowCellSpan
protected Tabulator.SpanInfo<Row> getRowCellSpan(NavigableSet<Row> rows, Column column, Row row, Cell cell)
-
getTableCell
public TableCell getTableCell(TablePosition position, Cell cell)
-
-