org.eclipse.jface.util.Geometry.getLocation()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(99)

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

Geometry.getLocation介绍

[英]Returns the x,y position of the given rectangle. For normalized rectangles (rectangles with positive width and height), this is the upper-left corner of the rectangle.
[中]返回给定矩形的x,y位置。对于规格化矩形(宽度和高度为正的矩形),这是矩形的左上角。

代码示例

代码示例来源: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() {
  int caret= fContentAssistSubjectControlAdapter.getCaretOffset();
  Rectangle location= fContentAssistant.getLayoutManager().computeBoundsBelowAbove(fProposalShell, fSize == null ? fProposalShell.getSize() : fSize, caret, this);
  return Geometry.getLocation(location);
}

代码示例来源: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() {
  int caret= fContentAssistSubjectControlAdapter.getCaretOffset();
  Rectangle location= fContentAssistant.getLayoutManager().computeBoundsBelowAbove(fProposalShell, fSize == null ? fProposalShell.getSize() : fSize, caret, this);
  return Geometry.getLocation(location);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

Point location= Geometry.getLocation(controlBounds);
Point size= Geometry.getSize(controlBounds);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

Point location= Geometry.getLocation(controlBounds);
Point size= Geometry.getSize(controlBounds);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

location= Geometry.getLocation(bounds);
location= Geometry.getLocation(controlBounds);
size= Geometry.getSize(controlBounds);
informationControl.setLocation(location);

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

location= Geometry.getLocation(bounds);
location= Geometry.getLocation(controlBounds);
size= Geometry.getSize(controlBounds);
informationControl.setLocation(location);

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

return Geometry.getLocation(bestBounds);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

return Geometry.getLocation(bestBounds);

相关文章