javax.swing.Spring.max()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(124)

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

Spring.max介绍

暂无

代码示例

代码示例来源:origin: opensourceBIM/BIMserver

parent.getComponent(i));
maxWidthSpring = Spring.max(maxWidthSpring, cons.getWidth());
maxHeightSpring = Spring.max(maxHeightSpring, cons.getHeight());

代码示例来源:origin: opensourceBIM/BIMserver

parent.getComponent(i));
maxWidthSpring = Spring.max(maxWidthSpring, cons.getWidth());
maxHeightSpring = Spring.max(maxHeightSpring, cons.getHeight());

代码示例来源:origin: opensourceBIM/BIMserver

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width,
            getConstraintsForCell(r, c, parent, cols).
              getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height,
            getConstraintsForCell(r, c, parent, cols).
              getHeight());

代码示例来源:origin: opensourceBIM/BIMserver

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width,
            getConstraintsForCell(r, c, parent, cols).
              getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height,
            getConstraintsForCell(r, c, parent, cols).
              getHeight());

代码示例来源:origin: org.ow2.jonas.autostart/utility

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: us.ihmc/IHMCJavaToolkit

parent.getComponent(i));
maxWidthSpring = Spring.max(maxWidthSpring, cons.getWidth());
maxHeightSpring = Spring.max(maxHeightSpring, cons.getHeight());

代码示例来源:origin: openmicroscopy/bioformats

layout.getConstraints(parent.getComponent(i));
maxWidthSpring = Spring.max(maxWidthSpring, cons.getWidth());
maxHeightSpring = Spring.max(maxHeightSpring, cons.getHeight());

代码示例来源:origin: org.boofcv/boofcv-swing

/**
   * Constrain it to the top of it's bottom panel and prevent it from getting crushed below it's size
   */
  public void constraintSouth(JComponent target, JComponent top, JComponent bottom, int padV ) {
    if( bottom == null ) {
      layout.putConstraint(SpringLayout.SOUTH, target, -padV, SpringLayout.SOUTH, this);
    } else {
      Spring a = Spring.sum(Spring.constant(-padV),layout.getConstraint(SpringLayout.NORTH,bottom));
      Spring b;
      if( top == null )
        b = Spring.sum(Spring.height(target),layout.getConstraint(SpringLayout.NORTH,this));
      else
        b = Spring.sum(Spring.height(target),layout.getConstraint(SpringLayout.SOUTH,top));

      layout.getConstraints(target).setConstraint(SpringLayout.SOUTH, Spring.max(a,b));
    }
  }
}

代码示例来源:origin: org.apache.uima/uimaj-tools

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
 width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
 height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: org.apache.airavata/common-utils

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: org.cytoscape/network-analyzer-impl

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: com.github.danielpacak.osgi.swingconsole/osgi.swingconsole

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: com.google.code.findbugs/findbugs

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: mucommander/mucommander

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width,
            getConstraintsForCell(r, c, parent, cols).
              getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height,
            getConstraintsForCell(r, c, parent, cols).
              getHeight());

代码示例来源:origin: org.apache.airavata/airavata-common-utils

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: us.ihmc/ihmc-java-toolkit

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width,
            getConstraintsForCell(r, c, parent, cols).
              getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height,
            getConstraintsForCell(r, c, parent, cols).
              getHeight());

代码示例来源:origin: org.sakaiproject.samigo/samigo-audio

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width,
            getConstraintsForCell(r, c, parent, cols).
              getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height,
            getConstraintsForCell(r, c, parent, cols).
              getHeight());

代码示例来源:origin: com.samskivert/samskivert

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: gaborbata/jpass

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
  width = Spring.max(width, getConstraintsForCell(r, c, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
  height = Spring.max(height, getConstraintsForCell(r, c, parent, cols).getHeight());

代码示例来源:origin: net.anwiba.commons/anwiba-commons-swing-core

Spring width = Spring.constant(0);
for (int r = 0; r < rows; r++) {
 width = Spring.max(width, getConstraintsForCell(c, r, parent, cols).getWidth());
Spring height = Spring.constant(0);
for (int c = 0; c < cols; c++) {
 height = Spring.max(height, getConstraintsForCell(c, row, parent, cols).getHeight());

相关文章