本文整理了Java中org.eclipse.jface.util.Geometry.getLocation()
方法的一些代码示例,展示了Geometry.getLocation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.getLocation()
方法的具体详情如下:
包路径:org.eclipse.jface.util.Geometry
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!