org.eclipse.swt.widgets.Shell.getBorderWidth()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.eclipse.swt.widgets.Shell.getBorderWidth()方法的一些代码示例,展示了Shell.getBorderWidth()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Shell.getBorderWidth()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Shell
类名称:Shell
方法名:getBorderWidth

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) {

相关文章

微信公众号

最新文章

更多

Shell类方法