FontData

FontData class

Represents a font definition. Immutable.

FontData

NameDescription
FontData(String)Creates a new FontData object with the specified font name.

Parameters:

NameTypeDescription
fontNameStringFont name.

Returns: FontData


equals

NameDescription
equals (Object)Determines whether two FontData instances are equal.

Parameters:

NameTypeDescription
objObjectThe FontData to compare with the current FontData.

Returns: boolean


getFontName

NameDescription
getFontName ()Returns the font name. Read/write String.

Returns: String


getFontName

NameDescription
getFontName (IThemeEffectiveData)Returns the font name, replacing theme referrence with an actual font used.

Parameters:

NameTypeDescription
themeIThemeEffectiveDataTheme from which themed font name should be taken. Its up to caller to provide a correct value. See IThemeable#createThemeEffective

Returns: String


hashCode

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

Returns: int


toString

NameDescription
toString ()Returns string representation.

Returns: String