public class RtfImage extends RtfElement
Modifier and Type | Field and Description |
---|---|
static byte[] |
byte2charLUT
lookup table used for converting bytes to hex chars.
|
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Constructor and Description |
---|
RtfImage(RtfDocument doc,
Image image)
Constructs a RtfImage for an Image.
|
Modifier and Type | Method and Description |
---|---|
void |
setAlignment(int alignment)
Sets the alignment of this RtfImage.
|
void |
setTopLevelElement(boolean topLevelElement)
Set whether this RtfImage should behave like a top level element
and enclose itself in a paragraph.
|
void |
writeContent(OutputStream result)
Writes the RtfImage content
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
public static final byte[] byte2charLUT
public RtfImage(RtfDocument doc, Image image) throws DocumentException
doc
- The RtfDocument this RtfImage belongs toimage
- The Image that this RtfImage wrapsDocumentException
- If an error occurred accessing the image contentpublic void writeContent(OutputStream result) throws IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
result
- The OutputStream
to write the content toIOException
public void setAlignment(int alignment)
alignment
- The alignment to use.public void setTopLevelElement(boolean topLevelElement)
topLevelElement
- Whether to behave like a top level element.Copyright © 2015. All rights reserved.