Package ag.ion.bion.officelayer.draw.shapes

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


    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

Related Classes of ag.ion.bion.officelayer.draw.shapes.IGroupShape

Copyright © 2018 www.massapicom. 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.