Java Reference
In-Depth Information
Float
This is a wrapper class for float . See Section 5.1 in Chapter 5 .
Font
Package: java.awt
Ancestor classes:
Object
|
+--Font
CONSTRUCTOR
public Font(String fontName, int styleModifications, int size)
Constructor that creates a version of the font named by fontName with the specifi ed
styleModifications and size .
CONSTANTS
Font.BOLD
Specifi es bold style.
Font.ITALIC
Specifi es italic style.
Font.PLAIN
Specifi es plain style—that is, not bold and not italic.
NAMES OF Fonts
(These three are guaranteed by Java. Your system will probably have others as well as these.)
"Monospaced"
See Chapter 18 for a sample.
"SansSerif"
See Chapter 18 for a sample.
"Serif"
See Chapter 18 for a sample.
METHOD THAT USES Font
public abstract void setFont(Font fontObject)
This method is in the class Graphics . Sets the current font of the calling Graphics object
to fontObject .
 
Search WWH ::




Custom Search