|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.style.RtfFontList
public class RtfFontList
The RtfFontList stores the list of fonts used in the rtf document. It also has methods for writing this list to the document Version: $Id: RtfFontList.java 2776 2007-05-23 20:01:40Z hallm $
Field Summary | |
---|---|
private static byte[] |
DEFAULT_FONT
Constant for the default font |
static byte[] |
FONT_NUMBER
Constant for the font number |
private static byte[] |
FONT_TABLE
Constant for the font table |
private java.util.ArrayList |
fontList
The list of fonts |
Fields inherited from class com.lowagie.text.rtf.RtfElement |
---|
document, inHeader, inTable |
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
Constructor Summary | |
---|---|
RtfFontList(RtfDocument doc)
Creates a RtfFontList |
Method Summary | |
---|---|
int |
getFontNumber(RtfFont font)
Gets the index of the font in the list of fonts. |
byte[] |
write()
Deprecated. replaced by writeContent(OutputStream) |
void |
writeContent(java.io.OutputStream out)
unused |
byte[] |
writeDefinition()
Deprecated. replaced by writeDefinition(OutputStream) |
void |
writeDefinition(java.io.OutputStream result)
Writes the definition of the font list |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
setInHeader, setInTable, setRtfDocument |
Field Detail |
---|
private static final byte[] DEFAULT_FONT
private static final byte[] FONT_TABLE
public static final byte[] FONT_NUMBER
private java.util.ArrayList fontList
Constructor Detail |
---|
public RtfFontList(RtfDocument doc)
doc
- The RtfDocument this RtfFontList belongs toMethod Detail |
---|
public byte[] write()
writeContent(OutputStream)
write
in interface RtfBasicElement
write
in class RtfElement
public void writeContent(java.io.OutputStream out) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
java.io.IOException
public int getFontNumber(RtfFont font)
font
- The font to get the id for
public byte[] writeDefinition()
writeDefinition(OutputStream)
writeDefinition
in interface RtfExtendedElement
public void writeDefinition(java.io.OutputStream result) throws java.io.IOException
writeDefinition
in interface RtfExtendedElement
java.io.IOException
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |