Package org.jfree.layouting.output
Class DefaultFontContext
- java.lang.Object
-
- org.jfree.layouting.output.DefaultFontContext
-
- All Implemented Interfaces:
org.pentaho.reporting.libraries.fonts.registry.FontContext
public class DefaultFontContext extends java.lang.Object implements org.pentaho.reporting.libraries.fonts.registry.FontContextCreation-Date: 23.06.2006, 17:37:56- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description DefaultFontContext(OutputProcessorMetaData metaData, boolean antiAliased, double size, java.lang.String encoding, boolean embedded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEncoding()doublegetFontSize()The requested font size.booleanisAntiAliased()This is controlled by the output target and the stylesheet.booleanisEmbedded()booleanisFractionalMetrics()This is defined by the output target.
-
-
-
Constructor Detail
-
DefaultFontContext
public DefaultFontContext(OutputProcessorMetaData metaData, boolean antiAliased, double size, java.lang.String encoding, boolean embedded)
-
-
Method Detail
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncodingin interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext
-
isEmbedded
public boolean isEmbedded()
- Specified by:
isEmbeddedin interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext
-
isAntiAliased
public boolean isAntiAliased()
This is controlled by the output target and the stylesheet. If the output target does not support aliasing, it makes no sense to enable it and all such requests are ignored.- Specified by:
isAntiAliasedin interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext- Returns:
-
isFractionalMetrics
public boolean isFractionalMetrics()
This is defined by the output target. This is not controlled by the stylesheet.- Specified by:
isFractionalMetricsin interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext- Returns:
-
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.- Specified by:
getFontSizein interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext- Returns:
- the font size.
-
-