public class PatchRtfCell
extends com.lowagie.text.Cell
implements com.lowagie.text.rtf.RtfExtendedElement
RtfBorder
BOTTOM, BOX, LEFT, NO_BORDER, RIGHT, TOP, UNDEFINED
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK
Constructor and Description |
---|
PatchRtfCell()
Constructs an empty PatchRtfCell
|
PatchRtfCell(com.lowagie.text.Element element)
Constructs a PatchRtfCell based upon an Element
|
PatchRtfCell(String content)
Constructs a PatchRtfCell based upon a String
|
Modifier and Type | Method and Description |
---|---|
float |
getMinimumHeight() |
boolean |
isDeleted()
Checks whether this PatchRtfCell is a placeholder for a table cell that has been removed due to col/row spanning.
|
boolean |
isInHeader()
Gets whether this
PatchRtfCell is in a header |
void |
setBorders(PatchRtfBorderGroup borderGroup)
Set the borders of this PatchRtfCell
|
void |
setInHeader(boolean inHeader)
Sets whether this PatchRtfCell is in a header
|
void |
setInTable(boolean inTable)
Unused
|
void |
setMinimumHeight(float minimumHeight) |
void |
setRtfDocument(com.lowagie.text.rtf.document.RtfDocument doc)
Sets the RtfDocument this PatchRtfCell belongs to
|
void |
writeContent(OutputStream result)
Write the content of this PatchRtfCell
|
void |
writeDefinition(OutputStream result)
Write the cell definition part of this PatchRtfCell
|
add, addElement, bottom, clear, createPdfPCell, getBottom, getChunks, getColspan, getElements, getGroupChange, getHorizontalAlignment, getLeading, getLeft, getMaxLines, getRight, getRowspan, getShowTruncation, getTop, getVerticalAlignment, getWidth, getWidthAsString, isEmpty, isHeader, isTable, isUseAscender, isUseBorderPadding, isUseDescender, left, process, right, setBottom, setColspan, setGroupChange, setHeader, setHorizontalAlignment, setHorizontalAlignment, setLeading, setLeft, setMaxLines, setRight, setRowspan, setShowTruncation, setTop, setUseAscender, setUseBorderPadding, setUseDescender, setVerticalAlignment, setVerticalAlignment, setWidth, setWidth, size, top, type
cloneNonPositionParameters, disableBorderSide, enableBorderSide, getBackgroundColor, getBorder, getBorderColor, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderWidth, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getBottom, getGrayFill, getHeight, getLeft, getRight, getRotation, getTop, hasBorder, hasBorders, isContent, isNestable, isUseVariableBorders, normalize, rectangle, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderColorBottom, setBorderColorLeft, setBorderColorRight, setBorderColorTop, setBorderWidth, setBorderWidthBottom, setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, setBottom, setGrayFill, setLeft, setRight, setTop, setUseVariableBorders, softCloneNonPositionParameters, toString
public PatchRtfCell()
public PatchRtfCell(String content)
content
- The String to base the PatchRtfCell onpublic PatchRtfCell(com.lowagie.text.Element element) throws com.lowagie.text.BadElementException
element
- The Element to base the PatchRtfCell oncom.lowagie.text.BadElementException
- If the Element is not validpublic void writeDefinition(OutputStream result) throws IOException
writeDefinition
in interface com.lowagie.text.rtf.RtfExtendedElement
IOException
public void writeContent(OutputStream result) throws IOException
writeContent
in interface com.lowagie.text.rtf.RtfBasicElement
IOException
public void setBorders(PatchRtfBorderGroup borderGroup)
borderGroup
- The PatchRtfBorderGroup to use as borderspublic void setRtfDocument(com.lowagie.text.rtf.document.RtfDocument doc)
setRtfDocument
in interface com.lowagie.text.rtf.RtfBasicElement
doc
- The RtfDocument to usepublic void setInTable(boolean inTable)
setInTable
in interface com.lowagie.text.rtf.RtfBasicElement
inTable
- public void setInHeader(boolean inHeader)
setInHeader
in interface com.lowagie.text.rtf.RtfBasicElement
inHeader
- True
if this PatchRtfCell is in a header, false
otherwisepublic boolean isInHeader()
PatchRtfCell
is in a headerTrue
if this PatchRtfCell
is in a header, false
otherwisepublic boolean isDeleted()
True
if this PatchRtfCell is deleted, false
otherwise.public float getMinimumHeight()
public void setMinimumHeight(float minimumHeight)