net.sf.jasperreports.engine.fonts
Class SimpleFontFace
java.lang.Object
net.sf.jasperreports.engine.fonts.SimpleFontFace
- All Implemented Interfaces:
- FontFace
public class SimpleFontFace
- extends Object
- implements FontFace
- Version:
- $Id: SimpleFontFace.java 5346 2012-05-08 12:08:01Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
|
Method Summary |
String |
getFile()
Returns the TTF file, if the font face has specified one (the font face does not specify a TTF file in case it maps
a JVM available font such as a Java logical font or a system font). |
Font |
getFont()
Returns a non-null instance of java.awt.Font representing the font face. |
static SimpleFontFace |
getInstance(JasperReportsContext jasperReportsContext,
String fontName)
|
String |
getName()
Returns the non-null name of the font face. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleFontFace
public SimpleFontFace(JasperReportsContext jasperReportsContext,
String file)
SimpleFontFace
public SimpleFontFace(String file)
- See Also:
SimpleFontFace(JasperReportsContext, String)
SimpleFontFace
public SimpleFontFace(Font font)
getInstance
public static SimpleFontFace getInstance(JasperReportsContext jasperReportsContext,
String fontName)
getName
public String getName()
- Description copied from interface:
FontFace
- Returns the non-null name of the font face.
- Specified by:
getName in interface FontFace
getFile
public String getFile()
- Description copied from interface:
FontFace
- Returns the TTF file, if the font face has specified one (the font face does not specify a TTF file in case it maps
a JVM available font such as a Java logical font or a system font).
- Specified by:
getFile in interface FontFace
getFont
public Font getFont()
- Description copied from interface:
FontFace
- Returns a non-null instance of java.awt.Font representing the font face.
- Specified by:
getFont in interface FontFace
Copyright © 2012. All Rights Reserved.