Chapter 10. Java 2D: Graphics in Java 2
Topics in This Chapter
Drawing 2D shapes
Tiling an image inside a shape
Using local fonts
Drawing with custom pen settings
Changing the opaqueness of objects
Translating and rotating coordinate systems
Anyone who has even lightly ventured into developing detailed graphical programs with the Abstract Windowing Toolkit (AWT) has quickly realized that the capabilities of the Graphics object are rather limited—not surprisingly, since Sun developed the AWT over a short period when moving Java from embedded applications to the World Wide Web. Shortcomings of the AWT include limited available fonts, lines drawn with a single-pixel width, shapes painted only in solid colors, and the inability to properly scale drawings ...
Get Core Web Programming, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.