本文整理了Java中java.awt.CardLayout.minimumLayoutSize()
方法的一些代码示例,展示了CardLayout.minimumLayoutSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CardLayout.minimumLayoutSize()
方法的具体详情如下:
包路径:java.awt.CardLayout
类名称:CardLayout
方法名:minimumLayoutSize
[英]Calculates the minimum size for the specified panel.
[中]计算指定配电盘的最小尺寸。
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
/**
* Calculates the minimum size for the specified panel.
*
* @param parent the parent container in which to do the layout
* @return the minimum dimensions required to lay out the
* subcomponents of the specified container
* @see Container#doLayout
* @see CardLayout#preferredLayoutSize
*/
@Override
public Dimension minimumLayoutSize(Container parent) {
Dimension dimension = null;
if (useOnlyVisibleComponentDimension) {
Component comp = getVisibleComponent(parent);
if (comp != null) {
dimension = comp.getMinimumSize();
}
}
if (dimension == null) {
dimension = super.minimumLayoutSize(parent);
}
return dimension;
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-runtime
/**
* Calculates the minimum size for the specified panel.
*
* @param parent the parent container in which to do the layout
* @return the minimum dimensions required to lay out the
* subcomponents of the specified container
* @see Container#doLayout
* @see CardLayout#preferredLayoutSize
*/
@Override
public Dimension minimumLayoutSize(Container parent) {
Dimension dimension = null;
if (useOnlyVisibleComponentDimension) {
Component comp = getVisibleComponent(parent);
if (comp != null) {
dimension = comp.getMinimumSize();
}
}
if (dimension == null) {
dimension = super.minimumLayoutSize(parent);
}
return dimension;
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing
/**
* Calculates the minimum size for the specified panel.
*
* @param parent the parent container in which to do the layout
* @return the minimum dimensions required to lay out the
* subcomponents of the specified container
* @see java.awt.Container#doLayout
* @see java.awt.CardLayout#preferredLayoutSize
*/
@Override
public Dimension minimumLayoutSize(Container parent) {
Dimension dimension = null;
if (useOnlyVisibleComponentDimension) {
Component comp = getVisibleComponent(parent);
if (comp != null) {
dimension = comp.getMinimumSize();
}
}
if (dimension == null) {
dimension = super.minimumLayoutSize(parent);
}
return dimension;
}
内容来源于网络,如有侵权,请联系作者删除!