org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfTableCell
- IRtfExternalGraphicContainer, IRtfListContainer, IRtfParagraphContainer, IRtfTableContainer, IRtfTextrunContainer
public class RtfTableCell
A cell in an RTF table, container for paragraphs, lists, etc.
- Bertrand Delacretaz bdelacretaz@codeconsult.ch
static int | DEFAULT_CELL_WIDTH - default cell width (in twips ??)
|
static int | MERGE_START - cell merging: this cell is the start of a range of merged cells
|
static int | MERGE_WITH_PREVIOUS - cell merging: this cell is part of (but not the start of) a range of merged cells
|
static int | NO_MERGE - cell merging: this cell is not merged
|
close , getRtfAttributes , isEmpty , newLine , okToWriteRtf , toString , writeAttributes , writeControlWord , writeControlWordNS , writeExceptionInRtf , writeGroupMark , writeOneAttribute , writeOneAttributeNS , writeRtf , writeRtfContent , writeRtfPrefix , writeRtfSuffix , writeStarControlWord , writeStarControlWordNS |
DEFAULT_CELL_WIDTH
public static final int DEFAULT_CELL_WIDTH
default cell width (in twips ??)
MERGE_START
public static final int MERGE_START
cell merging: this cell is the start of a range of merged cells
MERGE_WITH_PREVIOUS
public static final int MERGE_WITH_PREVIOUS
cell merging: this cell is part of (but not the start of) a range of merged cells
NO_MERGE
public static final int NO_MERGE
cell merging: this cell is not merged
getHMerge
public int getHMerge()
- horizontal cell merging status
getVMerge
public int getVMerge()
- vertical cell merging status
isEmpty
public boolean isEmpty()
A table cell always contains "useful" content, as it is here to take some
space in a row.
Use containsText() to find out if there is really some useful content in the cell.
TODO: containsText could use the original isEmpty implementation?
- isEmpty in interface RtfContainer
setHMerge
public void setHMerge(int mergeStatus)
Set horizontal cell merging status
mergeStatus
- mergeStatus to set
setVMerge
public void setVMerge(int mergeStatus)
mergeStatus
- vertical cell merging status to set
writeRtfContent
protected void writeRtfContent()
throws IOException
Overriden to avoid writing any it's a merged cell.
- writeRtfContent in interface RtfContainer
writeRtfPrefix
protected void writeRtfPrefix()
throws IOException
Called before writeRtfContent; overriden to avoid writing
any it's a merged cell.
- writeRtfPrefix in interface RtfElement
writeRtfSuffix
protected void writeRtfSuffix()
throws IOException
The "cell" control word marks the end of a cell
- writeRtfSuffix in interface RtfElement
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.