com.aspose.slides
Class FontDataEx

java.lang.Object
  extended by com.aspose.slides.FontDataEx

public final class FontDataEx
extends java.lang.Object

Represents a font definition. Immutable.


Constructor Summary
FontDataEx(java.lang.String fontName)
           Creates a new FontDataEx object with the specified font name.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Determines whether two FontDataEx instances are equal.
 java.lang.String getFontName()
           Returns the font name.
 java.lang.String getFontName(ThemeEx theme)
           Returns the font name, replacing theme referrence with an actual font used.
 int hashCode()
           Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontDataEx

public FontDataEx(java.lang.String fontName)

Creates a new FontDataEx object with the specified font name.

Parameters:
fontName - Font name.
Method Detail

getFontName

public java.lang.String getFontName()

Returns the font name. Read-only string.


getFontName

public java.lang.String getFontName(ThemeEx theme)

Returns the font name, replacing theme referrence with an actual font used.

Parameters:
theme - Theme from which themed font name should be taken. Its up to caller to provide a correct value. See BaseSlideEx.Theme
Returns:
Font name.

equals

public boolean equals(java.lang.Object obj)

Determines whether two FontDataEx instances are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The FontDataEx to compare with the current FontDataEx.
Returns:
<b>true</b> if the specified FontDataEx is equal to the current FontDataEx; otherwise, <b>false</b>.

hashCode

public int hashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Overrides:
hashCode in class java.lang.Object
Returns:
Hash code of the FontDataEx.