fr.opensagres.xdocreport.itext.extension.font
Class AbstractFontRegistry

java.lang.Object
  extended by fr.opensagres.xdocreport.itext.extension.font.AbstractFontRegistry
All Implemented Interfaces:
IFontProvider
Direct Known Subclasses:
ITextFontRegistry

public abstract class AbstractFontRegistry
extends Object
implements IFontProvider


Nested Class Summary
static class AbstractFontRegistry.ExtendedBaseFont
           
 
Constructor Summary
AbstractFontRegistry()
           
 
Method Summary
 com.lowagie.text.Font getFont(String familyName, String encoding, float size, int style, Color color)
           
 String getSystemEncoding()
           
 boolean isBold(int style)
          checks if this font is Bold.
 boolean isItalic(int style)
          checks if this font is Bold.
 boolean isStrikethru(int style)
          checks if the style of this font is STRIKETHRU.
 boolean isUnderlined(int style)
          checks if this font is underlined.
protected abstract  String resolveFamilyName(String familyName, int style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFontRegistry

public AbstractFontRegistry()
Method Detail

getFont

public com.lowagie.text.Font getFont(String familyName,
                                     String encoding,
                                     float size,
                                     int style,
                                     Color color)
Specified by:
getFont in interface IFontProvider

isBold

public boolean isBold(int style)
checks if this font is Bold.

Returns:
a boolean

isItalic

public boolean isItalic(int style)
checks if this font is Bold.

Returns:
a boolean

isUnderlined

public boolean isUnderlined(int style)
checks if this font is underlined.

Returns:
a boolean

isStrikethru

public boolean isStrikethru(int style)
checks if the style of this font is STRIKETHRU.

Returns:
a boolean

getSystemEncoding

public String getSystemEncoding()

resolveFamilyName

protected abstract String resolveFamilyName(String familyName,
                                            int style)


Copyright © 2013. All rights reserved.