| java.lang.Object org.apache.fop.layoutmgr.table.EffRow
EffRow | class EffRow (Code) | | This class represents an effective row in a table and holds a list of grid units occupying
the row as well as some additional values.
|
Constructor Summary | |
public | EffRow(int index, int bodyType) Creates a new effective row instance. |
FIRST_IN_PART | final public static int FIRST_IN_PART(Code) | | Indicates that the row is the first in a table-body
|
LAST_IN_PART | final public static int LAST_IN_PART(Code) | | Indicates that the row is the last in a table-body
|
EffRow | public EffRow(int index, int bodyType)(Code) | | Creates a new effective row instance.
Parameters: index - index of the row Parameters: bodyType - type of body (one of HEADER, FOOTER, BODY as found on TableRowIterator) |
getBodyType | public int getBodyType()(Code) | | an indicator what type of body this EffRow is in (one of HEADER, FOOTER, BODY as found on TableRowIterator) |
getExplicitHeight | public MinOptMax getExplicitHeight()(Code) | | the explicit height of the EffRow (as specified through properties) |
getFlag | public boolean getFlag(int which)(Code) | | Returns a flag for this effective row. Only a subset of the flags on GridUnit is supported.
The flag is determined by inspecting flags on the EffRow's GridUnits.
Parameters: which - the requested flag (one of EffRow.FIRST_IN_PART or EffRow.LAST_IN_PART) true if the flag is set |
getGridUnit | public GridUnit getGridUnit(int column)(Code) | | Returns the grid unit at a given position.
Parameters: column - index of the grid unit in the row (zero based) the requested grid unit. |
getGridUnits | public List getGridUnits()(Code) | | the list of GridUnits for this EffRow |
getHeight | public MinOptMax getHeight()(Code) | | the calculated height for this EffRow. |
getIndex | public int getIndex()(Code) | | the index of the EffRow in the sequence of rows |
getTableRow | public TableRow getTableRow()(Code) | | the table-row FO for this EffRow, or null if there is no table-row. |
safelyGetGridUnit | public GridUnit safelyGetGridUnit(int column)(Code) | | Returns the grid unit at a given position. In contrast to getGridUnit() this
method returns null if there's no grid unit at the given position. The number of
grid units for row x can be smaller than the number of grid units for row x-1.
Parameters: column - index of the grid unit in the row (zero based) the requested grid unit or null if there's no grid unit at this position. |
setExplicitHeight | public void setExplicitHeight(MinOptMax mom)(Code) | | Sets the height for this row that resulted from the explicit height properties specified
by the user.
Parameters: mom - the height |
setFlagForAllGridUnits | public void setFlagForAllGridUnits(int flag, boolean value)(Code) | | Sets a flag on all grid units of this effective row.
Parameters: flag - which flag to set (on of the GridUnit.* constants) Parameters: value - new value for the flag |
setHeight | public void setHeight(MinOptMax mom)(Code) | | Sets the calculated height for this EffRow.
Parameters: mom - the calculated height |
|
|