Package edu.wisc.ssec.mcidasv.ui
Class PersistableSwatchChooserPanel.MainPanelLayout
java.lang.Object
edu.wisc.ssec.mcidasv.ui.PersistableSwatchChooserPanel.MainPanelLayout
- All Implemented Interfaces:
LayoutManager
- Enclosing class:
PersistableSwatchChooserPanel
This is the layout manager for the main panel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) This method is called when a new component is added to the container.voidlayoutContainer(Container parent) This method is called to set the size and position of the child components for the given container.minimumLayoutSize(Container parent) This methods calculates the minimum layout size for the container.preferredLayoutSize(Container parent) This method returns the preferred layout size for the given container.voidThis method is called when a component is removed from the container.
-
Constructor Details
-
MainPanelLayout
-
-
Method Details
-
addLayoutComponent
This method is called when a new component is added to the container.- Specified by:
addLayoutComponentin interfaceLayoutManager- Parameters:
name- The name of the component.comp- The added component.
-
layoutContainer
This method is called to set the size and position of the child components for the given container.- Specified by:
layoutContainerin interfaceLayoutManager- Parameters:
parent- The container to lay out.
-
removeLayoutComponent
This method is called when a component is removed from the container.- Specified by:
removeLayoutComponentin interfaceLayoutManager- Parameters:
comp- The component that was removed.
-
minimumLayoutSize
This methods calculates the minimum layout size for the container.- Specified by:
minimumLayoutSizein interfaceLayoutManager- Parameters:
parent- The container.- Returns:
- The minimum layout size.
-
preferredLayoutSize
This method returns the preferred layout size for the given container.- Specified by:
preferredLayoutSizein interfaceLayoutManager- Parameters:
parent- The container.- Returns:
- The preferred layout size.
-