static class PersistableSwatchChooserPanel.RecentPanelLayout extends Object implements LayoutManager
Constructor and Description |
---|
RecentPanelLayout() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Dimension |
minimumLayoutSize(Container parent)
This method calculates the minimum layout size for the given container.
|
Dimension |
preferredLayoutSize(Container parent)
This method calculates the preferred layout size for the given
container.
|
void |
removeLayoutComponent(Component comp)
This method is called whenever a component is removed from the
container.
|
RecentPanelLayout()
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
name
- The name of the component.comp
- The added component.public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
parent
- The container to lay out.public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
parent
- The container.public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
parent
- The container.public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- The removed component.