Package com.openhtmltopdf.newtable
Class TableBox.AutoTableLayout
- java.lang.Object
-
- com.openhtmltopdf.newtable.TableBox.AutoTableLayout
-
- All Implemented Interfaces:
TableBox.TableLayout
- Direct Known Subclasses:
TableBox.MarginTableLayout
- Enclosing class:
- TableBox
private static class TableBox.AutoTableLayout extends java.lang.Object implements TableBox.TableLayout
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTableBox.AutoTableLayout.Layout
-
Field Summary
Fields Modifier and Type Field Description private TableBox.AutoTableLayout.Layout[]_layoutStructprivate java.util.List<TableCellBox>_spanCellsprivate TableBox_table
-
Constructor Summary
Constructors Constructor Description AutoTableLayout(TableBox table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private longcalcEffectiveWidth(LayoutContext c)voidcalcMinMaxWidth(LayoutContext c)private voidfullRecalc(LayoutContext c)protected TableBox.AutoTableLayout.Layout[]getLayoutStruct()protected intgetMinColWidth()voidlayout(LayoutContext c)private voidrecalcColumn(LayoutContext c, int effCol)voidreset()private booleanshouldScaleColumns(TableBox table)
-
-
-
Field Detail
-
_table
private final TableBox _table
-
_layoutStruct
private TableBox.AutoTableLayout.Layout[] _layoutStruct
-
_spanCells
private java.util.List<TableCellBox> _spanCells
-
-
Constructor Detail
-
AutoTableLayout
public AutoTableLayout(TableBox table)
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin interfaceTableBox.TableLayout
-
getLayoutStruct
protected TableBox.AutoTableLayout.Layout[] getLayoutStruct()
-
fullRecalc
private void fullRecalc(LayoutContext c)
-
getMinColWidth
protected int getMinColWidth()
-
recalcColumn
private void recalcColumn(LayoutContext c, int effCol)
-
calcEffectiveWidth
private long calcEffectiveWidth(LayoutContext c)
-
shouldScaleColumns
private boolean shouldScaleColumns(TableBox table)
-
calcMinMaxWidth
public void calcMinMaxWidth(LayoutContext c)
- Specified by:
calcMinMaxWidthin interfaceTableBox.TableLayout
-
layout
public void layout(LayoutContext c)
- Specified by:
layoutin interfaceTableBox.TableLayout
-
-