// This sample demonstrates how to create groups // Create two nodes ShapeNode master = diagram.getFactory().createShapeNode(10, 10, 40, 20); ShapeNode subordinate = diagram.getFactory().createShapeNode(10, 45, 40, 20); // Attach the second node to the first node subordinate.attachTo(master, AttachToNode.TopLeft); |