Class AWTFontRecord
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.awt.AWTFontRecord
-
- All Implemented Interfaces:
java.io.Serializable,FontIdentifier,FontRecord
public class AWTFontRecord extends java.lang.Object implements FontRecord, FontIdentifier
Creation-Date: 16.12.2005, 20:06:51- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AWTFontRecord(FontFamily fontFamily, boolean bold, boolean italics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)FontFamilygetFamily()Returns the family for this record.FontTypegetFontType()Returns the general type of this font identifier.FontIdentifiergetIdentifier()inthashCode()booleanisBold()Returns true, if this font corresponds to a bold version of the font.booleanisItalic()Returns true, if this font includes italic glyphs.booleanisOblique()Returns tue, if this font's italic mode is in fact some sort of being oblique.booleanisScalable()Defines, whether the font identifier represents a scalable font type.
-
-
-
Constructor Detail
-
AWTFontRecord
public AWTFontRecord(FontFamily fontFamily, boolean bold, boolean italics)
-
-
Method Detail
-
getFamily
public FontFamily getFamily()
Returns the family for this record.- Specified by:
getFamilyin interfaceFontRecord- Returns:
- the font family.
-
isBold
public boolean isBold()
Returns true, if this font corresponds to a bold version of the font. A font that does not provide a bold face must emulate the boldness using other means.- Specified by:
isBoldin interfaceFontRecord- Returns:
- true, if the font provides bold glyphs, false otherwise.
-
isItalic
public boolean isItalic()
Returns true, if this font includes italic glyphs. Italics is different from oblique, as certain glyphs (most notably the lowercase 'f') will have a different appearance, making the font look more like a script font.- Specified by:
isItalicin interfaceFontRecord- Returns:
- true, if the font is italic.
-
isOblique
public boolean isOblique()
Returns tue, if this font's italic mode is in fact some sort of being oblique. An oblique font's glyphs are sheared, but they are not made to look more script like.- Specified by:
isObliquein interfaceFontRecord- Returns:
- true, if the font is oblique.
-
getIdentifier
public FontIdentifier getIdentifier()
- Specified by:
getIdentifierin interfaceFontRecord
-
isScalable
public boolean isScalable()
Defines, whether the font identifier represents a scalable font type. Such fonts usually create one font metric object for each physical font, and apply the font size afterwards.- Specified by:
isScalablein interfaceFontIdentifier- Returns:
- true, if the font is scalable, false otherwise
-
getFontType
public FontType getFontType()
Description copied from interface:FontIdentifierReturns the general type of this font identifier. This is for debugging, not for the real world.- Specified by:
getFontTypein interfaceFontIdentifier- Returns:
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfaceFontIdentifier- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFontIdentifier- Overrides:
hashCodein classjava.lang.Object
-
-