|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdesktop.layout.GroupLayout.Group
org.jdesktop.layout.GroupLayout.ParallelGroup
public class GroupLayout.ParallelGroup
A Group that lays out its elements on top of each
other. If a child element is smaller than the provided space it
is aligned based on the alignment of the child (if specified) or
on the alignment of the ParallelGroup.
GroupLayout.createParallelGroup()| Method Summary | |
|---|---|
GroupLayout.ParallelGroup |
add(java.awt.Component component)
Adds the specified Component. |
GroupLayout.ParallelGroup |
add(java.awt.Component component,
int min,
int pref,
int max)
Adds the specified Component. |
GroupLayout.ParallelGroup |
add(GroupLayout.Group group)
Adds the specified Group. |
GroupLayout.ParallelGroup |
add(int pref)
Adds a rigid gap. |
GroupLayout.ParallelGroup |
add(int alignment,
java.awt.Component component)
Adds the specified Component. |
GroupLayout.ParallelGroup |
add(int alignment,
java.awt.Component component,
int min,
int pref,
int max)
Adds the specified Component. |
GroupLayout.ParallelGroup |
add(int alignment,
GroupLayout.Group group)
Adds the specified Group as a child of this group. |
GroupLayout.ParallelGroup |
add(int min,
int pref,
int max)
Adds a gap with the specified size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public GroupLayout.ParallelGroup add(GroupLayout.Group group)
Group.
group - the Group to add
public GroupLayout.ParallelGroup add(java.awt.Component component)
component - the Component to add
ParallelGroup
public GroupLayout.ParallelGroup add(java.awt.Component component,
int min,
int pref,
int max)
Component. Min, pref and max
can be absolute values, or they can be one of
DEFAULT_SIZE or PREFERRED_SIZE. For
example, the following:
add(component, PREFERRED_SIZE, PREFERRED_SIZE, 1000);Forces a max of 1000, with the min and preferred equalling that of the preferred size of
component.
component - the Component to addmin - the minimum sizepref - the preferred sizemax - the maximum size
SequentialGroup
java.lang.IllegalArgumentException - if min, pref or max are
not positive and not one of PREFERRED_SIZE or DEFAULT_SIZE.public GroupLayout.ParallelGroup add(int pref)
pref - the size of the gap
ParallelGroup
java.lang.IllegalArgumentException - if min < 0 or pref < 0 or max < 0
or the following is not meant min <= pref <= max.
public GroupLayout.ParallelGroup add(int min,
int pref,
int max)
min - the minimum size of the gappref - the preferred size of the gapmax - the maximum size of the gap
ParallelGroup
java.lang.IllegalArgumentException - if min < 0 or pref < 0 or max < 0
or the following is not meant min <= pref <= max.
public GroupLayout.ParallelGroup add(int alignment,
GroupLayout.Group group)
Group as a child of this group.
alignment - the alignment of the Group.group - the Group to add
ParallelGroup
java.lang.IllegalArgumentException - if alignment is not one of
LEADING, TRAILING or
CENTER
public GroupLayout.ParallelGroup add(int alignment,
java.awt.Component component)
alignment - the alignment for the componentcomponent - the Component to add
Group
java.lang.IllegalArgumentException - if alignment is not one of
LEADING, TRAILING or
CENTER
public GroupLayout.ParallelGroup add(int alignment,
java.awt.Component component,
int min,
int pref,
int max)
Component. Min, pref and max
can be absolute values, or they can be one of
DEFAULT_SIZE or PREFERRED_SIZE. For
example, the following:
add(component, PREFERRED_SIZE, PREFERRED_SIZE, 1000);Forces a max of 1000, with the min and preferred equalling that of the preferred size of
component.
alignment - the alignment for the component.component - the Component to addmin - the minimum sizepref - the preferred sizemax - the maximum size
Group
java.lang.IllegalArgumentException - if min, pref or max are
not positive and not one of PREFERRED_SIZE or DEFAULT_SIZE.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||