Getting in Shape
The Java2D classes, as defined in the java.awt.geom package, define four basic geometric constructions (plus the point, but that hardly counts). The constructions are the line, the ellipse, the rectangle, and the generalized path. Perfect circles are a subset of the ellipse class; regular squares a special kind of rectangle. …