Package org.eclipse.wb.draw2d.geometry

Examples of org.eclipse.wb.draw2d.geometry.Point.translate()


    // check creation flow
    if (location != null && useCreationFlow()) {
      // force set new translated bounds
      Insets insets = container.getClientAreaInsets();
      Point location_ = location.getCopy();
      location_.translate(insets);
      AbsoluteLayoutCreationFlowSupport.checkBounds(widget, location_, size);
      // apply creation flow
      AbsoluteLayoutCreationFlowSupport.apply(
          container,
          container.getChildrenWidgets(),
View Full Code Here


   * @return the offset of {@link Figure} with headers relative to the absolute layer.
   */
  public final Point getOffset() {
    Point offset = new Point(0, 0);
    FigureUtils.translateFigureToAbsolute2(m_containerFigure, offset);
    offset.translate(m_layout.getContainer().getClientAreaInsets());
    return offset;
  }

  ////////////////////////////////////////////////////////////////////////////
  //
View Full Code Here

  protected Rectangle translateCanvas2Section(CanvasInfo child, Point shift) {
    Point parentLocation = getModelBounds().getLocation();
    Point translatedLocation = parentLocation.getNegated().getTranslated(shift);
    if (!isRoot()) {
      UIObjectInfo root = (UIObjectInfo) getRootJava();
      translatedLocation.translate(root.getModelBounds().getLocation().getNegated());
    }
    Rectangle childBounds = child.getModelBounds();
    return childBounds.getTranslated(translatedLocation);
  }
}
View Full Code Here

   * @return the offset of {@link Figure} with headers relative to the absolute layer.
   */
  public final Point getOffset() {
    Point offset = new Point(0, 0);
    FigureUtils.translateFigureToAbsolute2(m_containerFigure, offset);
    offset.translate(m_layout.getContainer().getClientAreaInsets());
    return offset;
  }

  ////////////////////////////////////////////////////////////////////////////
  //
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.