@Test public void testHbox() { Component c = ConstraintBuilder.hbox(5); assertEquals(c.getMinimumSize().width, 5); assertEquals(c.getMinimumSize().height, 0); assertEquals(c.getPreferredSize().width, 5); assertEquals(c.getPreferredSize().height, 0); assertEquals(c.getMaximumSize().width, 5); assertEquals(c.getMaximumSize().height, 0); Component c2 = ConstraintBuilder.hbox(5, 10, 15); assertEquals(c2.getMinimumSize().width, 5); assertEquals(c2.getMinimumSize().height, 0); assertEquals(c2.getPreferredSize().width, 10); assertEquals(c2.getPreferredSize().height, 0); assertEquals(c2.getMaximumSize().width, 15); assertEquals(c2.getMaximumSize().height, 0); }
public static Component hbox(int width) { return hbox(width,width,width); }
ConstraintBuilder { public static Component hbox(int width) { return hbox(width,width,width); } }
ConstraintBuilder { public static Component hbox(int width) { return hbox(width,width,width); } ConstraintBuilder(Container container); }
ConstraintBuilder { public static Component hbox(int width) { return hbox(width,width,width); } ConstraintBuilder(Container container); final ConstraintBuilder reset(); final ConstraintBuilder makeDefault(); ConstraintBuilder at(int row, int column); ConstraintBuilder span(int nRows, int nColumns); ConstraintBuilder insets(int top, int left, int bottom, int right); ConstraintBuilder hpad(int padding); ConstraintBuilder vpad(int padding); ConstraintBuilder baseline_w(); ConstraintBuilder baseline_centered(); ConstraintBuilder baseline_e(); ConstraintBuilder nw(); ConstraintBuilder sw(); ConstraintBuilder w(); ConstraintBuilder hfill(); ConstraintBuilder vfill(); ConstraintBuilder hvfill(); ConstraintBuilder weight(float weightx, float weighty); void add(Component component); ConstraintBuilder nextRow(); ConstraintBuilder nextColumn(); void add(Component... components); static Component hbox(int width); static Component hbox(int minWidth, int preferredWidth, int maxWidth); }
ConstraintBuilder { public static Component hbox(int width) { return hbox(width,width,width); } ConstraintBuilder(Container container); final ConstraintBuilder reset(); final ConstraintBuilder makeDefault(); ConstraintBuilder at(int row, int column); ConstraintBuilder span(int nRows, int nColumns); ConstraintBuilder insets(int top, int left, int bottom, int right); ConstraintBuilder hpad(int padding); ConstraintBuilder vpad(int padding); ConstraintBuilder baseline_w(); ConstraintBuilder baseline_centered(); ConstraintBuilder baseline_e(); ConstraintBuilder nw(); ConstraintBuilder sw(); ConstraintBuilder w(); ConstraintBuilder hfill(); ConstraintBuilder vfill(); ConstraintBuilder hvfill(); ConstraintBuilder weight(float weightx, float weighty); void add(Component component); ConstraintBuilder nextRow(); ConstraintBuilder nextColumn(); void add(Component... components); static Component hbox(int width); static Component hbox(int minWidth, int preferredWidth, int maxWidth); static final int DEFAULT_HPAD; }