Chapter 3. Geometry

Java 2D allows you to represent any shape as a combination of straight and curved line segments. This chapter describes the Java 2D classes that represent geometric shapes. You'll learn about the following topics:

  • classes that represent points

  • the two central interfaces for geometric shapes: Shape and PathIterator

  • 2D's toolbox of shapes in the java.awt.geom package

  • 2D's support for combining shapes with each other

Get Java 2D Graphics 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.