public class ColumnSetup extends Object
Constructor and Description |
---|
ColumnSetup(Table table)
Main Constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
computeTableUnit(PercentBaseContext percentBaseContext,
int contentAreaIPD)
Works out the base unit for resolving proportional-column-width()
[p-c-w(x) = x * base_unit_ipd]
|
protected double |
computeTableUnit(TableLayoutManager tlm)
Works out the base unit for resolving proportional-column-width()
[p-c-w(x) = x * base_unit_ipd]
|
TableColumn |
getColumn(int index)
Returns a column.
|
int |
getColumnCount() |
int |
getSumOfColumnWidths(PercentBaseContext context)
Calculates the sum of all column widths.
|
int |
getXOffset(int col,
int nrColSpan,
PercentBaseContext context)
Determine the X offset of the indicated column, where this
offset denotes the left edge of the column irrespective of writing
mode.
|
Iterator |
iterator() |
String |
toString() |
public ColumnSetup(Table table)
table
- the table to construct this column setup forpublic TableColumn getColumn(int index)
index
- index of the column (1 is the first column)public int getColumnCount()
public Iterator iterator()
protected double computeTableUnit(TableLayoutManager tlm)
tlm
- the TableLayoutManagerpublic float computeTableUnit(PercentBaseContext percentBaseContext, int contentAreaIPD)
percentBaseContext
- the percent base context for relative valuescontentAreaIPD
- the IPD of the available content areapublic int getXOffset(int col, int nrColSpan, PercentBaseContext context)
col
- column index (1 is first column)nrColSpan
- number columns spanned (for calculating offset in rtl mode)context
- the context for percentage based calculationspublic int getSumOfColumnWidths(PercentBaseContext context)
context
- the context for percentage based calculationsCopyright © 2025 Apache Software Foundation. All rights reserved.