Lines Matching refs:Group

43  * Grouping is done by instances of the {@link Group Group} class. {@code
49 * a {@code Group}, {@code Component}, or gap. A gap can be thought
62 * Group} is determined by the type of group. A {@code ParallelGroup}'s
193 * {@code Group}.
199 * <li>There are no public constructors for {@code Group}s; instead
225 * @see Group
233 * @see Group
247 * Group responsible for layout along the horizontal axis. This is NOT
250 private Group horizontalGroup;
253 * Group responsible for layout along the vertical axis. This is NOT
256 private Group verticalGroup;
513 * Sets the {@code Group} that positions and sizes
516 * @param group the {@code Group} that positions and sizes
520 public void setHorizontalGroup(Group group) {
522 throw new IllegalArgumentException("Group must be non-null");
529 * Returns the {@code Group} that positions and sizes components
532 * @return the {@code Group} responsible for positioning and
535 private Group getHorizontalGroup() {
540 return (Group)horizontalGroup.springs.get(index);
544 * Sets the {@code Group} that positions and sizes
547 * @param group the {@code Group} that positions and sizes
551 public void setVerticalGroup(Group group) {
553 throw new IllegalArgumentException("Group must be non-null");
560 * Returns the {@code Group} that positions and sizes components
563 * @return the {@code Group} responsible for positioning and
566 private Group getVerticalGroup() {
571 return (Group)verticalGroup.springs.get(index);
579 private Group createTopLevelGroup(Group specifiedGroup) {
838 * directly, instead you should use one of the {@code Group}
938 * directly, instead you should use one of the {@code Group}
1063 private void calculateAutopadding(Group group, int axis, int sizeType,
1096 private void registerComponents(Group group, int axis) {
1102 } else if (spring instanceof Group) {
1103 registerComponents((Group)spring, axis);
1250 if (spring instanceof Group) {
1251 List<Spring> springs = ((Group)spring).springs;
1424 * {@code Group} provides the basis for the two types of
1427 * or aligned ({@link ParallelGroup ParallelGroup}). {@code Group} and
1430 * {@code createParallelGroup}. Additionally, taking a {@code Group}
1434 * Various methods in {@code Group} and its subclasses allow you
1462 * Unless otherwise specified all the methods of {@code Group} and
1472 * that take a {@code Group} throw an {@code NullPointerException} if
1479 public abstract class Group extends Spring {
1484 Group() {
1489 * Adds a {@code Group} to this {@code Group}.
1491 * @param group the {@code Group} to add
1492 * @return this {@code Group}
1494 public Group addGroup(Group group) {
1499 * Adds a {@code Component} to this {@code Group}.
1502 * @return this {@code Group}
1504 public Group addComponent(Component component) {
1510 * Adds a {@code Component} to this {@code Group}
1520 * @return this {@code Group}
1522 public Group addComponent(Component component, int min, int pref,
1528 * Adds a rigid gap to this {@code Group}.
1531 * @return this {@code Group}
1535 public Group addGap(int size) {
1540 * Adds a gap to this {@code Group} with the specified size.
1547 * @return this {@code Group}
1549 public Group addGap(int min, int pref, int max) {
1565 Group addSpring(Spring spring) {
1665 * this Group
1668 * @param leading List of ComponentSprings that occur before this Group
1681 * Removes any AutopaddingSprings for this Group and its children.
1693 } else if (spring instanceof Group) {
1694 ((Group)spring).removeAutopadding();
1706 } else if (spring instanceof Group) {
1707 ((Group)spring).unsetAutopadding();
1719 } else if (spring instanceof Group) {
1720 ((Group)spring).calculateAutopadding(axis);
1741 * A {@code Group} that positions and sizes its elements
1758 public class SequentialGroup extends Group {
1767 public SequentialGroup addGroup(Group group) {
1772 * Adds a {@code Group} to this {@code Group}.
1774 * @param group the {@code Group} to add
1775 * @param useAsBaseline whether the specified {@code Group} should
1776 * be used to calculate the baseline for this {@code Group}
1777 * @return this {@code Group}
1779 public SequentialGroup addGroup(boolean useAsBaseline, Group group) {
1795 * Adds a {@code Component} to this {@code Group}.
1798 * be used to calculate the baseline for this {@code Group}
1800 * @return this {@code Group}
1821 * Adds a {@code Component} to this {@code Group}
1825 * be used to calculate the baseline for this {@code Group}
1833 * @return this {@code Group}
2224 } else if (spring instanceof Group) {
2225 // Forward call to child Group
2232 ((Group)spring).insertAutopadding(axis,
2373 * A {@code Group} that aligns and sizes it's children.
2454 public class ParallelGroup extends Group {
2468 public ParallelGroup addGroup(Group group) {
2502 * Adds a {@code Group} to this {@code ParallelGroup} with the
2504 * {@code Group} it is aligned based on the specified
2508 * @param group the {@code Group} to add
2513 public ParallelGroup addGroup(Alignment alignment, Group group) {
2525 * @return this {@code Group}
2546 * @return this {@code Group}
2623 } else if (spring instanceof Group) {
2624 ((Group)spring).insertAutopadding(axis, leadingPadding,
3627 ((Group)spring.getParent()).springs.remove(spring);