Combining Shapes - Java 2D Graphics

Java examples for 2D Graphics:Shape

Description

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 Tutorials