|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTableCell
public class RtfTableCell
A cell in an RTF table, container for paragraphs, lists, etc.
Field Summary | |
---|---|
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 |
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement |
---|
attrib, parent, writer |
Method Summary | |
---|---|
int |
getHMerge()
|
RtfTableRow |
getRow()
Get the parent row. |
RtfTextrun |
getTextrun()
Returns the current RtfTextrun object. |
int |
getVMerge()
|
boolean |
isEmpty()
A table cell always contains "useful" content, as it is here to take some space in a row. |
RtfExternalGraphic |
newImage()
Start a new external graphic after closing current paragraph, list and table |
RtfList |
newList(RtfAttributes attrib)
Start a new list after closing current paragraph, list and table |
RtfParagraph |
newParagraph()
Start a new paragraph with default attributes after closing current paragraph, list and table |
RtfParagraph |
newParagraph(RtfAttributes attrs)
Start a new paragraph after closing current current paragraph, list and table |
RtfTable |
newTable(ITableColumnsInfo tc)
Start a new nested table after closing current paragraph, list and table |
RtfTable |
newTable(RtfAttributes attrs,
ITableColumnsInfo tc)
Start a new nested table after closing current paragraph, list and table |
void |
setHMerge(int mergeStatus)
Set horizontal cell merging status |
void |
setVMerge(int mergeStatus)
|
protected void |
writeRtfContent()
Overriden to avoid writing any it's a merged cell. |
protected void |
writeRtfPrefix()
Called before writeRtfContent; overriden to avoid writing any it's a merged cell. |
protected void |
writeRtfSuffix()
The "cell" control word marks the end of a cell |
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer |
---|
addChild, getChildCount, getChildren, okToWriteRtf, setChildren, setOptions, toString |
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement |
---|
close, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_CELL_WIDTH
public static final int NO_MERGE
public static final int MERGE_START
public static final int MERGE_WITH_PREVIOUS
Method Detail |
---|
public RtfParagraph newParagraph(RtfAttributes attrs) throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
attrs
- attributes of new RtfParagraph
java.io.IOException
- for I/O problemspublic RtfExternalGraphic newImage() throws java.io.IOException
newImage
in interface IRtfExternalGraphicContainer
java.io.IOException
- for I/O problemspublic RtfParagraph newParagraph() throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
java.io.IOException
- for I/O problemspublic RtfList newList(RtfAttributes attrib) throws java.io.IOException
newList
in interface IRtfListContainer
attrib
- attributes for new RtfList
java.io.IOException
- for I/O problemspublic RtfTable newTable(ITableColumnsInfo tc) throws java.io.IOException
newTable
in interface IRtfTableContainer
tc
- table column info for new RtfTable
java.io.IOException
- for I/O problemspublic RtfTable newTable(RtfAttributes attrs, ITableColumnsInfo tc) throws java.io.IOException
newTable
in interface IRtfTableContainer
attrs
- attributes of new RtfTabletc
- table column info for new RtfTable
java.io.IOException
- for I/O problemsprotected void writeRtfContent() throws java.io.IOException
writeRtfContent
in class RtfContainer
java.io.IOException
- for I/O problemsprotected void writeRtfPrefix() throws java.io.IOException
writeRtfPrefix
in class RtfElement
java.io.IOException
- for I/O problemsprotected void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException
- for I/O problemspublic void setVMerge(int mergeStatus)
mergeStatus
- vertical cell merging status to setpublic int getVMerge()
public void setHMerge(int mergeStatus)
mergeStatus
- mergeStatus to setpublic int getHMerge()
public boolean isEmpty()
isEmpty
in class RtfContainer
public RtfTextrun getTextrun() throws java.io.IOException
getTextrun
in interface IRtfTextrunContainer
java.io.IOException
- Thrown when an IO-problem occurspublic RtfTableRow getRow()
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |