Package org.apache.fop.layoutmgr.table
Class TableContentLayoutManager
java.lang.Object
org.apache.fop.layoutmgr.table.TableContentLayoutManager
- All Implemented Interfaces:
PercentBaseContext
Layout manager for table contents, particularly managing the creation of combined element lists.
-
Method Summary
Modifier and TypeMethodDescriptionint
getBaseLength
(int lengthBase, FObj fobj) Returns the base length for the given length base.protected LinkedList
protected int
protected LinkedList
protected int
getNextKnuthElements
(LayoutContext context, int alignment) Get a sequence of KnuthElements representing the content of the node assigned to the LM.protected int
getXOffsetOfGridUnit
(int colIndex, int nrColSpan) Returns the X offset of the grid unit in the given column.protected int
Returns the X offset of the given grid unit.
-
Method Details
-
getHeaderNetHeight
protected int getHeaderNetHeight()- Returns:
- the net header height
-
getHeaderElements
- Returns:
- the header element list
-
getNextKnuthElements
Get a sequence of KnuthElements representing the content of the node assigned to the LM.- Parameters:
context
- the LayoutContext used to store layout informationalignment
- the desired text alignment- Returns:
- the list of KnuthElements
- See Also:
-
getXOffsetOfGridUnit
Returns the X offset of the given grid unit.- Parameters:
gu
- the grid unit- Returns:
- the requested X offset
-
getXOffsetOfGridUnit
protected int getXOffsetOfGridUnit(int colIndex, int nrColSpan) Returns the X offset of the grid unit in the given column.- Parameters:
colIndex
- the column index (zero-based)nrColSpan
- number columns spanned- Returns:
- the requested X offset
-
getBaseLength
Returns the base length for the given length base. Length base should be one of the constants defined inLengthBase
.- Specified by:
getBaseLength
in interfacePercentBaseContext
- Parameters:
lengthBase
- Indicates which type of the base length value is to be returnedfobj
- The FO object against which the percentage should be evaluated- Returns:
- The base length value of the given kind
-