|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.rssowl.util.document.DocumentConfig
Class that offers fonts for the PDF / RTF / HTML export of a Newsfeed
Field Summary | |
private com.lowagie.text.pdf.BaseFont |
baseFont
|
private com.lowagie.text.Font |
boldFont
|
private static String |
DEFAULT_FONT
Default font for non Asia locale |
private static DocumentConfig |
documentConfig
Instance of the DocumentConfig |
private com.lowagie.text.Font |
italicFont
|
private static Color |
LINK_COLOR
Constant for the Color of a Link |
private com.lowagie.text.Font |
linkFont
|
private com.lowagie.text.Font |
normalFont
|
private com.lowagie.text.Font |
smallItalicFont
|
private com.lowagie.text.Font |
subTitleFont
|
Constructor Summary | |
private |
DocumentConfig()
Instantiates a new DocumentConfig and inits all needed Fonts |
Method Summary | |
com.lowagie.text.Font |
getBoldFont()
Get the Bold Font |
static DocumentConfig |
getInstance()
Get an Instance of DocumentConfig |
com.lowagie.text.Font |
getItalicFont()
Get the Italic Font |
com.lowagie.text.Font |
getLinkFont()
Get the Font to use for Links |
com.lowagie.text.Font |
getNormalFont()
Get the Normal Font |
com.lowagie.text.Font |
getSmallItalicFont()
Get the Small Italic Font |
com.lowagie.text.Font |
getSubTitleFont()
Get the Font to use for the Sub Title |
private void |
initAsiaFonts()
Init asia Fonts in case the OS has an Asia locale |
private void |
initBaseFont()
Init the base Font. |
private void |
initDefaultFonts()
Init default Fonts in case the OS has not an Asian locale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String DEFAULT_FONT
private static DocumentConfig documentConfig
private static final Color LINK_COLOR
private com.lowagie.text.pdf.BaseFont baseFont
private com.lowagie.text.Font boldFont
private com.lowagie.text.Font italicFont
private com.lowagie.text.Font linkFont
private com.lowagie.text.Font normalFont
private com.lowagie.text.Font smallItalicFont
private com.lowagie.text.Font subTitleFont
Constructor Detail |
private DocumentConfig()
Method Detail |
public static DocumentConfig getInstance()
public com.lowagie.text.Font getBoldFont()
public com.lowagie.text.Font getItalicFont()
public com.lowagie.text.Font getLinkFont()
public com.lowagie.text.Font getNormalFont()
public com.lowagie.text.Font getSmallItalicFont()
public com.lowagie.text.Font getSubTitleFont()
private void initAsiaFonts()
private void initBaseFont() throws com.lowagie.text.DocumentException, IOException
com.lowagie.text.DocumentException
- In case an error occurs
IOException
- In case an error occursprivate void initDefaultFonts()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |