Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
public class: GroupLayout.SequentialGroup [javadoc | source]
java.lang.Object
   javax.swing.GroupLayout.Spring
      javax.swing.GroupLayout.Group
         javax.swing.GroupLayout$SequentialGroup
A {@code Group} that positions and sizes its elements sequentially, one after another. This class has no public constructor, use the {@code createSequentialGroup} method to create one.

In order to align a {@code SequentialGroup} along the baseline of a baseline aligned {@code ParallelGroup} you need to specify which of the elements of the {@code SequentialGroup} is used to determine the baseline. The element used to calculate the baseline is specified using one of the {@code add} methods that take a {@code boolean}. The last element added with a value of {@code true} for {@code useAsBaseline} is used to calculate the baseline.

Fields inherited from javax.swing.GroupLayout$Group:
springs
Constructor:
 SequentialGroup() 
Method from javax.swing.GroupLayout$SequentialGroup Summary:
addComponent,   addComponent,   addComponent,   addComponent,   addContainerGap,   addContainerGap,   addGap,   addGap,   addGroup,   addGroup,   addPreferredGap,   addPreferredGap,   addPreferredGap,   addPreferredGap,   getBaseline,   getBaselineResizeBehavior,   insertAutopadding,   operator,   setValidSize
Methods from javax.swing.GroupLayout$Group:
addComponent,   addComponent,   addGap,   addGap,   addGroup,   addSpring,   calculateAutopadding,   calculateMaximumSize,   calculateMinimumSize,   calculatePreferredSize,   calculateSize,   getSpring,   getSpringSize,   indexOf,   insertAutopadding,   operator,   removeAutopadding,   setSize,   setValidSize,   unsetAutopadding,   willHaveZeroSize
Methods from javax.swing.GroupLayout$Spring:
calculateMaximumSize,   calculateMinimumSize,   calculatePreferredSize,   constrain,   getAlignment,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getParent,   getPreferredSize,   getSize,   isResizable,   setAlignment,   setParent,   setSize,   unset,   willHaveZeroSize
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.GroupLayout$SequentialGroup Detail:
 public SequentialGroup addComponent(Component component) 
    {@inheritDoc}
 public SequentialGroup addComponent(boolean useAsBaseline,
    Component component) 
    Adds a {@code Component} to this {@code Group}.
 public SequentialGroup addComponent(Component component,
    int min,
    int pref,
    int max) 
    {@inheritDoc}
 public SequentialGroup addComponent(boolean useAsBaseline,
    Component component,
    int min,
    int pref,
    int max) 
    Adds a {@code Component} to this {@code Group} with the specified size.
 public SequentialGroup addContainerGap() 
    Adds an element representing the preferred gap between an edge the container and components that touch the border of the container. This has no effect if the added gap does not touch an edge of the parent container.

    The element created to represent the gap is not resizable.

 public SequentialGroup addContainerGap(int pref,
    int max) 
    Adds an element representing the preferred gap between one edge of the container and the next or previous {@code Component} with the specified size. This has no effect if the next or previous element is not a {@code Component} and does not touch one edge of the parent container.
 public SequentialGroup addGap(int size) 
    {@inheritDoc}
 public SequentialGroup addGap(int min,
    int pref,
    int max) 
    {@inheritDoc}
 public SequentialGroup addGroup(Group group) 
    {@inheritDoc}
 public SequentialGroup addGroup(boolean useAsBaseline,
    Group group) 
    Adds a {@code Group} to this {@code Group}.
 public SequentialGroup addPreferredGap(ComponentPlacement type) 
    Adds an element representing the preferred gap between the nearest components. During layout, neighboring components are found, and the size of the added gap is set based on the preferred gap between the components. If no neighboring components are found the gap has a size of {@code 0}.

    The element created to represent the gap is not resizable.

 public SequentialGroup addPreferredGap(JComponent comp1,
    JComponent comp2,
    ComponentPlacement type) 
    Adds an element representing the preferred gap between two components. The element created to represent the gap is not resizable.
 public SequentialGroup addPreferredGap(ComponentPlacement type,
    int pref,
    int max) 
    Adds an element representing the preferred gap between the nearest components. During layout, neighboring components are found, and the minimum of this gap is set based on the size of the preferred gap between the neighboring components. If no neighboring components are found the minimum size is set to 0.
 public SequentialGroup addPreferredGap(JComponent comp1,
    JComponent comp2,
    ComponentPlacement type,
    int pref,
    int max) 
    Adds an element representing the preferred gap between two components.
 int getBaseline() 
 BaselineResizeBehavior getBaselineResizeBehavior() 
  void insertAutopadding(int axis,
    List<AutoPreferredGapSpring> leadingPadding,
    List<AutoPreferredGapSpring> trailingPadding,
    List<ComponentSpring> leading,
    List<ComponentSpring> trailing,
    boolean insert) 
 int operator(int a,
    int b) 
  void setValidSize(int axis,
    int origin,
    int size)