jPod PDF library

de.intarsys.pdf.font.outlet
Class FontQuery

java.lang.Object
  extended by de.intarsys.pdf.font.outlet.FontQuery
All Implemented Interfaces:
IFontQuery

public class FontQuery
extends Object
implements IFontQuery

A query for requesting PDFont instances from an IFontFactory with the defined attributes.


Field Summary
 
Fields inherited from interface de.intarsys.pdf.font.outlet.IFontQuery
TYPE_ANY, TYPE_BUILTIN, TYPE_TRUETYPE, TYPE_TYPE1
 
Constructor Summary
FontQuery()
           
FontQuery(PDFont baseFont)
          Create a new IFontQuery based on another PDFont.
FontQuery(String fontName)
           
FontQuery(String family, PDFontStyle style)
          Create a new IFontQuery denoting a font from the family in style style.
FontQuery(String family, String style)
          Create a new IFontQuery denoting a font from the family in style style.
 
Method Summary
 Encoding getEncoding()
          The desired encoding for the PDFont.
 String getFontFamilyName()
          The desired font family for the PDFont.
 String getFontName()
          The desired font name for the PDFont.
 PDFontStyle getFontStyle()
          The desired font style for the PDFont.
 String getFontType()
          The desired font type for the PDFont (such as "Type1" or "TrueType").
 Encoding getOverrideEncoding()
          The required encoding for the result font.
 String getOverrideFontFamilyName()
          The required font family for the result font.
 String getOverrideFontName()
           
 PDFontStyle getOverrideFontStyle()
          The required font style for the result font.
 String getOverrideFontType()
           
 void setOverrideEncoding(Encoding overrideEncoding)
          Set the encoding attribute for the font to be looked up.
 void setOverrideFontFamilyName(String overrideFontFamilyName)
          Set the font family attribute for the font to be looked up.
 void setOverrideFontName(String overrideFontName)
           
 void setOverrideFontStyle(PDFontStyle overrideFontStyle)
          Set the font style attribute for the font to be looked up.
 void setOverrideFontType(String overrideFontType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontQuery

public FontQuery()

FontQuery

public FontQuery(PDFont baseFont)
Create a new IFontQuery based on another PDFont. USe the setter methods to overwrite the attributes you want to be different from baseFont.

Parameters:
baseFont - The font serivng as a template for this query.

FontQuery

public FontQuery(String fontName)

FontQuery

public FontQuery(String family,
                 PDFontStyle style)
Create a new IFontQuery denoting a font from the family in style style.

Parameters:
family - The family of the FontQuery.
style - The style of the FontQuery.

FontQuery

public FontQuery(String family,
                 String style)
Create a new IFontQuery denoting a font from the family in style style.

Parameters:
family - The family of the FontQuery.
style - The style of the FontQuery.
Method Detail

getEncoding

public Encoding getEncoding()
Description copied from interface: IFontQuery
The desired encoding for the PDFont.

Specified by:
getEncoding in interface IFontQuery
Returns:
The desired encoding for the PDFont.

getFontFamilyName

public String getFontFamilyName()
Description copied from interface: IFontQuery
The desired font family for the PDFont.

Specified by:
getFontFamilyName in interface IFontQuery
Returns:
The desired font family for the PDFont.

getFontName

public String getFontName()
Description copied from interface: IFontQuery
The desired font name for the PDFont.

Specified by:
getFontName in interface IFontQuery
Returns:
The desired font name for the PDFont.

getFontStyle

public PDFontStyle getFontStyle()
Description copied from interface: IFontQuery
The desired font style for the PDFont.

Specified by:
getFontStyle in interface IFontQuery
Returns:
The desired font style for the PDFont.

getFontType

public String getFontType()
Description copied from interface: IFontQuery
The desired font type for the PDFont (such as "Type1" or "TrueType"). nullindicates a font of any type.

Specified by:
getFontType in interface IFontQuery
Returns:
The desired font type for the PDFont.

getOverrideEncoding

public Encoding getOverrideEncoding()
The required encoding for the result font.

Returns:
The required encoding for the result font.

getOverrideFontFamilyName

public String getOverrideFontFamilyName()
The required font family for the result font.

Returns:
The required font family for the result font.

getOverrideFontName

public String getOverrideFontName()

getOverrideFontStyle

public PDFontStyle getOverrideFontStyle()
The required font style for the result font.

Returns:
The required font style for the result font.

getOverrideFontType

public String getOverrideFontType()

setOverrideEncoding

public void setOverrideEncoding(Encoding overrideEncoding)
Set the encoding attribute for the font to be looked up.

Parameters:
overrideEncoding - The required encoding for the result font.

setOverrideFontFamilyName

public void setOverrideFontFamilyName(String overrideFontFamilyName)
Set the font family attribute for the font to be looked up.

Parameters:
overrideFontFamilyName - The required font family for the result font.

setOverrideFontName

public void setOverrideFontName(String overrideFontName)

setOverrideFontStyle

public void setOverrideFontStyle(PDFontStyle overrideFontStyle)
Set the font style attribute for the font to be looked up.

Parameters:
overrideFontStyle - The required font style for the result font.

setOverrideFontType

public void setOverrideFontType(String overrideFontType)

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.