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 TypeMethodDescriptionvoid
addLayoutComponent
(String name, Component comp) This method is called when a new component is added to the container.void
layoutContainer
(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.void
This 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:
addLayoutComponent
in 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:
layoutContainer
in interfaceLayoutManager
- Parameters:
parent
- The container to lay out.
-
removeLayoutComponent
This method is called when a component is removed from the container.- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Parameters:
comp
- The component that was removed.
-
minimumLayoutSize
This methods calculates the minimum layout size for the container.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- The container.- Returns:
- The minimum layout size.
-
preferredLayoutSize
This method returns the preferred layout size for the given container.- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- The container.- Returns:
- The preferred layout size.
-