Package org.apache.fop.layoutmgr.table
Class TableContentPosition
- java.lang.Object
-
- org.apache.fop.layoutmgr.Position
-
- org.apache.fop.layoutmgr.table.TableContentPosition
-
class TableContentPosition extends Position
This class represents a Position specific to TableContentLayoutManager. Used for normal content cases.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List
cellParts
the list of CellParts making up this positionstatic int
FIRST_IN_ROWGROUP
The position is the first of the row group.protected int
flags
flags for the positionstatic int
LAST_IN_ROWGROUP
The position is the last of the row group.private EffRow
newPageRow
private EffRow
row
effective row this position belongs to
-
Constructor Summary
Constructors Modifier Constructor Description protected
TableContentPosition(LayoutManager lm, java.util.List cellParts, EffRow row)
Creates a new TableContentPosition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
generatesAreas()
boolean
getFlag(int which)
Returns a flag for this GridUnit.(package private) EffRow
getNewPageRow()
Position
getPosition()
Overridden by NonLeafPosition to return the Position of its child LM.(package private) EffRow
getRow()
(package private) TablePart
getTablePart()
void
setFlag(int which, boolean value)
Sets a flag on a GridUnit.(package private) void
setNewPageRow(EffRow newPageRow)
Sets the row corresponding to this position if it starts a new page.java.lang.String
toString()
-
Methods inherited from class org.apache.fop.layoutmgr.Position
getIndex, getLM, getLM, getPosition, getShortLMName, setIndex
-
-
-
-
Field Detail
-
FIRST_IN_ROWGROUP
public static final int FIRST_IN_ROWGROUP
The position is the first of the row group.- See Also:
- Constant Field Values
-
LAST_IN_ROWGROUP
public static final int LAST_IN_ROWGROUP
The position is the last of the row group.- See Also:
- Constant Field Values
-
cellParts
protected java.util.List cellParts
the list of CellParts making up this position
-
row
private EffRow row
effective row this position belongs to
-
flags
protected int flags
flags for the position
-
newPageRow
private EffRow newPageRow
-
-
Constructor Detail
-
TableContentPosition
protected TableContentPosition(LayoutManager lm, java.util.List cellParts, EffRow row)
Creates a new TableContentPosition.- Parameters:
lm
- applicable layout managercellParts
- the list of CellPart instancesrow
- effective row this position belongs to
-
-
Method Detail
-
setNewPageRow
void setNewPageRow(EffRow newPageRow)
Sets the row corresponding to this position if it starts a new page. In which case, if the delay mechanism is on, this is the delayed row that starts the page, and not the current row being extended.- Parameters:
newPageRow
- the row that will start the page if this position is the first one on that page
-
getNewPageRow
EffRow getNewPageRow()
-
getRow
EffRow getRow()
-
getTablePart
TablePart getTablePart()
-
getFlag
public boolean getFlag(int which)
Returns a flag for this GridUnit.- Parameters:
which
- the requested flag- Returns:
- the value of the flag
-
setFlag
public void setFlag(int which, boolean value)
Sets a flag on a GridUnit.- Parameters:
which
- the flag to setvalue
- the new value for the flag
-
generatesAreas
public boolean generatesAreas()
- Overrides:
generatesAreas
in classPosition
- Returns:
- true if generates areas
-
getPosition
public Position getPosition()
Description copied from class:Position
Overridden by NonLeafPosition to return the Position of its child LM.- Overrides:
getPosition
in classPosition
- Returns:
- a position or null
-
-