Package org.dyno.visual.swing.layouts

Examples of org.dyno.visual.swing.layouts.Bilateral


          actual = gap + pref_size + leading.getLeading();
          if (actual > pref)
            pref = actual;
        } else if (horizontal instanceof Bilateral) {
          int gap = layoutStyle.getPreferredGap((JComponent) target, (JComponent) me, ComponentPlacement.RELATED, SwingConstants.EAST, parent);
          Bilateral bilateral = (Bilateral) horizontal;
          int actual = gap + mins.width + bilateral.getTrailing();
          if (actual > min)
            min = actual;
          actual = gap + prefs.width + bilateral.getTrailing();
          if (actual > pref)
            pref = actual;
        }
      }
    }
View Full Code Here


    int w = parent.getWidth();
    Insets insets = parent.getInsets();
    int min = me.getMinimumSize().width;
    int pref = me.getPreferredSize().width;
    Spring spring = new Spring(min, pref);
    return new Bilateral(bounds.x - insets.left, w - bounds.x - bounds.width - insets.right, spring);
  }
View Full Code Here

          if (horizontal instanceof Trailing) {
            Trailing leading = (Trailing) horizontal;
            leading.setTrailing(leading.getTrailing() + delta_width);
            adjustHorizontalTrailingBy(target, delta_width);
          } else if (horizontal instanceof Bilateral) {
            Bilateral spring = (Bilateral) horizontal;
            spring.setTrailing(spring.getTrailing() + delta_width);
          }
        }
      }
    }
  }
View Full Code Here

          if (horizontal instanceof Leading) {
            Leading leading = (Leading) horizontal;
            leading.setLeading(leading.getLeading() + delta_width);
            adjustHorizontalLeadingBy(target, delta_width);
          } else if (horizontal instanceof Bilateral) {
            Bilateral spring = (Bilateral) horizontal;
            spring.setLeading(spring.getLeading() + delta_width);
          }
        }
      }
    }
  }
View Full Code Here

          if (vertical instanceof Trailing) {
            Trailing leading = (Trailing) vertical;
            leading.setTrailing(leading.getTrailing() + delta_height);
            adjustVerticalTrailingBy(target, delta_height);
          } else if (vertical instanceof Bilateral) {
            Bilateral spring = (Bilateral) vertical;
            spring.setTrailing(spring.getTrailing() + delta_height);
          }
        }
      }
    }
  }
View Full Code Here

          if (vertical instanceof Leading) {
            Leading leading = (Leading) vertical;
            leading.setLeading(leading.getLeading() + delta_height);
            adjustVerticalLeadingBy(target, delta_height);
          } else if (vertical instanceof Bilateral) {
            Bilateral spring = (Bilateral) vertical;
            spring.setLeading(spring.getLeading() + delta_height);
          }
        }
      }
    }
  }
View Full Code Here

  private void initComponents() {
    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    setLayout(new GroupLayout());
    add(getJLabel0(), new Constraints(new Leading(12, 12, 12), new Leading(12, 12, 12)));
    add(getJTextField0(), new Constraints(new Bilateral(123, 82, 4), new Leading(10, 12, 12)));
    add(getBrowseOldRoot(), new Constraints(new Trailing(12, 129, 129), new Leading(8, 12, 12)));
    add(getJLabel1(), new Constraints(new Leading(12, 100, 100), new Leading(38, 12, 12)));
    add(getJTextField1(), new Constraints(new Bilateral(123, 82, 6), new Leading(35, 12, 12)));
    add(getBrowseNewRoot(), new Constraints(new Trailing(12, 131, 131), new Leading(34, 12, 12)));
    add(getExecuteDiffCount(), new Constraints(new Trailing(12, 12, 12), new Leading(63, 12, 12)));
    add(getJScrollPane0(), new Constraints(new Bilateral(12, 12, 23), new Bilateral(90, 12, 23)));
    setSize(475, 258);
  }
View Full Code Here

        new Leading(16, 12, 12)));
    add(getJTextField1(), new Constraints(new Leading(125, 186, 12, 12),
        new Leading(50, 26, 12, 12)));
    add(getJTextField0(), new Constraints(new Leading(125, 186, 10, 10),
        new Leading(12, 26, 12, 12)));
    add(getJScrollPane0(), new Constraints(new Bilateral(12, 12, 22),
        new Bilateral(94, 12, 22)));
    add(getJButton1(), new Constraints(new Leading(370, 102, 12, 12),
        new Leading(15, 40, 37)));
    add(getJButton0(), new Constraints(new Leading(370, 102, 12, 12),
        new Leading(50, 12, 12)));
    setSize(500, 356);
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.layouts.Bilateral

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.