All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Font
public static final int PLAIN
public static final int BOLD
public static final int ITALIC
protected String name
protected int style
PLAIN
, BOLD
,
or ITALIC
.
protected int size
public Font(String name,
int style,
int size)
public FontPeer getPeer()
public String getFamily()
getName
method to get the logical name of the font.
public String getName()
public int getStyle()
public int getSize()
public boolean isPlain()
true
if the font is neither
bold nor italic; false
otherwise.
public boolean isBold()
true
if the font is bold;
false
otherwise.
public boolean isItalic()
true
if the font is italic;
false
otherwise.
public static Font getFont(String nm)
public static Font decode(String str)
public static Font getFont(String nm,
Font font)
System.getProperty
.
The string value of this property is then interpreted as a font.
The property value should be one of the following forms:
"BOLD"
, "BOLDITALIC"
, or
"ITALIC"
, and point size is a decimal
representation of the point size.
The default style is PLAIN
. The default point size
is 12.
If the specified property is not found, the font
argument is returned instead.
nm
is not defined
Font
value of the property.
public int hashCode()
public boolean equals(Object obj)
true
if and only if the argument is not
null
and is a Font
object with the same
name, style, and point size as this font.
true
if the objects are equal;
false
otherwise.
public String toString()
All Packages Class Hierarchy This Package Previous Next Index