public class PrimaryGridUnit extends GridUnit
cell, collapsingBorderModel, FIRST_IN_PART, KEEP_WITH_NEXT_PENDING, KEEP_WITH_PREVIOUS_PENDING, LAST_IN_PART
Modifier and Type | Method and Description |
---|---|
void |
addRow(GridUnit[] row)
Add a row.
|
void |
createCellLM()
Creates a cellLM for the corresponding table-cell.
|
int |
getAfterBorderWidth(int which)
Returns the width of the before-after for the last row-span of this cell.
|
int |
getAfterBorderWidth(int rowIndex,
int which)
Returns the width of the before-after for the given row-span of this cell.
|
int |
getBeforeAfterBorderWidth()
Returns the widths of the border-before and -after for this cell.
|
int |
getBeforeBorderWidth(int rowIndex,
int which)
Returns the width of the before-border for the given row-span of this cell.
|
int |
getBreakAfter()
Returns the class of the before after for the last child element of this cell.
|
int |
getBreakBefore()
Returns the class of the before break for the first child element of this cell.
|
TableCellLayoutManager |
getCellLM()
Get cell's layout manager.
|
int |
getColIndex()
Returns the index of the column this grid unit belongs to.
|
int |
getContentLength() |
List |
getElements()
Obtain the Knuth elements.
|
Keep |
getKeepWithNext()
Returns the strength of the keep constraint if the last child block (or its descendants) of
this cell has keep-with-next.
|
Keep |
getKeepWithPrevious()
Returns the strength of the keep constraint if the first child block (or its descendants)
of this cell has keep-with-previous.
|
PrimaryGridUnit |
getPrimary()
Returns the before-start grid unit of the cell containing this grid unit.
|
int |
getRowIndex()
Returns the index of the row this grid unit belongs to.
|
List<GridUnit[]> |
getRows()
Returns the grid units belonging to the same span as this one.
|
int[] |
getStartEndBorderWidths()
Returns the widths of the start- and end-borders of the span this grid unit belongs
to.
|
TablePart |
getTablePart()
Returns the fo:table-header/footer/body element containing this cell.
|
boolean |
hasSpanning() |
boolean |
isPrimary()
Is this grid unit the before-start grid unit of the cell?
|
void |
setBreakAfter(int breakAfter)
Don't use, reserved for TableCellLM.
|
void |
setBreakBefore(int breakBefore)
Don't use, reserved for TableCellLM.
|
void |
setElements(List elements)
Sets the Knuth elements for the table cell containing this grid unit.
|
void |
setKeepWithNext(Keep keep)
Don't use, reserved for TableCellLM.
|
void |
setKeepWithPrevious(Keep keep)
Don't use, reserved for TableCellLM.
|
String |
toString() |
getBorderAfter, getBorderBefore, getBorderEnd, getBorderStart, getCell, getColSpanIndex, getFlag, getRow, getRowSpanIndex, isEmpty, isLastGridUnitColSpan, isLastGridUnitRowSpan, setBordersFromCell, setFlag, setFlag
public TablePart getTablePart()
public TableCellLayoutManager getCellLM()
public PrimaryGridUnit getPrimary()
getPrimary
in class GridUnit
public boolean isPrimary()
public void setElements(List elements)
elements
- a list of ListElement (?)public List getElements()
public int getBeforeAfterBorderWidth()
public int getBeforeBorderWidth(int rowIndex, int which)
rowIndex
- index of the span for which the border must be computed, 0-basedwhich
- one of ConditionalBorder.NORMAL
,
ConditionalBorder.LEADING_TRAILING
or ConditionalBorder.REST
public int getAfterBorderWidth(int rowIndex, int which)
rowIndex
- index of the span for which the border must be computed, 0-basedwhich
- one of ConditionalBorder.NORMAL
,
ConditionalBorder.LEADING_TRAILING
or ConditionalBorder.REST
public int getAfterBorderWidth(int which)
getAfterBorderWidth(int, int)
.which
- one of ConditionalBorder.NORMAL
,
ConditionalBorder.LEADING_TRAILING
or ConditionalBorder.REST
public int getContentLength()
public List<GridUnit[]> getRows()
public void addRow(GridUnit[] row)
row
- the row to be addedpublic int getRowIndex()
public int getColIndex()
public int[] getStartEndBorderWidths()
public boolean hasSpanning()
public void createCellLM()
public Keep getKeepWithPrevious()
public void setKeepWithPrevious(Keep keep)
keep
- the keep strengthpublic Keep getKeepWithNext()
public void setKeepWithNext(Keep keep)
keep
- the keep strengthpublic int getBreakBefore()
Constants.EN_AUTO
, Constants.EN_COLUMN
, Constants.EN_PAGE
, Constants.EN_EVEN_PAGE
, Constants.EN_ODD_PAGE
public void setBreakBefore(int breakBefore)
breakBefore
- the breakBefore to setpublic int getBreakAfter()
Constants.EN_AUTO
, Constants.EN_COLUMN
, Constants.EN_PAGE
, Constants.EN_EVEN_PAGE
, Constants.EN_ODD_PAGE
public void setBreakAfter(int breakAfter)
breakAfter
- the breakAfter to setCopyright © 2025 Apache Software Foundation. All rights reserved.