Class FontInfo
public final class FontInfo
extends Object
-
Field Summary
Fields
boolean
A bool value indicates whether the font is bold.
boolean
A bool value indicates whether the font is italic.
Get or sets the name of font.
-
Constructor Summary
Constructors
-
Method Summary
boolean
Check if the font info equals to another.
int
Returns a hash code for this instance.
-
Field Details
-
name
Get or sets the name of font.
-
bold
public boolean bold
A bool value indicates whether the font is bold.
-
italic
public boolean italic
A bool value indicates whether the font is italic.
-
Constructor Details
-
FontInfo
public FontInfo()
-
Method Details
-
equals
public boolean equals(Object obj)
Check if the font info equals to another.
- Overrides:
equals
in class Object
- Parameters:
obj
- Another font info.
- Returns:
- True if the specified object is equal to this object, False otherwise.
-
hashCode
public int hashCode()
Returns a hash code for this instance.
- Overrides:
hashCode
in class Object
- Returns:
- A hash code for this instance, suitable for use in hashing algorithmsand data structures like a hash table.