The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > java.awt.geom  [4 examples]

e658. Combining Shapes

    Area shape = new Area(shape1);
    shape.add(new Area(shape2));
    shape.subtract(new Area(shape3));
    shape.intersect(new Area(shape4));
    shape.exclusiveOr(new Area(shape5));

 Related Examples
e656. Creating Basic Shapes
e657. Creating a Shape Using Lines and Curves
e659. Scaling, Shearing, Translating, and Rotating a Shape


© 2002 Addison-Wesley.