|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.table.GridUnit
org.apache.fop.layoutmgr.table.PrimaryGridUnit
public class PrimaryGridUnit
This class represents a primary grid unit of a spanned cell. This is the "before-start" (top-left, usually) grid unit of the span.
Field Summary |
---|
Fields inherited from class org.apache.fop.layoutmgr.table.GridUnit |
---|
FIRST_IN_PART, FIRST_IN_TABLE, IN_FIRST_COLUMN, IN_LAST_COLUMN, KEEP_WITH_NEXT_PENDING, KEEP_WITH_PREVIOUS_PENDING, LAST_IN_PART, LAST_IN_TABLE |
Constructor Summary | |
---|---|
PrimaryGridUnit(TableCell cell,
TableColumn column,
int startCol,
int startRow)
Creates a new primary grid unit. |
Method Summary | |
---|---|
void |
addRow(GridUnit[] row)
|
TableCellLayoutManager |
getCellLM()
|
int |
getContentLength()
|
java.util.LinkedList |
getElements()
|
int |
getHalfMaxAfterBorderWidth()
|
int |
getHalfMaxBeforeBorderWidth()
|
int |
getHalfMaxBorderWidth()
|
java.util.List |
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. |
int |
getStartRow()
Returns the index of the row this grid unit belongs to. |
boolean |
hasBPD()
|
boolean |
hasSpanning()
|
boolean |
isPrimary()
Is this grid unit the before-start grid unit of the cell? |
void |
setContentLength(int value)
|
void |
setElements(java.util.LinkedList elements)
Sets the Knuth elements for the table cell containing this grid unit. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.fop.layoutmgr.table.GridUnit |
---|
assignBorderForSeparateBorderModel, createNextRowSpanningGridUnit, getBody, getBorders, getCell, getColSpanIndex, getColumn, getFlag, getOriginalBorderInfoForCell, getPrimary, getRow, getRowSpanIndex, getStartCol, getTable, hasBorders, isEmpty, isLastGridUnitColSpan, isLastGridUnitRowSpan, resolveBorder, resolveBorder, setFlag, setRow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrimaryGridUnit(TableCell cell, TableColumn column, int startCol, int startRow)
cell
- table cell which occupies this grid unitcolumn
- table column this grid unit belongs tostartCol
- index of the column this grid unit belongs to, zero-basedstartRow
- index of the row this grid unit belongs to, zero-basedMethod Detail |
---|
public TableCellLayoutManager getCellLM()
public boolean isPrimary()
GridUnit
isPrimary
in class GridUnit
public void setElements(java.util.LinkedList elements)
elements
- a list of ListElement (?)public java.util.LinkedList getElements()
public int getHalfMaxBeforeBorderWidth()
public int getHalfMaxAfterBorderWidth()
public int getHalfMaxBorderWidth()
public void setContentLength(int value)
value
- The length of the cell content to remember.public int getContentLength()
public boolean hasBPD()
public java.util.List getRows()
public void addRow(GridUnit[] row)
public int getStartRow()
public int[] getStartEndBorderWidths()
public java.lang.String toString()
toString
in class GridUnit
Object.toString()
public boolean hasSpanning()
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |