|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.record.Record
org.apache.poi.hslf.record.RecordContainer
org.apache.poi.hslf.record.FontCollection
public final class FontCollection
FontCollection
ia a container that holds information
about all the fonts in the presentation.
Method Summary | |
---|---|
int |
addFont(java.lang.String name)
Add font with the specified name to the font collection. |
int |
addFont(java.lang.String name,
int charset,
int flags,
int type,
int pitch)
|
int |
getFontIndex(java.lang.String name)
|
java.lang.String |
getFontWithId(int id)
Get the name of the font at the given ID, or null if there is no font at that ID. |
int |
getNumberOfFonts()
|
long |
getRecordType()
Return the type, which is 2005 |
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk |
Methods inherited from class org.apache.poi.hslf.record.RecordContainer |
---|
addChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, handleParentAwareRecords, isAnAtom, moveChildBefore, moveChildrenAfter, moveChildrenBefore, removeChild, setChildRecord, writeOut |
Methods inherited from class org.apache.poi.hslf.record.Record |
---|
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long getRecordType()
getRecordType
in class Record
public void writeOut(java.io.OutputStream out) throws java.io.IOException
writeOut
in class Record
java.io.IOException
public int addFont(java.lang.String name)
name
- of the font
public int addFont(java.lang.String name, int charset, int flags, int type, int pitch)
public int getFontIndex(java.lang.String name)
public int getNumberOfFonts()
public java.lang.String getFontWithId(int id)
id
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |