intarsys PDF library API

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.


Constructor Summary
FontQuery(PDFont baseFont)
          Create a new IFontQuery based on another PDFont.
FontQuery(String family, FontStyle 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.
 FontStyle getFontStyle()
          The desired font style for the PDFont.
 Encoding getOverrideEncoding()
          The required encoding for the result font.
 String getOverrideFontFamilyName()
          The required font family for the result font.
 FontStyle getOverrideFontStyle()
          The required font style for the result font.
 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 setOverrideFontStyle(FontStyle overrideFontStyle)
          Set the font style attribute for the font to be looked up.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 family,
                 String style)
Create a new IFontQuery denoting a font from the family in style style.

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

FontQuery

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

Parameters:
baseFont - The font serivng as a template for this query.
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.

getFontStyle

public FontStyle 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.

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.

getOverrideEncoding

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

Returns:
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.

getOverrideFontFamilyName

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

Returns:
The required font family for the result font.

setOverrideFontStyle

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

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

getOverrideFontStyle

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

Returns:
The required font style for the result font.

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.