public void setShape(Shape shape) { assert (shape != null); this.shape = shape; for (GraphVertex graphVertex : nodes) { graphVertex.setShape(shape); } }
/** * add the given node to the group * * @param vertex */ public void addNode(GraphVertex vertex) { vertex.setColor(color); vertex.setShape(shape); addNode_WO_COLOR(vertex); }