|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jett.model.FontCache
public class FontCache
A FontCache is used internally to keep track of
Fonts. It defines and uses a string format for declaring
all possible font values that can be defined in a Font. Its
lifetime is meant to last only during a single transformation. When
created, it reads in all pre-existing Font information and
caches it for later reference.
| Constructor Summary | |
|---|---|
FontCache(org.apache.poi.ss.usermodel.Workbook workbook)
Constructs a FontCache on a Workbook. |
|
| Method Summary | |
|---|---|
void |
cacheFont(org.apache.poi.ss.usermodel.Font f)
Caches the given Font. |
int |
getNumEntries()
Returns the number of entries in this cache. |
org.apache.poi.ss.usermodel.Font |
retrieveFont(short fontBoldweight,
boolean fontItalic,
org.apache.poi.ss.usermodel.Color fontColor,
java.lang.String fontName,
short fontHeightInPoints,
byte fontUnderline,
boolean fontStrikeout,
int fontCharset,
short fontTypeOffset)
Retrieve a Font from the cache with the given
properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FontCache(org.apache.poi.ss.usermodel.Workbook workbook)
FontCache on a Workbook.
Caches all Fonts found within.
workbook - A Workbook.| Method Detail |
|---|
public int getNumEntries()
public org.apache.poi.ss.usermodel.Font retrieveFont(short fontBoldweight,
boolean fontItalic,
org.apache.poi.ss.usermodel.Color fontColor,
java.lang.String fontName,
short fontHeightInPoints,
byte fontUnderline,
boolean fontStrikeout,
int fontCharset,
short fontTypeOffset)
Font from the cache with the given
properties.
fontBoldweight - The font boldweight.fontItalic - Whether the font is italic.fontColor - The font color.fontName - The font name.fontHeightInPoints - The font height in points.fontUnderline - The font underline.fontStrikeout - Whether the font is in strikeout.fontCharset - The font charset.fontTypeOffset - The font type offset.
Font that matches all given properties, or
null if it doesn't exist.public void cacheFont(org.apache.poi.ss.usermodel.Font f)
Font.
f - A Font.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||