Package org.eclipse.wb.draw2d.geometry

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


      bounds =
          new Rectangle(0,
              interval.begin,
              ((GraphicalEditPart) getParent()).getFigure().getSize().width,
              interval.length + 1);
      bounds.translate(0, getOffset().y);
    }
    // set bounds
    getFigure().setBounds(bounds);
  }
View Full Code Here


        Rectangle bounds =
            SmartClientUtils.getAbsoluteBounds(form).getTranslated(
                getAbsoluteBounds().getLocation().getNegated());
        // shift on parent
        int inset = getFormItemShift();
        bounds.translate(-inset, -inset);
        // set bounds
        formItemInfo.setModelBounds(bounds);
      }
    }
  }
View Full Code Here

    super.refresh_fetch();
    // correct corrupted bounds
    Point shiftPoint = getBounds().getLocation().getNegated();
    for (StatefulCanvasInfo button : getButtons()) {
      Rectangle buttonBounds = new Rectangle(button.getModelBounds());
      buttonBounds.translate(shiftPoint);
      button.setBounds(buttonBounds);
    }
  }

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

      bounds =
          new Rectangle(interval.begin,
              0,
              interval.length + 1,
              ((GraphicalEditPart) getParent()).getFigure().getSize().height);
      bounds.translate(getOffset().x, 0);
    }
    // set bounds
    getFigure().setBounds(bounds);
  }
View Full Code Here

        bounds.resize(-barThickness, 0);
      }
      // crop insets
      bounds.crop(tabSet.getTabInsets());
      // translate to TabSet
      bounds.translate(tabSet.getModelBounds().getLocation().getNegated());
      // ready
      setModelBounds(bounds);
      // process children
      super.refresh_fetch();
    }
View Full Code Here

      bounds =
          new Rectangle(interval.begin,
              0,
              interval.length + 1,
              ((GraphicalEditPart) getParent()).getFigure().getSize().height);
      bounds.translate(getOffset().x, 0);
    }
    // set bounds
    getFigure().setBounds(bounds);
  }
View Full Code Here

      bounds =
          new Rectangle(0,
              interval.begin,
              ((GraphicalEditPart) getParent()).getFigure().getSize().width,
              interval.length + 1);
      bounds.translate(0, getOffset().y);
    }
    // set bounds
    getFigure().setBounds(bounds);
  }
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.