jPod PDF library

de.intarsys.pdf.font.outlet
Class NullFontFactory

java.lang.Object
  extended by de.intarsys.pdf.font.outlet.NullFontFactory
All Implemented Interfaces:
IFontFactory

public class NullFontFactory
extends Object
implements IFontFactory


Constructor Summary
NullFontFactory()
           
 
Method Summary
 PDFont getBoldFlavor(PDFont font)
          A font based on font, but with "bold" style.
 PDFont getFont(IFontQuery query)
          A font satisfying the conditions defined in query.
 PDFont getItalicFlavor(PDFont font)
          A font based on font, but with "italic" style.
 PDFont getRegularFlavor(PDFont font)
          A font based on font, but with "regular" style.
 void registerFont(PDFont font)
          Register a new font available for public use.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullFontFactory

public NullFontFactory()
Method Detail

getBoldFlavor

public PDFont getBoldFlavor(PDFont font)
Description copied from interface: IFontFactory
A font based on font, but with "bold" style.

The font returned may be either a new one or a font already in use in a PDDocument. This decision is up to the factory.Be careful when changing the font returned!

Specified by:
getBoldFlavor in interface IFontFactory
Parameters:
font - The base font to be "bolded".
Returns:
A font based on font, but with "bold" style.

getFont

public PDFont getFont(IFontQuery query)
Description copied from interface: IFontFactory
A font satisfying the conditions defined in query.

The font returned may be either a new one or a font already in use in a PDDocument. This decision is up to the factory. Be careful when changing the font returned!

Specified by:
getFont in interface IFontFactory
Parameters:
query - A query defining the PDFont to be looked up.
Returns:
A font satisfying the conditions defined in query.

getItalicFlavor

public PDFont getItalicFlavor(PDFont font)
Description copied from interface: IFontFactory
A font based on font, but with "italic" style.

The font returned may be either a new one or a font already in use in a PDDocument. This decision is up to the factory.Be careful when changing the font returned!

Specified by:
getItalicFlavor in interface IFontFactory
Parameters:
font - The base font to be "italicized".
Returns:
A font based on font, but with "italic" style.

getRegularFlavor

public PDFont getRegularFlavor(PDFont font)
Description copied from interface: IFontFactory
A font based on font, but with "regular" style.

The font returned may be either a new one or a font already in use in a PDDocument. This decision is up to the factory. Be careful when changing the font returned!

Specified by:
getRegularFlavor in interface IFontFactory
Parameters:
font - The base font to be "regularized".
Returns:
A font based on font, but with "regular" style.

registerFont

public void registerFont(PDFont font)
Description copied from interface: IFontFactory
Register a new font available for public use.

Specified by:
registerFont in interface IFontFactory
Parameters:
font - The new font available for clients .

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.