Lines Matching refs:alignment

109  * than {@code c1} they are aligned based on the alignment specified
110 * for the component (if specified) or the default alignment of the
112 * with an alignment of {@code LEADING}. If the component orientation were
601 * Creates and returns a {@code ParallelGroup} with an alignment of
614 * alignment. This is a cover method for the more general {@code
618 * @param alignment the alignment for the elements of the group
619 * @throws IllegalArgumentException if {@code alignment} is {@code null}
624 public ParallelGroup createParallelGroup(Alignment alignment) {
625 return createParallelGroup(alignment, true);
630 * alignment and resize behavior. The {@code
631 * alignment} argument specifies how children elements are
633 * ParallelGroup} with an alignment of {@code TRAILING} is given
638 * Baseline alignment is only useful when used along the vertical
639 * axis. A {@code ParallelGroup} created with a baseline alignment
645 * @param alignment the alignment for the elements of the group
649 * @throws IllegalArgumentException if {@code alignment} is {@code null}
654 public ParallelGroup createParallelGroup(Alignment alignment,
656 if (alignment == null) {
657 throw new IllegalArgumentException("alignment must be non null");
660 if (alignment == Alignment.BASELINE) {
663 return new ParallelGroup(alignment, resizable);
966 * Returns the alignment along the x axis. This specifies how
969 * where 0 represents alignment along the origin, 1 is aligned
975 * @return the alignment; this implementation returns {@code .5}
983 * Returns the alignment along the y axis. This specifies how
986 * where 0 represents alignment along the origin, 1 is aligned
992 * @return alignment; this implementation returns {@code .5}
1245 ", alignment=" + spring.getAlignment() +
1274 private Alignment alignment;
1319 // having to track alignment separately.
1320 void setAlignment(Alignment alignment) {
1321 this.alignment = alignment;
1328 return alignment;
2428 * {@code ParallelGroup}s created with an alignment other than
2440 * elements are aligned based on the specified alignment the
2441 * element was added with. If you do not specify an alignment, the
2442 * alignment specified for the {@code ParallelGroup} is used.
2445 * or {@code createParallelGroup} with an alignment of {@code BASELINE}.
2446 * If the group was not created with a baseline alignment, and you attempt
2447 * to add an element specifying a baseline alignment, an
2503 * specified alignment. If the child is smaller than the
2505 * alignment.
2507 * @param alignment the alignment
2510 * @throws IllegalArgumentException if {@code alignment} is
2513 public ParallelGroup addGroup(Alignment alignment, Group group) {
2514 checkChildAlignment(alignment);
2515 group.setAlignment(alignment);
2521 * the specified alignment.
2523 * @param alignment the alignment
2526 * @throws IllegalArgumentException if {@code alignment} is
2530 Alignment alignment) {
2531 return addComponent(component, alignment, DEFAULT_SIZE, DEFAULT_SIZE,
2537 * specified alignment and size.
2539 * @param alignment the alignment
2544 * @throws IllegalArgumentException if {@code alignment} is
2549 Alignment alignment, int min, int pref, int max) {
2550 checkChildAlignment(alignment);
2553 spring.setAlignment(alignment);
2586 Alignment alignment = spring.getAlignment();
2590 if (alignment == null) {
2591 alignment = childAlignment;
2593 switch (alignment) {
2633 private void checkChildAlignment(Alignment alignment) {
2634 checkChildAlignment(alignment, (this instanceof BaselineGroup));
2637 private void checkChildAlignment(Alignment alignment,
2639 if (alignment == null) {
2642 if (!allowsBaseline && alignment == Alignment.BASELINE) {
2867 Alignment alignment = spring.getAlignment();
2868 if (alignment == null || alignment == Alignment.BASELINE) {