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 TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) This method is called when a component is added to the container.voidlayoutContainer(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.voidThis 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:
addLayoutComponentin 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:
layoutContainerin interfaceLayoutManager- Parameters:
parent- The container to lay out.
-
minimumLayoutSize
This method calculates the minimum layout size for the given container.- Specified by:
minimumLayoutSizein interfaceLayoutManager- Parameters:
parent- The container.- Returns:
- The minimum layout size.
-
preferredLayoutSize
This method calculates the preferred layout size for the given container.- Specified by:
preferredLayoutSizein 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:
removeLayoutComponentin interfaceLayoutManager- Parameters:
comp- The removed component.
-