org.jfree.layouting.layouter.context

Class FontSpecification

public class FontSpecification extends Object

Creation-Date: 15.12.2005, 11:44:22

Author: Thomas Morgner

Constructor Summary
FontSpecification(LayoutStyle style)
Method Summary
StringgetFontFamily()
doublegetFontSize()
The requested font size.
intgetFontWeight()
booleanisAntiAliasing()
booleanisItalic()
booleanisOblique()
booleanisSmallCaps()
voidsetFontFamily(String fontFamily)
Redefines the physical font family.
voidsetFontSize(double fontSize)
The font size is resolved once during the resolve cycle.

Constructor Detail

FontSpecification

public FontSpecification(LayoutStyle style)

Method Detail

getFontFamily

public String getFontFamily()

getFontSize

public double getFontSize()
The requested font size. A font may have a fractional font size (ie. 8.5 point). The font size may be influenced by the output target. This font size is given in point.

Returns: the font size.

getFontWeight

public int getFontWeight()

isAntiAliasing

public boolean isAntiAliasing()

isItalic

public boolean isItalic()

isOblique

public boolean isOblique()

isSmallCaps

public boolean isSmallCaps()

setFontFamily

public void setFontFamily(String fontFamily)
Redefines the physical font family. The resolving is done once during the style resolve run, logical fonts get mapped into their physical counterparts.

Parameters: fontFamily

setFontSize

public void setFontSize(double fontSize)
The font size is resolved once during the resolve cycle. It is more than just looking up the value in the stylesheet, as we have to take the font size adjustment into account. This font size is given in micro-point.

Parameters: fontSize the font size as used during the rendering.