Class StatelessCardLayout
java.lang.Object
com.intellij.ui.components.panels.StatelessCardLayout
- All Implemented Interfaces:
LayoutManager,LayoutManager2
This class is intended to lay out only one visible component.
It takes into account not only a minimum size of a component,
but also its maximum size. This class uses a component alignment
to lay out a component whose maximum size less than a container size.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component component, Object constraints) voidaddLayoutComponent(String name, Component component) floatgetLayoutAlignmentX(Container container) floatgetLayoutAlignmentY(Container container) voidinvalidateLayout(Container container) voidlayoutContainer(Container container) maximumLayoutSize(Container container) minimumLayoutSize(Container container) preferredLayoutSize(Container container) voidremoveLayoutComponent(Component component) static voidShows the specified component if necessary and hides other components in the same container.static JPanelCreates a simple panel with this layout manager and the specified component.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StatelessCardLayout
public StatelessCardLayout()
-
-
Method Details
-
wrap
Creates a simple panel with this layout manager and the specified component.- Parameters:
component- a component to add if necessary- Returns:
- new panel with this layout manager and the specified component
- See Also:
-
show
Shows the specified component if necessary and hides other components in the same container.- Parameters:
visible- a component to show
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager2
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
invalidateLayout
- Specified by:
invalidateLayoutin interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentXin interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentYin interfaceLayoutManager2
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
maximumLayoutSize
- Specified by:
maximumLayoutSizein interfaceLayoutManager2
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-