Chapter 3. Graphics Programming with the Java 2D API
IN THIS CHAPTER
The Basic Java 2D Recipe
Set the Graphics2D Context…
…and Render Something
Rendering on Components
Shape Primitives
Graphics Stroking
Fill Attributes and Painting
Transparency and Compositing
Text
Clipping
Coordinate Space Transformations
Techniques for Graphical User Input
Double Buffering
Comprehensive Example: Kspace Visualization
The Java 2D API extends the Java Advanced Windowing Toolkit (AWT) to provide classes for professional 2D graphics, text, and imaging. The subject of this chapter is the use of Java 2D for graphics and text. Java 2D imaging is the subject of Chapter 4, “The Immediate Mode Imaging Model.”
Keep in mind that, for the most part, all discussion referring to shapes ...
Get Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization 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.