Examples of translateToRelative()


Examples of org.eclipse.draw2d.RectangleFigure.translateToRelative()

     * @param rect
     * @return the default rectangle figure for the requested visual rectangle
     */
    protected final RectangleFigure showFeedbackRect(Rectangle rect) {
        RectangleFigure pf = createFeedbackFigure();
        pf.translateToRelative(rect);
        pf.setBounds(rect);
        return pf;
    }
   
    /**
 
View Full Code Here

Examples of org.eclipse.draw2d.RectangleFigure.translateToRelative()

      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.RectangleFigure.translateToRelative()

  /**
   * @param rect
   */
  protected void showFeedbackRect(Rectangle rect) {
    RectangleFigure pf = getFeedbackFigure();
    pf.translateToRelative(rect);
    pf.setBounds(rect);
  }

  /**
   * @return Returns the _forUpdate.
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.layout.CSSTextFigure.translateToRelative()

      Point p) {
    if (host.getFigure() instanceof CSSTextFigure) {
      CSSTextFigure figure = (CSSTextFigure) host.getFigure();
      // make a copy to not destroy the original o
      p = p.getCopy();
      figure.translateToRelative(p);
      int offset = figure.getInsertionOffset(p);
      if (offset >= 0) {
        return new DesignPosition(host, offset);
      }
            return null;
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.