org.pentaho.reporting.libraries.fonts.merge
Class CompoundFontIdentifier

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.merge.CompoundFontIdentifier
All Implemented Interfaces:
java.io.Serializable, FontIdentifier

public class CompoundFontIdentifier
extends java.lang.Object
implements FontIdentifier

Creation-Date: 20.07.2007, 19:31:00

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
CompoundFontIdentifier(FontIdentifier identifier, FontRegistry registry, boolean boldSpecified, boolean italicsSpecified)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 FontType getFontType()
          Returns the general type of this font identifier.
 FontIdentifier getIdentifier()
           
 FontRegistry getRegistry()
           
 int hashCode()
           
 boolean isBoldSpecified()
           
 boolean isItalicsSpecified()
           
 boolean isScalable()
          Defines, whether the font identifier represents a scalable font type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundFontIdentifier

public CompoundFontIdentifier(FontIdentifier identifier,
                              FontRegistry registry,
                              boolean boldSpecified,
                              boolean italicsSpecified)
Method Detail

getIdentifier

public FontIdentifier getIdentifier()

isBoldSpecified

public boolean isBoldSpecified()

isItalicsSpecified

public boolean isItalicsSpecified()

equals

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

hashCode

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

isScalable

public boolean isScalable()
Description copied from interface: FontIdentifier
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:

getRegistry

public FontRegistry getRegistry()