Examples of translateToAbsolute()


Examples of org.eclipse.draw2d.Connection.translateToAbsolute()

        PointList points = path.getPoints().getCopy();
        Point ref1, ref2, start, end;
        ref1 = new PrecisionPoint(points.getPoint(1));
        ref2 = new PrecisionPoint(points.getPoint(points.size() - 2));
        current.translateToAbsolute(ref1);
        current.translateToAbsolute(ref2);

        start = current.getSourceAnchor().getLocation(ref1).getCopy();
        end = current.getTargetAnchor().getLocation(ref2).getCopy();
View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToAbsolute()

        PointList points = path.getPoints().getCopy();
        Point ref1, ref2, start, end;
        ref1 = new PrecisionPoint(points.getPoint(1));
        ref2 = new PrecisionPoint(points.getPoint(points.size() - 2));
        current.translateToAbsolute(ref1);
        current.translateToAbsolute(ref2);

        start = current.getSourceAnchor().getLocation(ref1).getCopy();
        end = current.getTargetAnchor().getLocation(ref2).getCopy();

        current.translateToRelative(start);
View Full Code Here

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

     */
    protected Rectangle getCurrentTargetBounds(IFigure relocateFigure)
    {
        IFigure reference = getReferenceFigure();
        Rectangle targetBounds = new PrecisionRectangle(getReferenceBox().getResized(-1, -1));
        reference.translateToAbsolute(targetBounds);
        relocateFigure.translateToRelative(targetBounds);
        return targetBounds;
    }
   
    /**
 
View Full Code Here

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

          }

          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

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

            CaretUpdater.CARET_WIDTH, bounds.height);// new
      } else {
        rect = new Rectangle(bounds.getRight().x + CARET_OFFSET,
            bounds.y, CaretUpdater.CARET_WIDTH, bounds.height);// new
      }
      figure.translateToAbsolute(rect);
    } else {
      System.out.println("No concrete part?"); //$NON-NLS-1$
    }
    return rect;
  }
View Full Code Here

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

      fig.setLineWidth(1);
      fig.setForegroundColor(HOVER_FEEDBACK_COLOR);
      addFeedback(fig);

      Rectangle r = rects[i].getCopy();
      figure.translateToAbsolute(r);
      fig.translateToRelative(r);
      fig.setBounds(r);

      figures[i] = fig;
    }
View Full Code Here

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

          0, adapter.getColumnResizeWidth(), bounds.height
              - insets.getHeight());
    }
    rect.translate(bounds.x + insets.left, bounds.y + insets.top);

    figure.translateToAbsolute(rect);
    getMarqueeRectangleFigure().translateToRelative(rect);
    return rect;
  }

  /**
 
View Full Code Here

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

       
        addFeedback(_mouseOverBorder);
       
        IFigure hostFigure = getHostFigure();
        Rectangle r = hostFigure.getBounds().getCopy().expand(1, 1);
        hostFigure.translateToAbsolute(r);
        _mouseOverBorder.translateToRelative(r);

        _mouseOverBorder.setBounds(r);
    }
   
View Full Code Here

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

  public Rectangle getAbsoluteBounds(FlowBox box) {
    if (box != null) {
      IFigure figure = ((GraphicalEditPart) _part).getFigure();
      Rectangle rect = new Rectangle(box.getX(), box.getY(), box.getWidth(), box
          .getHeight());
      figure.translateToAbsolute(rect);
      return rect;
    }
    return null;
  }
View Full Code Here

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

  public void relocate(IFigure target) {

    IFigure reference = getReferenceFigure();
    Rectangle targetBounds = new PrecisionRectangle(getReferenceBox()
        .getResized(-1, -1));
    reference.translateToAbsolute(targetBounds);
    target.translateToRelative(targetBounds);
    targetBounds.resize(1, 1);

    Dimension targetSize = target.getPreferredSize();
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.