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

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


    try {
      IPresentationPage page = ((IPresentationDocument) document)
          .getPageService().getCurrentPresentationPage();
      IShapeFactory shapeFactory = page.getDrawPage().getShapeFactory();
      ITextShape textShape = shapeFactory
          .createTextShape(2000, 4000, tag);
      textShape.addToPage();
    } catch (PresentationException e) {
      return false;
    }

    return true;
View Full Code Here


        IPresentationPage page = pageService.getPresentationPage(i);
        IDrawPage drawPage = page.getDrawPage();
        for (IShape shape : drawPage.getShapes()) {
          if (!shape.getType().equals(IShape.TEXT_SHAPE))
            continue;
          ITextShape textShape = (ITextShape) shape;
          String content = textShape.getText().getText();
          if (content.matches(XMLArtefact.TAG_PATTERN)) {
            OOArtefactPosition position = new PresentationPosition(
                ooDocument, page, textShape);
            positions.add(position);
          }
View Full Code Here

    return rectangle;
  }

  @Override
  public ITextShape createTextShape(int width, int height, String text) {
    ITextShape textShape = new TextShape(drawPage
        .createShape(IShape.TEXT_SHAPE), drawPage);
    textShape.setSize(new Size(width, height));
    textShape.getText().setText(text);
    return textShape;
  }
View Full Code Here

    String tag = "<aTag/>"; //$NON-NLS-1$
    ConnectorMaster.getInstance().insertTagsIntoDocument(tag, ooDocument);

    IPresentationPage page = document.getPageService().getPresentationPage(
        0);
    ITextShape shape = (ITextShape) page.getDrawPage().getShapes().get(0);
    String text = shape.getText().getText();
    Assert.assertEquals(tag, text);
  }
View Full Code Here

            XNamed.class, shape.getXShape());
        String name = xNamed.getName();
        if (!integrationID.equals(name))
          continue;
        IShapeFactory shapeFactory = drawPage.getShapeFactory();
        ITextShape textShape = shapeFactory.createTextShape(1, 1,
            undoString);
        replaceShape(shape, textShape);
        steps += 2;
      }
    }
View Full Code Here

TOP

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

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.