org.apache.batik.gvt.font

Class AWTFontFamily

public class AWTFontFamily extends Object implements GVTFontFamily

A font family class for AWT fonts.
Field Summary
protected Fontfont
protected GVTFontFacefontFace
static AttributeTEXT_COMPOUND_DELIMITER
Constructor Summary
AWTFontFamily(GVTFontFace fontFace)
Constructs an AWTFontFamily with the specified familyName.
AWTFontFamily(String familyName)
Constructs an AWTFontFamily with the specified familyName.
AWTFontFamily(GVTFontFace fontFace, Font font)
Constructs an AWTFontFamily with the specified familyName.
Method Summary
GVTFontderiveFont(float size, AttributedCharacterIterator aci)
Derives a GVTFont object of the correct size.
GVTFontderiveFont(float size, Map attrs)
Derives a GVTFont object of the correct size from an attribute Map.
StringgetFamilyName()
Returns the font family name.
GVTFontFacegetFontFace()
Returns the font-face information for this font family.

Field Detail

font

protected Font font

fontFace

protected GVTFontFace fontFace

TEXT_COMPOUND_DELIMITER

public static final Attribute TEXT_COMPOUND_DELIMITER

Constructor Detail

AWTFontFamily

public AWTFontFamily(GVTFontFace fontFace)
Constructs an AWTFontFamily with the specified familyName.

Parameters: fontFace The name of the font family.

AWTFontFamily

public AWTFontFamily(String familyName)
Constructs an AWTFontFamily with the specified familyName.

Parameters: familyName The name of the font family.

AWTFontFamily

public AWTFontFamily(GVTFontFace fontFace, Font font)
Constructs an AWTFontFamily with the specified familyName.

Parameters: fontFace The name of the font family.

Method Detail

deriveFont

public GVTFont deriveFont(float size, AttributedCharacterIterator aci)
Derives a GVTFont object of the correct size.

Parameters: size The required size of the derived font. aci The character iterator that will be rendered using the derived font.

deriveFont

public GVTFont deriveFont(float size, Map attrs)
Derives a GVTFont object of the correct size from an attribute Map.

Parameters: size The required size of the derived font. attrs The Attribute Map to get Values from.

getFamilyName

public String getFamilyName()
Returns the font family name.

Returns: The family name.

getFontFace

public GVTFontFace getFontFace()
Returns the font-face information for this font family.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.