Class VerticalLayout
java.lang.Object
com.intellij.ui.components.panels.VerticalLayout
- All Implemented Interfaces:
LayoutManager,LayoutManager2
This class is intended to lay out added components vertically.
It allows to add them into the TOP, CENTER, or BOTTOM group, which are aligned separately.
Every group can contain any amount of components. The specified gap is added between components,
and the double gap is added between groups of components.
NB!: this class must be modified together with the HorizontalLayout class accordingly
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVerticalLayout(int gap) Creates a layout with the specified gap.VerticalLayout(int gap, int alignment) Creates a layout with the specified gap and vertical alignment. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component component, Object constraints) voidaddLayoutComponent(String name, Component component) floatgetLayoutAlignmentX(Container target) floatgetLayoutAlignmentY(Container target) voidinvalidateLayout(Container target) voidlayoutContainer(Container container) maximumLayoutSize(Container target) minimumLayoutSize(Container container) preferredLayoutSize(Container container) voidremoveLayoutComponent(Component component)
-
Field Details
-
TOP
- See Also:
-
BOTTOM
- See Also:
-
CENTER
- See Also:
-
-
Constructor Details
-
VerticalLayout
public VerticalLayout(int gap) Creates a layout with the specified gap. All components will have preferred widths, but their widths will be set according to the container.- Parameters:
gap- vertical gap between components
-
VerticalLayout
public VerticalLayout(int gap, int alignment) Creates a layout with the specified gap and vertical alignment. All components will have preferred sizes.- Parameters:
gap- vertical gap between componentsalignment- horizontal alignment for components- See Also:
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager2
-
maximumLayoutSize
- Specified by:
maximumLayoutSizein interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentXin interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentYin interfaceLayoutManager2
-
invalidateLayout
- Specified by:
invalidateLayoutin interfaceLayoutManager2
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-