public class AlignedBoxLayout
extends javax.swing.BoxLayout
Modifier and Type | Class and Description |
---|---|
static interface |
AlignedBoxLayout.AlignedBox
Interface to be implemented by components that will be aligned using this
layout manager.
|
Constructor and Description |
---|
AlignedBoxLayout(java.awt.Container container,
int axis)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
layoutContainer(java.awt.Container container)
Lay out a container.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container container)
Compute the preferred size of a container, given the components it contains
|
public AlignedBoxLayout(java.awt.Container container, int axis)
container
- the container to be laid outaxis
- the axis along which to lay out the componentspublic void layoutContainer(java.awt.Container container)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class javax.swing.BoxLayout
container
- the container to be laid outpublic java.awt.Dimension preferredLayoutSize(java.awt.Container container)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class javax.swing.BoxLayout
container
- the container