net.sourceforge.rssowl.util.document
Class DocumentConfig

java.lang.Object
  extended bynet.sourceforge.rssowl.util.document.DocumentConfig

public class DocumentConfig
extends Object

Class that offers fonts for the PDF / RTF / HTML export of a Newsfeed

Version:
1.1.3
Author:
Benjamin Pasero

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

DEFAULT_FONT

private static final String DEFAULT_FONT
Default font for non Asia locale

See Also:
Constant Field Values

documentConfig

private static DocumentConfig documentConfig
Instance of the DocumentConfig


LINK_COLOR

private static final Color LINK_COLOR
Constant for the Color of a Link


baseFont

private com.lowagie.text.pdf.BaseFont baseFont

boldFont

private com.lowagie.text.Font boldFont

italicFont

private com.lowagie.text.Font italicFont

linkFont

private com.lowagie.text.Font linkFont

normalFont

private com.lowagie.text.Font normalFont

smallItalicFont

private com.lowagie.text.Font smallItalicFont

subTitleFont

private com.lowagie.text.Font subTitleFont
Constructor Detail

DocumentConfig

private DocumentConfig()
Instantiates a new DocumentConfig and inits all needed Fonts

Method Detail

getInstance

public static DocumentConfig getInstance()
Get an Instance of DocumentConfig

Returns:
DocumentConfig An instance of DocumentConfig

getBoldFont

public com.lowagie.text.Font getBoldFont()
Get the Bold Font

Returns:
Font The bold Font

getItalicFont

public com.lowagie.text.Font getItalicFont()
Get the Italic Font

Returns:
Font The italic Font

getLinkFont

public com.lowagie.text.Font getLinkFont()
Get the Font to use for Links

Returns:
Font The link Font

getNormalFont

public com.lowagie.text.Font getNormalFont()
Get the Normal Font

Returns:
Font The normal Font

getSmallItalicFont

public com.lowagie.text.Font getSmallItalicFont()
Get the Small Italic Font

Returns:
Font the small italic Font

getSubTitleFont

public com.lowagie.text.Font getSubTitleFont()
Get the Font to use for the Sub Title

Returns:
Font the Sub Title font

initAsiaFonts

private void initAsiaFonts()
Init asia Fonts in case the OS has an Asia locale


initBaseFont

private void initBaseFont()
                   throws com.lowagie.text.DocumentException,
                          IOException
Init the base Font. The base font will only be set in case the OS' locale is Asian.

Throws:
com.lowagie.text.DocumentException - In case an error occurs
IOException - In case an error occurs

initDefaultFonts

private void initDefaultFonts()
Init default Fonts in case the OS has not an Asian locale



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo