java.awt.CardLayout.minimumLayoutSize()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(132)

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

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;
}

相关文章