org.apache.fop.fo.flow
Class TableCell

java.lang.Object
  extended byorg.apache.fop.fo.FONode
      extended byorg.apache.fop.fo.FObj
          extended byorg.apache.fop.fo.flow.TableCell

public class TableCell
extends FObj


Nested Class Summary
static class TableCell.Maker
           
 
Field Summary
protected  int beforeOffset
          Offset of content rectangle, in block-progression-direction, relative to the row.
protected  int borderHeight
           
protected  boolean bRelativeAlign
           
protected  int height
           
protected  int minCellHeight
          Minimum ontent height of cell.
protected  int startAdjust
          Offset of content rectangle, in inline-progression-direction, relative to the column start edge.
protected  int startOffset
          Offset of content rectangle in inline-progression-direction, relative to table.
protected  int top
           
protected  int verticalAlign
           
protected  int width
          Dimension of allocation rectangle in inline-progression-direction, determined by the width of the column(s) occupied by the cell
protected  int widthAdjust
          Adjust to theoretical column width to obtain content width relative to the column start edge.
 
Fields inherited from class org.apache.fop.fo.FObj
column, line, properties, propMgr, systemId
 
Fields inherited from class org.apache.fop.fo.FONode
areaClass, areasGenerated, BREAK_AFTER, children, forcedStartOffset, forcedWidth, isInTableCell, linkSet, log, marker, parent, START
 
Constructor Summary
TableCell(FObj parent, PropertyList propertyList, java.lang.String systemId, int line, int column)
           
 
Method Summary
 void doSetup()
           
 int getColumnNumber()
           
 int getHeight()
          Return the allocation height of the cell area.
 java.lang.String getName()
          returns the name of the formatting object
 int getNumColumnsSpanned()
           
 int getNumRowsSpanned()
           
 int layout(Area area)
          generates the area or areas for this formatting object and adds these to the area.
static FObj.Maker maker()
           
 void setRowHeight(int h)
          Set the final size of cell content rectangles to the actual row height and to vertically align the actual content within the cell rectangle.
 void setStartOffset(int offset)
           
 void setWidth(int width)
           
 
Methods inherited from class org.apache.fop.fo.FObj
addCharacters, addMarker, end, generatesReferenceAreas, getContentWidth, getProperty, makePropertyManager, removeID, setWritingMode
 
Methods inherited from class org.apache.fop.fo.FONode
addChild, forceStartOffset, forceWidth, getLinkSet, getMarkerSnapshot, getParent, mayPrecedeMarker, removeAreas, resetMarker, rollback, setIsInTableCell, setLinkSet, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startOffset

protected int startOffset
Offset of content rectangle in inline-progression-direction, relative to table.


width

protected int width
Dimension of allocation rectangle in inline-progression-direction, determined by the width of the column(s) occupied by the cell


beforeOffset

protected int beforeOffset
Offset of content rectangle, in block-progression-direction, relative to the row.


startAdjust

protected int startAdjust
Offset of content rectangle, in inline-progression-direction, relative to the column start edge.


widthAdjust

protected int widthAdjust
Adjust to theoretical column width to obtain content width relative to the column start edge.


borderHeight

protected int borderHeight

minCellHeight

protected int minCellHeight
Minimum ontent height of cell.


height

protected int height

top

protected int top

verticalAlign

protected int verticalAlign

bRelativeAlign

protected boolean bRelativeAlign
Constructor Detail

TableCell

public TableCell(FObj parent,
                 PropertyList propertyList,
                 java.lang.String systemId,
                 int line,
                 int column)
          throws FOPException
Method Detail

maker

public static FObj.Maker maker()

getName

public java.lang.String getName()
Description copied from class: FObj
returns the name of the formatting object

Specified by:
getName in class FObj
Returns:
the name of this formatting objects

setStartOffset

public void setStartOffset(int offset)

setWidth

public void setWidth(int width)

getColumnNumber

public int getColumnNumber()

getNumColumnsSpanned

public int getNumColumnsSpanned()

getNumRowsSpanned

public int getNumRowsSpanned()

doSetup

public void doSetup()

layout

public int layout(Area area)
           throws FOPException
Description copied from class: FObj
generates the area or areas for this formatting object and adds these to the area. This method should always be overridden by all sub classes

Overrides:
layout in class FObj
Parameters:
area -
Throws:
FOPException

getHeight

public int getHeight()
Return the allocation height of the cell area. Note: called by TableRow. We adjust the actual allocation height of the area by the value of border separation (for separate borders) or border height adjustment for collapse style (because current scheme makes cell overestimate the allocation height).


setRowHeight

public void setRowHeight(int h)
Set the final size of cell content rectangles to the actual row height and to vertically align the actual content within the cell rectangle.

Parameters:
h - Height of this row in the grid which is based on the allocation height of all the cells in the row, including any border separation values.


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.