Examples of translateToParent()


Examples of org.eclipse.draw2d.IFigure.translateToParent()

  Rectangle childBounds = part.getFigure().getBounds().getCopy();
 
  IFigure walker = part.getFigure().getParent();
 
  while (walker != ((GraphicalEditPart)part.getParent()).getFigure()) {
    walker.translateToParent(childBounds);
    walker = walker.getParent();
  }
 
  child.setBounds(childBounds);
 
View Full Code Here

Examples of org.eclipse.draw2d.IFigure.translateToParent()

    // pos is an integer relative to target's client area.
    // translate pos to absolute, and then make it relative to fig.
    int position = pos.intValue();
    PrecisionPoint loc = new PrecisionPoint(position, position);
    IFigure contentPane = ((GraphicalEditPart) getHost()).getContentPane();
    contentPane.translateToParent(loc);
    contentPane.translateToAbsolute(loc);

    if (location[offset] == null || !location[offset].equals(pos)) {
      location[offset] = pos;
      if (guide[offset] != null) {
View Full Code Here

Examples of org.eclipse.draw2d.IFigure.translateToParent()

  Rectangle childBounds = part.getFigure().getBounds().getCopy();
 
  IFigure walker = part.getFigure().getParent();
 
  while (walker != ((GraphicalEditPart)part.getParent()).getFigure()) {
    walker.translateToParent(childBounds);
    walker = walker.getParent();
  }
 
  child.setBounds(childBounds);
 
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.