com.aspose.slides
Class FontData

java.lang.Object
  extended by com.aspose.slides.FontData
All Implemented Interfaces:
IFontData

public final class FontData
extends java.lang.Object
implements IFontData

Represents a font definition. Immutable.


Constructor Summary
FontData(java.lang.String fontName)
           Creates a new FontData object with the specified font name.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Determines whether two FontData instances are equal.
 java.lang.String getFontName()
           Returns the font name.
 java.lang.String getFontName(IThemeEffectiveData 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FontData

public FontData(java.lang.String fontName)

Creates a new FontData object with the specified font name.

Parameters:
fontName - Font name.
Method Detail

getFontName

public java.lang.String getFontName()

Returns the font name. Read/write String.

Specified by:
getFontName in interface IFontData

getFontName

public java.lang.String getFontName(IThemeEffectiveData theme)

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

Specified by:
getFontName in interface IFontData
Parameters:
theme - Theme from which themed font name should be taken. Its up to caller to provide a correct value. See IBaseSlide.CreateThemeEffective()
Returns:
Font name.

equals

public boolean equals(java.lang.Object obj)

Determines whether two FontData instances are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The FontData to compare with the current FontData.
Returns:
<b>true</b> if the specified FontData is equal to the current FontData; 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 FontData.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.