Ejemplo n.º 1
0
  public void setShape(Shape shape) {
    assert (shape != null);

    this.shape = shape;

    for (GraphVertex graphVertex : nodes) {
      graphVertex.setShape(shape);
    }
  }
Ejemplo n.º 2
0
 /**
  * add the given node to the group
  *
  * @param vertex
  */
 public void addNode(GraphVertex vertex) {
   vertex.setColor(color);
   vertex.setShape(shape);
   addNode_WO_COLOR(vertex);
 }