fop 0.92beta

org.apache.fop.layoutmgr.table
Class PrimaryGridUnit

java.lang.Object
  |
  +--org.apache.fop.layoutmgr.table.GridUnit
        |
        +--org.apache.fop.layoutmgr.table.PrimaryGridUnit

public class PrimaryGridUnit
extends GridUnit

This class represents a primary grid unit of a spanned cell.


Fields inherited from class org.apache.fop.layoutmgr.table.GridUnit
FIRST_IN_BODY, FIRST_IN_TABLE, IN_FIRST_COLUMN, IN_LAST_COLUMN, KEEP_WITH_NEXT_PENDING, KEEP_WITH_PREVIOUS_PENDING, LAST_IN_BODY, LAST_IN_TABLE
 
Constructor Summary
PrimaryGridUnit(TableCell cell, TableColumn column, int startCol, int startRow)
           
 
Method Summary
 void addRow(GridUnit[] row)
           
 TableCellLayoutManager getCellLM()
           
 int getContentLength()
           
 java.util.LinkedList getElements()
           
 int getHalfMaxAfterBorderWidth()
           
 int getHalfMaxBeforeBorderWidth()
           
 int getHalfMaxBorderWidth()
           
 java.util.List getRows()
           
 int[] getStartEndBorderWidths()
           
 int getStartRow()
           
 boolean hasBPD()
           
 boolean hasSpanning()
           
 boolean isPrimary()
           
 void setContentLength(int value)
           
 void setElements(java.util.LinkedList elements)
           
 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

PrimaryGridUnit

public PrimaryGridUnit(TableCell cell,
                       TableColumn column,
                       int startCol,
                       int startRow)
Method Detail

getCellLM

public TableCellLayoutManager getCellLM()

isPrimary

public boolean isPrimary()
Overrides:
isPrimary in class GridUnit

setElements

public void setElements(java.util.LinkedList elements)

getElements

public java.util.LinkedList getElements()

getHalfMaxBeforeBorderWidth

public int getHalfMaxBeforeBorderWidth()
Returns:
Returns the half the maximum before border width of this cell.

getHalfMaxAfterBorderWidth

public int getHalfMaxAfterBorderWidth()
Returns:
Returns the half the maximum after border width of this cell.

getHalfMaxBorderWidth

public int getHalfMaxBorderWidth()
Returns:
Returns the sum of half the maximum before and after border widths of this cell.

setContentLength

public void setContentLength(int value)
Parameters:
value - The length of the cell content to remember.

getContentLength

public int getContentLength()
Returns:
Returns the length of the cell content.

hasBPD

public boolean hasBPD()
Returns:
true if cell/row has an explicit BPD/height

getRows

public java.util.List getRows()

addRow

public void addRow(GridUnit[] row)

getStartRow

public int getStartRow()

getStartEndBorderWidths

public int[] getStartEndBorderWidths()

toString

public java.lang.String toString()
Overrides:
toString in class GridUnit
See Also:
Object.toString()

hasSpanning

public boolean hasSpanning()
Returns:
true if this cell spans over more than one grid unit.

fop 0.92beta

Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.