public class EffRow extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_IN_PART
Indicates that the row is the first in a table-body
|
static int |
LAST_IN_PART
Indicates that the row is the last in a table-body
|
Constructor and Description |
---|
EffRow(int index,
int bodyType,
List gridUnits)
Creates a new effective row instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getBodyType() |
int |
getBreakAfter()
Returns the break class for this row.
|
int |
getBreakBefore()
Returns the break class for this row.
|
MinOptMax |
getExplicitHeight() |
boolean |
getFlag(int which)
Returns a flag for this effective row.
|
GridUnit |
getGridUnit(int column)
Returns the grid unit at a given position.
|
List |
getGridUnits() |
MinOptMax |
getHeight()
Returns the calculated height for this EffRow, including the cells'
bpds/paddings/borders, and the table's border-separation.
|
int |
getIndex() |
Keep |
getKeepTogether()
Returns the keep-together strength for this element.
|
Keep |
getKeepWithNext()
Returns the strength of the keep constraint if the enclosing (if any) fo:table-row element
of this row, or if any of the cells ending on this row, have keep-with-next set.
|
Keep |
getKeepWithPrevious()
Returns the strength of the keep constraint if the enclosing (if any) fo:table-row element
of this row, or if any of the cells starting on this row, have keep-with-previous set.
|
TableRow |
getTableRow() |
GridUnit |
safelyGetGridUnit(int column)
Returns the grid unit at a given position.
|
void |
setExplicitHeight(MinOptMax mom)
Sets the height for this row that resulted from the explicit height properties specified
by the user.
|
void |
setHeight(MinOptMax mom)
Sets the calculated height for this EffRow, including everything (cells' bpds,
paddings, borders, and border-separation).
|
String |
toString() |
public static final int FIRST_IN_PART
public static final int LAST_IN_PART
public EffRow(int index, int bodyType, List gridUnits)
index
- index of the rowbodyType
- type of body (one of HEADER, FOOTER, BODY as found on TableRowIterator)gridUnits
- the grid units this row is made ofpublic int getIndex()
public int getBodyType()
public TableRow getTableRow()
public MinOptMax getHeight()
public void setHeight(MinOptMax mom)
mom
- the calculated heightpublic MinOptMax getExplicitHeight()
public void setExplicitHeight(MinOptMax mom)
mom
- the heightpublic List getGridUnits()
public GridUnit getGridUnit(int column)
column
- index of the grid unit in the row (zero based)public GridUnit safelyGetGridUnit(int column)
column
- index of the grid unit in the row (zero based)public boolean getFlag(int which)
which
- the requested flag (one of FIRST_IN_PART
or LAST_IN_PART
)public Keep getKeepWithPrevious()
public Keep getKeepWithNext()
public Keep getKeepTogether()
public int getBreakBefore()
Note: this method doesn't take into account break-before set on the enclosing fo:table-row element, if any, as it must be ignored if the row belongs to a group of spanned rows (see XSL-FO 1.1, 7.20.2).
Note: this works only after getNextKuthElements on the corresponding TableCellLM have been called!
Constants.EN_AUTO
, Constants.EN_COLUMN
, Constants.EN_PAGE
, Constants.EN_EVEN_PAGE
, Constants.EN_ODD_PAGE
public int getBreakAfter()
Note: this method doesn't take into account break-after set on the enclosing fo:table-row element, if any, as it must be ignored if the row belongs to a group of spanned rows (see XSL-FO 1.1, 7.20.1).
Note: this works only after getNextKuthElements on the corresponding TableCellLM have been called!
Constants.EN_AUTO
, Constants.EN_COLUMN
, Constants.EN_PAGE
, Constants.EN_EVEN_PAGE
, Constants.EN_ODD_PAGE
Copyright © 2025 Apache Software Foundation. All rights reserved.