…and Render Something

After setting the rendering context with any of the previous methods, it is time to complete the recipe and request a rendering of a shape, line, or image. This final step is accomplished with one of several methods contained in the Graphics2D object. For this chapter we will primarily use the draw(), drawLine(),drawString(), and fill() methods, but keep in mind that many other drawing methods exist.

You should examine the Graphics2D documentation at this time: http://java.sun.com/j2se/1.3/docs/api/java/awt/Graphics2D.html

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.