Package org.jdesktop.swingx
Class VerticalLayout
java.lang.Object
org.jdesktop.swingx.VerticalLayout
- All Implemented Interfaces:
LayoutManager
,Serializable
- Direct Known Subclasses:
BasicTaskPaneContainerUI.VerticalLayoutUIResource
Organizes components in a vertical layout.
- Author:
- fred, Karl Schaefer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a layout without a gap between components.VerticalLayout
(int gap) Creates a layout with the specified gap between components. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(String name, Component comp) int
getGap()
The current gap to place between components.void
layoutContainer
(Container parent) minimumLayoutSize
(Container parent) preferredLayoutSize
(Container parent) void
void
setGap
(int gap) The new gap to place between components.
-
Constructor Details
-
VerticalLayout
public VerticalLayout()Creates a layout without a gap between components. -
VerticalLayout
public VerticalLayout(int gap) Creates a layout with the specified gap between components.- Parameters:
gap
- the gap between components
-
-
Method Details
-
getGap
public int getGap()The current gap to place between components.- Returns:
- the current gap
-
setGap
public void setGap(int gap) The new gap to place between components.- Parameters:
gap
- the new gap
-
preferredLayoutSize
-
layoutContainer
-
addLayoutComponent
This implementation does nothing.
- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
removeLayoutComponent
This implementation does nothing.
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-
minimumLayoutSize
This implementation defers to
LayoutManager.preferredLayoutSize(Container)
.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-