Lines Matching refs:group

44  * GroupLayout} supports two types of groups. A sequential group
46 * parallel group aligns its child elements in one of four ways.
48 * Each group may contain any number of elements, where an element is
62 * Group} is determined by the type of group. A {@code ParallelGroup}'s
67 * is a group representing the horizontal axis, and a group
68 * representing the vertical axis. The horizontal group is
71 * components contained in it. The vertical group is responsible for
75 * a horizontal and vertical group, otherwise an {@code IllegalStateException}
79 * The following diagram shows a sequential group along the horizontal
80 * axis. The sequential group contains three components. A parallel group
86 * the range of each group and element along each axis. The
90 * sequential group.
92 * The sequential group along the horizontal axis is rendered as a solid
93 * blue line. Notice the sequential group is the sum of the children elements
96 * Along the vertical axis the parallel group is the maximum of the height
98 * the parallel group has the same height.
101 * parallel group along the horizontal axis and the sequential group along
108 * group is sized to {@code c1}. As {@code c2} and {@code c3} are smaller
111 * parallel group. In the diagram {@code c2} and {@code c3} were created
116 * The following diagram shows a sequential group along both the horizontal
143 * // Create a sequential group for the horizontal axis.
147 * // The sequential group in turn contains two parallel groups.
148 * // One parallel group contains the labels, the other the text fields.
149 * // Putting the labels in a parallel group along the horizontal axis
159 * // Create a sequential group for the vertical axis.
162 * // The sequential group contains two parallel groups that align
163 * // the contents along the baseline. The first parallel group contains
164 * // the first label and text field, and the second parallel group contains
165 * // the second label and text field. By using a sequential group
179 * <ul><li>The horizontal axis consists of a sequential group containing two
180 * parallel groups. The first parallel group contains the labels,
181 * and the second parallel group contains the text fields.
182 * <li>The vertical axis consists of a sequential group
185 * group contains the first label and first text field, and
186 * the second group consists of the second label and second
196 * example, {@code group.addComponent(label1).addComponent(label2);} is
198 * {@code group.addComponent(label1); group.addComponent(label2);}.
248 * the user specified group, use getHorizontalGroup to dig that out.
254 * the user specified group, use getVerticalGroup to dig that out.
516 * @param group the {@code Group} that positions and sizes
518 * @throws IllegalArgumentException if group is {@code null}
520 public void setHorizontalGroup(Group group) {
521 if (group == null) {
524 horizontalGroup = createTopLevelGroup(group);
547 * @param group the {@code Group} that positions and sizes
549 * @throws IllegalArgumentException if group is {@code null}
551 public void setVerticalGroup(Group group) {
552 if (group == null) {
555 verticalGroup = createTopLevelGroup(group);
575 * Wraps the user specified group in a sequential group. If
580 SequentialGroup group = createSequentialGroup();
582 group.addSpring(new ContainerAutoPreferredGapSpring());
583 group.addGroup(specifiedGroup);
584 group.addSpring(new ContainerAutoPreferredGapSpring());
586 group.addGroup(specifiedGroup);
588 return group;
618 * @param alignment the alignment for the elements of the group
632 * positioned that do not fill the group. For example, if a {@code
645 * @param alignment the alignment for the elements of the group
646 * @param resizable {@code true} if the group is resizable; if the group
648 * minimum and maximum size of the group
670 * @param resizable whether the group is resizable
672 * the top or bottom of the group
873 * this layout are not in both a horizontal and vertical group
891 * this layout are not in both a horizontal and vertical group
906 * this layout are not in both a horizontal and vertical group
955 * this layout are not in both a horizontal and vertical group
1063 private void calculateAutopadding(Group group, int axis, int sizeType,
1065 group.unsetAutopadding();
1068 size = group.getMinimumSize(axis);
1071 size = group.getPreferredSize(axis);
1074 size = group.getMaximumSize(axis);
1079 group.setSize(axis, origin, size);
1080 group.calculateAutopadding(axis);
1087 " is not attached to a horizontal group");
1091 " is not attached to a vertical group");
1096 private void registerComponents(Group group, int axis) {
1097 List<Spring> springs = group.springs;
1445 * The following example adds {@code myComponent} to {@code group}
1450 * group.addComponent(myComponent, 100, 200, 300);
1452 * The following example adds {@code myComponent} to {@code group} using
1458 * group.addComponent(myComponent, GroupLayout.PREFERRED_SIZE,
1491 * @param group the {@code Group} to add
1494 public Group addGroup(Group group) {
1495 return addSpring(group);
1648 * will be combined. For example, a group that layed things out
1658 * Adjusts the autopadding springs in this group and its children.
1767 public SequentialGroup addGroup(Group group) {
1768 return (SequentialGroup)super.addGroup(group);
1774 * @param group the {@code Group} to add
1779 public SequentialGroup addGroup(boolean useAsBaseline, Group group) {
1780 super.addGroup(group);
1782 baselineSpring = group;
2381 * anchored to the bottom of the group. That is, the distance between the
2382 * baseline and the beginning of the group can be a constant
2383 * distance, or the distance between the end of the group and the
2397 * of the group.
2417 * baseline group and use it along the horizontal axis an
2430 * of the group in one of three ways: centered, anchored to the
2446 * If the group was not created with a baseline alignment, and you attempt
2468 public ParallelGroup addGroup(Group group) {
2469 return (ParallelGroup)super.addGroup(group);
2508 * @param group the {@code Group} to add
2513 public ParallelGroup addGroup(Alignment alignment, Group group) {
2515 group.setAlignment(alignment);
2516 return (ParallelGroup)addSpring(group);
3593 // horizontalMaster and/or verticalMaster reference the group of