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 class
TableBox.AutoTableLayout.Layout
-
Field Summary
Fields Modifier and Type Field Description private TableBox.AutoTableLayout.Layout[]
_layoutStruct
private java.util.List<TableCellBox>
_spanCells
private TableBox
_table
-
Constructor Summary
Constructors Constructor Description AutoTableLayout(TableBox table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private long
calcEffectiveWidth(LayoutContext c)
void
calcMinMaxWidth(LayoutContext c)
private void
fullRecalc(LayoutContext c)
protected TableBox.AutoTableLayout.Layout[]
getLayoutStruct()
protected int
getMinColWidth()
void
layout(LayoutContext c)
private void
recalcColumn(LayoutContext c, int effCol)
void
reset()
private boolean
shouldScaleColumns(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:
reset
in 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:
calcMinMaxWidth
in interfaceTableBox.TableLayout
-
layout
public void layout(LayoutContext c)
- Specified by:
layout
in interfaceTableBox.TableLayout
-
-