charvax.swing
public class BoxLayout extends java.lang.Object implements LayoutManager
Constructor and Description |
---|
BoxLayout(Container target_,
int axis_)
Creates a layout manager that will lay out its components either
left-to-right or top-to-bottom, as specified by the axis_ parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
doLayout(Container container_)
This is called when the size of the container has already been
calculated.
|
Dimension |
minimumSize(Container container_)
Calculate the minimum-size rectangle that can enclose all the
components in the given container.
|
public static final int X_AXIS
public static final int Y_AXIS
public BoxLayout(Container target_, int axis_)
target_
- The container to be laid out. This parameter is not
used, but is present for compatibility with the javax.swing.BoxLayout
constructor).axis_
- The axis in which components wil be laid out. Must be
X_AXIS or Y_AXIS.public Dimension minimumSize(Container container_)
minimumSize
in interface LayoutManager
public void doLayout(Container container_)
doLayout
in interface LayoutManager