View RSS Feed

Java AWT

Java Abstract Window Toolkit (AWT)

  1. Constructing Complex Shapes from Geometry Primitives

    by , 03-06-2012 at 08:40 PM
    New geometric shapes are created by operations of Boolean at the existing ones. This is what is known as CAG i.e. constructive area geometry. In Java 2D API, shape interface is implemented by the area class. Following Boolean operations are supported by it.

    Name:  1.JPG
Views: 2860
Size:  12.4 KB
    Constructing Complex Shapes from Geometry Primitives


    An intersection at 2 overlapping circles is performed to create the leaves

    Java Code:
    leaf = new Ellipse2D.Double();
    ...