org.pentaho.reporting.libraries.fonts.truetype
Class TrueTypeFontIdentifier

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFontIdentifier
All Implemented Interfaces:
Serializable, FontIdentifier

public class TrueTypeFontIdentifier
extends Object
implements FontIdentifier, Serializable

Creation-Date: 16.12.2005, 19:35:31

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
TrueTypeFontIdentifier(String fontSource, String fontName, String fontVariant, int collectionIndex, long offset)
           
 
Method Summary
 boolean equals(Object o)
           
 int getCollectionIndex()
           
 String getFontName()
           
 String getFontSource()
           
 FontType getFontType()
          Returns the general type of this font identifier.
 String getFontVariant()
           
 long getOffset()
           
 int hashCode()
           
 boolean isScalable()
          Defines, whether the font identifier represents a scalable font type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrueTypeFontIdentifier

public TrueTypeFontIdentifier(String fontSource,
                              String fontName,
                              String fontVariant,
                              int collectionIndex,
                              long offset)
Method Detail

equals

public boolean equals(Object o)
Specified by:
equals in interface FontIdentifier
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface FontIdentifier
Overrides:
hashCode in class Object

getFontSource

public String getFontSource()

getFontVariant

public String getFontVariant()

getFontName

public String getFontName()

getCollectionIndex

public int getCollectionIndex()

getOffset

public long getOffset()

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:
isScalable in interface FontIdentifier
Returns:
true, if the font is scalable, false otherwise

getFontType

public FontType getFontType()
Description copied from interface: FontIdentifier
Returns the general type of this font identifier. This is for debugging, not for the real world.

Specified by:
getFontType in interface FontIdentifier
Returns: