public class FontInfo
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
FontInfo(java.awt.Font font,
java.awt.Color color)
Constructor
|
FontInfo(java.awt.Font font,
java.awt.Color color,
boolean enabled)
Constructor
|
Modifier and Type | Method and Description |
---|---|
FontInfo |
clone()
Creates a clone (copy) of this object.
|
boolean |
equals(java.lang.Object o)
Compares the give object with this object and returns true if they are equal.
|
java.awt.Color |
getColor()
Gets the text color for displaying this font.
|
java.awt.Font |
getFont()
Gets the font.
|
boolean |
isEnabled()
Determines if this font is enabled.
|
public FontInfo(java.awt.Font font, java.awt.Color color)
font
- color
- text colorpublic FontInfo(java.awt.Font font, java.awt.Color color, boolean enabled)
font
- color
- text colorenabled
- true if this font is enabledpublic java.awt.Font getFont()
public java.awt.Color getColor()
public boolean isEnabled()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public FontInfo clone()
clone
in class java.lang.Object