Constructor and Description |
---|
FontData(java.lang.String fontName)
Creates a new FontData object with the specified font name.
|
Modifier and Type | Method and Description |
---|---|
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()
Returns string representation.
|
public FontData(java.lang.String fontName)
Creates a new FontData object with the specified font name.
fontName
- Font name.public final java.lang.String getFontName()
Returns the font name.
Read/write String
.
getFontName
in interface IFontData
public final java.lang.String getFontName(IThemeEffectiveData theme)
Returns the font name, replacing theme referrence with an actual font used.
getFontName
in interface IFontData
theme
- Theme from which themed font name should be taken. Its up to caller to provide a correct value. See IThemeable.createThemeEffective()
public boolean equals(java.lang.Object obj)
Determines whether two FontData instances are equal.
equals
in class java.lang.Object
obj
- The FontData to compare with the current FontData.<b>true</b>
if the specified FontData is equal to the current FontData; otherwise, <b>false</b>
.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.
hashCode
in class java.lang.Object
public java.lang.String toString()
Returns string representation.
toString
in class java.lang.Object