本文整理了Java中net.miginfocom.layout.LC.isTopToBottom()
方法的一些代码示例,展示了LC.isTopToBottom()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LC.isTopToBottom()
方法的具体详情如下:
包路径:net.miginfocom.layout.LC
类名称:LC
方法名:isTopToBottom
[英]If the layout should go from the default top-to-bottom in the grid instead of the optional bottom-to-top.
[中]如果布局应在网格中从默认的自上而下,而不是从可选的自下而上。
代码示例来源:origin: com.miglayout/miglayout-core
boolean fromEnd = !(isRows ? lc.isTopToBottom() : LayoutUtil.isLeftToRight(lc, container));
TreeSet<Integer> primIndexes = isRows ? rowIndexes : colIndexes;
TreeSet<Integer> secIndexes = isRows ? colIndexes : rowIndexes;
for (int cwIx = 0; cwIx < cell.compWraps.size(); cwIx++) {
CompWrap cw = cell.compWraps.get(cwIx);
boolean rowBaselineAlign = (isRows && lc.isTopToBottom() && dc.getAlignOrDefault(!isRows) == UnitValue.BASELINE_IDENTITY); // Disable baseline for bottomToTop since I can not verify it working.
boolean isBaseline = isRows && cw.isBaselineAlign(rowBaselineAlign);
代码示例来源:origin: com.miglayout/miglayout-ideutil
if (lc.isTopToBottom() == false)
sb.append(asAPI ? ".bottomToTop()" : ",btt");
代码示例来源:origin: com.miglayout/miglayout-core
private void layoutInOneDim(int refSize, UnitValue align, boolean isRows, Float[] defaultPushWeights)
boolean fromEnd = !(isRows ? lc.isTopToBottom() : LayoutUtil.isLeftToRight(lc, container));
DimConstraint[] primDCs = (isRows ? rowConstr : colConstr).getConstaints();
FlowSizeSpec fss = isRows ? rowFlowSpecs : colFlowSpecs;
内容来源于网络,如有侵权,请联系作者删除!