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

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

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

ToolBar.getSize介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

@Override
public void setBounds( Rectangle bounds ) {
 Point oldSize = getSize();
 super.setBounds( bounds );
 if( !oldSize.equals( getSize() ) ) {
  layoutItems();
 }
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void showMenu(ToolBar toolBar) {
  Menu menu= getMenuManager().createContextMenu(toolBar);
  menu.setLocation(toolBar.toDisplay(0, toolBar.getSize().y));
  fIsMenuUp= true;
  menu.setVisible(true);
}

代码示例来源:origin: org.eclipse.xtext/ui

protected void showMenu(ToolBar toolBar) {
  Menu menu = getMenuManager().createContextMenu(toolBar);
  menu.setLocation(toolBar.toDisplay(0, toolBar.getSize().y));
  iSMenuUp = true;
  menu.setVisible(true);
}

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

private void showMenu(ToolBar toolBar) {
  Menu menu= getMenuManager().createContextMenu(toolBar);
  menu.setLocation(toolBar.toDisplay(0, toolBar.getSize().y));
  fIsMenuUp= true;
  menu.setVisible(true);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void showMenu(ToolBar toolBar) {
  Menu menu= getMenuManager().createContextMenu(toolBar);
  menu.setLocation(toolBar.toDisplay(0, toolBar.getSize().y));
  fIsMenuUp= true;
  menu.setVisible(true);
}

代码示例来源:origin: stackoverflow.com

final int trimSize = treeToolBar.getSize().x - textItem.getWidth() - item1.getWidth() - item2.getWidth();
    final int toolbarWidth = treeToolBar.getSize().x;
    final int itemsWidth = textItem.getWidth() + item1.getWidth() + item2.getWidth();
    final int separatorWidth = toolbarWidth - itemsWidth - trimSize;

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

Point beforePack = layoutBar.getSize();
layoutBar.pack(true);
Point afterPack = layoutBar.getSize();

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

Point beforePack = layoutBar.getSize();
layoutBar.pack(true);
Point afterPack = layoutBar.getSize();

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

top += toolBarPadding.top;
int innerParentWidth = parent.getSize().x - toolBarPadding.left - toolBarPadding.right;
left += toolBarPadding.left + innerParentWidth / 2 - width / 2;
left = Math.max( left, 0 );
int innerParentHeight = parent.getSize().y
           - ( toolBarPadding.top + toolBarPadding.bottom )
           - ( border.top + border.bottom );

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

Point beforePack = layoutBar.getSize();
layoutBar.pack(true);
Point afterPack = layoutBar.getSize();

相关文章

ToolBar类方法