Package edu.wisc.ssec.mcidasv.ui
Class PersistableSwatchChooserPanel.RecentPanelLayout
java.lang.Object
edu.wisc.ssec.mcidasv.ui.PersistableSwatchChooserPanel.RecentPanelLayout
- All Implemented Interfaces:
LayoutManager
- Enclosing class:
PersistableSwatchChooserPanel
static class PersistableSwatchChooserPanel.RecentPanelLayout
extends Object
implements LayoutManager
This is the layout manager for the recent swatch panel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(String name, Component comp) This method is called when a component is added to the container.void
layoutContainer
(Container parent) This method sets the size and position of the child components of the given container.minimumLayoutSize
(Container parent) This method calculates the minimum layout size for the given container.preferredLayoutSize
(Container parent) This method calculates the preferred layout size for the given container.void
This method is called whenever a component is removed from the container.
-
Constructor Details
-
RecentPanelLayout
-
-
Method Details
-
addLayoutComponent
This method is called when a 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 sets the size and position of the child components of the given container.- Specified by:
layoutContainer
in interfaceLayoutManager
- Parameters:
parent
- The container to lay out.
-
minimumLayoutSize
This method calculates the minimum layout size for the given container.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- The container.- Returns:
- The minimum layout size.
-
preferredLayoutSize
This method calculates the preferred layout size for the given container.- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- The container.- Returns:
- The preferred layout size.
-
removeLayoutComponent
This method is called whenever a component is removed from the container.- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Parameters:
comp
- The removed component.
-