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

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


    } catch (OfficeApplicationException e) {
      return null;
    }

    IShapeFactory shapeFactory = document.getDrawPage(0).getShapeFactory();
    IShape shape = shapeProvider.provide(shapeFactory);

    File image;
    try {
      image = export(shape, document);
    } catch (Exception e) {
View Full Code Here


      if (!type.equals(XShape.class.getName()))
        continue;
      XShape xShape = (XShape) UnoRuntime.queryInterface(XShape.class,
          shape);

      IShape s = ((ShapeFactory) getShapeFactory())
          .constructShape(xShape);
      if (s == null)
        continue;
      shapes.add(s);
View Full Code Here

  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();
View Full Code Here

TOP

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

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.