Package org.eclipse.jst.pagedesigner.css2.layout

Examples of org.eclipse.jst.pagedesigner.css2.layout.CSSFigure.translateToAbsolute()


      this.add(childFigure);

      FlowBox box = (FlowBox) fragments.get(i);
      Rectangle rect = new Rectangle(box.getX(), box.getY(), box.getWidth(), box
          .getHeight());
      cssfigure.translateToAbsolute(rect);

      childFigure.translateToRelative(rect);
      childFigure.setBounds(rect);

      createCornerHandles(cssfigure, box);
View Full Code Here


      EditPart containerEditPart = position.getContainerPart();
      if (containerEditPart instanceof TextEditPart) {
        CSSTextFigure figure = (CSSTextFigure) ((TextEditPart) containerEditPart)
            .getFigure();
        ret = figure.calculateCaretPosition(position.getOffset());
        figure.translateToAbsolute(ret);
        ret.width = CaretUpdater.CARET_WIDTH;
      } else {
        int offset = position.getOffset();
        // there is no child
        if (containerEditPart.getChildren().isEmpty()
View Full Code Here

          }

          ret = new Rectangle(bounds.x + CARET_OFFSET, bounds.y,
              CaretUpdater.CARET_WIDTH, bounds.height);

          figure.translateToAbsolute(ret);
        } else if (offset >= 0
            && offset <= containerEditPart.getChildren().size()) {
          ret = getRefRect(position);
        }
      }
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.