Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Text.computeTrim()


    public void relocate(CellEditor celleditor) {
        Text text = (Text) celleditor.getControl();
        Rectangle rect = label.getClientArea().getCopy();
        label.translateToAbsolute(rect);
        org.eclipse.swt.graphics.Rectangle trim = text.computeTrim(0, 0, 0, 0);
        rect.translate(trim.x, trim.y);
        rect.width += trim.width;
        rect.height += trim.height;
        text.setBounds(rect.x, rect.y, rect.width, rect.height);
    }
View Full Code Here


public void relocate(CellEditor celleditor) {
  Text text = (Text)celleditor.getControl();
  Rectangle rect = stickyNote.getClientArea();
  stickyNote.translateToAbsolute(rect);
  org.eclipse.swt.graphics.Rectangle trim = text.computeTrim(0, 0, 0, 0);
  rect.translate(trim.x, trim.y);
  rect.width += trim.width;
  rect.height += trim.height;
  text.setBounds(rect.x, rect.y, rect.width, rect.height);
}
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.