Examples of IGroupShape


Examples of ag.ion.bion.officelayer.draw.shapes.IGroupShape

    return graphicObjectShape;
  }

  @Override
  public IGroupShape createGroup() {
    IGroupShape group = new GroupShape(drawPage
        .createShape(IShape.GROUP_SHAPE), drawPage);
    return group;
  }
View Full Code Here

Examples of ag.ion.bion.officelayer.draw.shapes.IGroupShape

    return edges;
  }

  public IGroupShape draw(IShapeFactory shapeFactory) {
    Map<View, IShape> map = new HashMap<View, IShape>();
    IGroupShape group = shapeFactory.createGroup();
    for (Clazz clazz : classes) {
      IShape shape = clazz.createShape(shapeFactory);
      map.put(clazz.getNode(), shape);
      group.add(shape);
      shape.addToPage();
    }

    for (Edge edge : edges) {
      IShape source = map.get(edge.getSource());
      IShape target = map.get(edge.getTarget());
      IShape shape = edge.createShape(source, target, shapeFactory);
      group.add(shape);
    }

    group.addToPage();

    return group;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.