public class RtfFontList extends RtfElement implements RtfExtendedElement
Modifier and Type | Field and Description |
---|---|
static byte[] |
FONT_NUMBER
Constant for the font number
|
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Constructor and Description |
---|
RtfFontList(RtfDocument doc)
Creates a RtfFontList
|
Modifier and Type | Method and Description |
---|---|
int |
getFontNumber(RtfFont font)
Gets the index of the font in the list of fonts.
|
void |
writeContent(OutputStream out)
unused
|
void |
writeDefinition(OutputStream result)
Writes the definition of the font list
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setInHeader, setInTable, setRtfDocument
public RtfFontList(RtfDocument doc)
doc
- The RtfDocument this RtfFontList belongs topublic void writeContent(OutputStream out) throws IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
out
- The OutputStream
to write the content toIOException
public int getFontNumber(RtfFont font)
font
- The font to get the id forpublic void writeDefinition(OutputStream result) throws IOException
writeDefinition
in interface RtfExtendedElement
result
- The OutputStream
to write the element definition toIOException
Copyright © 2015. All rights reserved.