org.eclipse.swt.widgets.Table#getItemHeight ( )源码实例Demo

下面列出了org.eclipse.swt.widgets.Table#getItemHeight ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: xtext-eclipse   文件: SWTUtil.java
public static int getTableHeightHint(Table table, int rows) {
	if (table.getFont().equals(JFaceResources.getDefaultFont()))
		table.setFont(JFaceResources.getDialogFont());
	int result = table.getItemHeight() * rows + table.getHeaderHeight();
	if (table.getLinesVisible())
		result += table.getGridLineWidth() * (rows - 1);
	return result;
}
 
源代码2 项目: APICloud-Studio   文件: SWTUtil.java
public static int getTableHeightHint(Table table, int rows)
{
	if (table.getFont().equals(JFaceResources.getDefaultFont()))
		table.setFont(JFaceResources.getDialogFont());
	int result = table.getItemHeight() * rows + table.getHeaderHeight();
	if (table.getLinesVisible())
		result += table.getGridLineWidth() * (rows - 1);
	return result;
}
 
源代码3 项目: Eclipse-Postfix-Code-Completion   文件: SWTUtil.java
public static int getTableHeightHint(Table table, int rows) {
	if (table.getFont().equals(JFaceResources.getDefaultFont()))
		table.setFont(JFaceResources.getDialogFont());
	int result= table.getItemHeight() * rows + table.getHeaderHeight();
	if (table.getLinesVisible())
		result+= table.getGridLineWidth() * (rows - 1);
	return result;
}
 
源代码4 项目: Pydev   文件: SWTUtil.java
public static int getTableHeightHint(Table table, int rows) {
    if (table.getFont().equals(JFaceResources.getDefaultFont())) {
        table.setFont(JFaceResources.getDialogFont());
    }
    int result = table.getItemHeight() * rows + table.getHeaderHeight();
    if (table.getLinesVisible()) {
        result += table.getGridLineWidth() * (rows - 1);
    }
    return result;
}