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