net.miginfocom.layout.LC.setFillX()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(69)

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

LC.setFillX介绍

[英]If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.
[中]如果布局应始终要求布局容器的整个边界,即使首选尺寸较小。

代码示例

代码示例来源:origin: com.miglayout/miglayout-core

/** Same functionality as calling {@link #setFillX(boolean)} with <code>true</code> only this method returns <code>this</code> for chaining multiple calls.
 * <p>
 * For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
 * @return <code>this</code> so it is possible to chain calls. E.g. <code>new LayoutConstraint().noGrid().gap().fill()</code>.
 */
public final LC fillX()
{
  setFillX(true);
  return this;
}

代码示例来源:origin: com.miglayout/miglayout-core

/** Same functionality as calling {@link #setFillX(boolean)} with <code>true</code> and {@link #setFillY(boolean)} with <code>true</code> conmbined.T his method returns
 * <code>this</code> for chaining multiple calls.
 * <p>
 * For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
 * @return <code>this</code> so it is possible to chain calls. E.g. <code>new LayoutConstraint().noGrid().gap().fill()</code>.
 */
public final LC fill()
{
  setFillX(true);
  setFillY(true);
  return this;
}

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

LC layoutConstraints = new LC();
layoutConstraints.setFillX(true);
super.setLayout(new MigLayout(layoutConstraints);

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

LC layoutConstraints = new LC();
layoutConstraints.setFillX(true);
layoutConstraints.setDebugMillis(500);
super.setLayout(new MigLayout(layoutConstraints);

代码示例来源:origin: com.miglayout/miglayout-core

lc.setFillX(part.length() == 4 || part.charAt(4) == 'x');
lc.setFillY(part.length() == 4 || part.charAt(4) == 'y');
continue;

相关文章