本文整理了Java中org.eclipse.swt.widgets.Shell.getBorderWidth()
方法的一些代码示例,展示了Shell.getBorderWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Shell.getBorderWidth()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Shell
类名称:Shell
方法名:getBorderWidth
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
/**
* Returns the graphical location at which this popup should be made visible.
*
* @return the location of this popup
*/
private Point getLocation() {
StyledText text= fViewer.getTextWidget();
Point selection= text.getSelection();
Point p= text.getLocationAtOffset(selection.x);
p.x -= fProposalShell.getBorderWidth();
if (p.x < 0) p.x= 0;
if (p.y < 0) p.y= 0;
p= new Point(p.x, p.y + text.getLineHeight(selection.x));
p= text.toDisplay(p);
return p;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
/**
* Returns the graphical location at which this popup should be made visible.
*
* @return the location of this popup
*/
private Point getLocation() {
StyledText text= fViewer.getTextWidget();
Point selection= text.getSelection();
Point p= text.getLocationAtOffset(selection.x);
p.x -= fProposalShell.getBorderWidth();
if (p.x < 0) p.x= 0;
if (p.y < 0) p.y= 0;
p= new Point(p.x, p.y + text.getLineHeight(selection.x));
p= text.toDisplay(p);
return p;
}
代码示例来源:origin: org.codehaus.openxma/xmartserver
protected Point getMinSize() {
Point size = getButtonComposite().getSize();
int bottomEnd = getButtonComposite().getLocation().y + size.y;
int minWidth = size.x + 2*scaler.convertXToCurrent(HORIZONTAL_OFFSET) + 2*getShell().getBorderWidth();
int minHeight = bottomEnd + scaler.convertYToCurrent(SHELL_DEFAULT_MIN_HEIGHT);
return new Point(minWidth,minHeight);
}
代码示例来源:origin: org.codehaus.openxma/xmartclient
protected Point getMinSize() {
Point size = getButtonComposite().getSize();
int bottomEnd = getButtonComposite().getLocation().y + size.y;
int minWidth = size.x + 2*scaler.convertXToCurrent(HORIZONTAL_OFFSET) + 2*getShell().getBorderWidth();
int minHeight = bottomEnd + scaler.convertYToCurrent(SHELL_DEFAULT_MIN_HEIGHT);
return new Point(minWidth,minHeight);
}
代码示例来源:origin: BiglySoftware/BiglyBT
size = toolTipLabel.computeSize(600, SWT.DEFAULT, true);
size.x += toolTipShell.getBorderWidth() * 2 + 2;
size.y += toolTipShell.getBorderWidth() * 2;
try {
size.x += toolTipShell.getBorderWidth() * 2 + (f.marginWidth * 2);
size.y += toolTipShell.getBorderWidth() * 2 + (f.marginHeight * 2);
} catch (NoSuchFieldError e) {
代码示例来源:origin: BiglySoftware/BiglyBT
size = toolTipLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT);
size.x += toolTipShell.getBorderWidth() * 2 + 2;
size.y += toolTipShell.getBorderWidth() * 2;
try {
size.x += toolTipShell.getBorderWidth() * 2 + (f.marginWidth * 2);
size.y += toolTipShell.getBorderWidth() * 2 + (f.marginHeight * 2);
} catch (NoSuchFieldError e) {
内容来源于网络,如有侵权,请联系作者删除!