Class CenterLayout
java.lang.Object
com.inductiveautomation.snap.swing.CenterLayout
- All Implemented Interfaces:
LayoutManager,LayoutManager2
A layout manager to simply center a component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component comp, Object constraints) LayoutManager method.voidaddLayoutComponent(String name, Component comp) LayoutManager method.getContent(Container aParent) Returns the content.floatgetLayoutAlignmentX(Container target) LayoutManager method.floatgetLayoutAlignmentY(Container target) LayoutManager method.voidinvalidateLayout(Container target) LayoutManager method.protected voidlayoutChild(Container aParent, Component aChild) Layout child.voidlayoutContainer(Container aParent) layoutContainermaximumLayoutSize(Container aParent) LayoutManager method.minimumLayoutSize(Container aParent) minimumLayoutSizepreferredLayoutSize(Container aParent) LayoutManager method.voidLayoutManager method.
-
Constructor Details
-
CenterLayout
public CenterLayout()
-
-
Method Details
-
layoutContainer
layoutContainer- Specified by:
layoutContainerin interfaceLayoutManager
-
layoutChild
Layout child. -
getContent
Returns the content. -
addLayoutComponent
LayoutManager method.- Specified by:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
LayoutManager method.- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
preferredLayoutSize
LayoutManager method.- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
addLayoutComponent
LayoutManager method.- Specified by:
addLayoutComponentin interfaceLayoutManager2
-
minimumLayoutSize
minimumLayoutSize- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
maximumLayoutSize
LayoutManager method.- Specified by:
maximumLayoutSizein interfaceLayoutManager2
-
getLayoutAlignmentX
LayoutManager method.- Specified by:
getLayoutAlignmentXin interfaceLayoutManager2
-
getLayoutAlignmentY
LayoutManager method.- Specified by:
getLayoutAlignmentYin interfaceLayoutManager2
-
invalidateLayout
LayoutManager method.- Specified by:
invalidateLayoutin interfaceLayoutManager2
-