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

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

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

LC.getGridGapX介绍

[英]If non-null (null is default) these value will be used as the default gaps between the columns in the grid.
[中]如果非-nullnull为默认值),这些值将用作网格中列之间的默认间距。

代码示例

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

BoundSize gridGapX = lc.getGridGapX();
BoundSize gridGapY = lc.getGridGapY();
if (gridGapX != null || gridGapY != null) {

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

String[] gaps = toTrimmedTokens(part.substring(4).trim(), ' ');
lc.setGridGapX(parseBoundSize(gaps[0], true, true));
lc.setGridGapY(gaps.length > 1 ? parseBoundSize(gaps[1], true, false) : lc.getGridGapX());
continue;

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

BoundSize defGap = isHor ? lc.getGridGapX() : lc.getGridGapY();
if (defGap == null)
  defGap = isHor ? PlatformDefaults.getGridGapX() : PlatformDefaults.getGridGapY();

相关文章