本文整理了Java中javax.swing.JToolBar.getMinimumSize()
方法的一些代码示例,展示了JToolBar.getMinimumSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.getMinimumSize()
方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称:JToolBar
方法名:getMinimumSize
暂无
代码示例来源:origin: com.metsci.glimpse/glimpse-docking
@Override
public Dimension minimumLayoutSize( Container parent )
{
int wTab = 0;
for ( View view : views )
{
ViewEntry viewEntry = viewMap.get( view.viewId );
wTab = max( wTab, viewEntry.tab.getMinimumSize( ).width );
}
int wBars = wTab + overflowBar.getMinimumSize( ).width + cornerBar.getMinimumSize( ).width + cornerRadius;
int hBars = lineThickness + max( tabBar.getMinimumSize( ).height, max( overflowBar.getMinimumSize( ).height + lineThickness, cornerBar.getMinimumSize( ).height + lineThickness ) );
return new Dimension( wBars, hBars );
}
} );
代码示例来源:origin: com.metsci.glimpse/glimpse-docking
int wCornerBar = cornerBar.getMinimumSize( ).width;
int wOverflowBar = overflowBar.getMinimumSize( ).width;
int wTabBar = tabBar.getMinimumSize( ).width;
int wAvail = wTotal - wCornerBar - ( needsOverflow ? wOverflowBar : 0 );
if ( wTabBar <= wAvail ) break;
int wTabBar = tabBar.getMinimumSize( ).width;
tabBar.setBounds( xTabBar, y, wTabBar, hTotal );
int wViewBar = xCornerBar - xViewBar;
if ( viewBar.getMinimumSize( ).width <= wViewBar )
代码示例来源:origin: Waikato/weka-trunk
addWidgetToToolBar(fixedTools2, Widgets.STOP_BUTTON.toString(), stopB);
Dimension d = playB.getPreferredSize();
Dimension d2 = fixedTools2.getMinimumSize();
Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools2.setPreferredSize(d3);
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
addWidgetToToolBar(fixedTools2, Widgets.STOP_BUTTON.toString(), stopB);
Dimension d = playB.getPreferredSize();
Dimension d2 = fixedTools2.getMinimumSize();
Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools2.setPreferredSize(d3);
代码示例来源:origin: Waikato/weka-trunk
Dimension d2 = fixedTools.getMinimumSize();
Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools.setPreferredSize(d3);
Dimension d2 = fixedTools2.getMinimumSize();
Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools2.setPreferredSize(d3);
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
Dimension d2 = fixedTools.getMinimumSize();
Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools.setPreferredSize(d3);
Dimension d2 = fixedTools2.getMinimumSize();
Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools2.setPreferredSize(d3);
代码示例来源:origin: Waikato/weka-trunk
addWidgetToToolBar(fixedTools, Widgets.HELP_BUTTON.toString(), helpB);
Dimension d = undoB.getPreferredSize();
Dimension d2 = fixedTools.getMinimumSize();
Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools.setPreferredSize(d3);
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
addWidgetToToolBar(fixedTools, Widgets.HELP_BUTTON.toString(), helpB);
Dimension d = undoB.getPreferredSize();
Dimension d2 = fixedTools.getMinimumSize();
Dimension d3 = new Dimension(d2.width, d.height + 4);
fixedTools.setPreferredSize(d3);
内容来源于网络,如有侵权,请联系作者删除!