To simplify the creation of standard shapes such as rectangles, Java 2D provides several subclasses of Shape in addition to GeneralPath: |
In addition to supporting solid color fills, Java 2D enables you to specify complex fills such as gradients and patterns |
Rectangle2D.Double rect = new Rectangle2D.Double( 300, 300, 200, 100 ); |