Class DefaultFontFamily
java.lang.Object
org.pentaho.reporting.libraries.fonts.registry.DefaultFontFamily
- All Implemented Interfaces:
java.io.Serializable
,FontFamily
Creation-Date: 07.11.2005, 19:45:50
- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFontRecord
(FontRecord record) void
addName
(java.lang.String name) boolean
equals
(java.lang.Object o) java.lang.String[]
java.lang.String
Returns the name of the font family (in english).getFontRecord
(boolean bold, boolean italics) This selects the most suitable font in that family.int
hashCode()
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DefaultFontFamily
public DefaultFontFamily(java.lang.String familyName)
-
-
Method Details
-
getFamilyName
public java.lang.String getFamilyName()Description copied from interface:FontFamily
Returns the name of the font family (in english).- Specified by:
getFamilyName
in interfaceFontFamily
- Returns:
-
addName
public void addName(java.lang.String name) -
getAllNames
public java.lang.String[] getAllNames()- Specified by:
getAllNames
in interfaceFontFamily
-
getFontRecord
Description copied from interface:FontFamily
This selects the most suitable font in that family. Italics fonts are preferred over oblique fonts.- Specified by:
getFontRecord
in interfaceFontFamily
- Returns:
-
addFontRecord
-
equals
public boolean equals(java.lang.Object o) - Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-