static class PersistableSwatchChooserPanel.MainPanelLayout extends Object implements LayoutManager
Constructor and Description |
---|
MainPanelLayout() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Dimension |
minimumLayoutSize(Container parent)
This methods calculates the minimum layout size for the container.
|
Dimension |
preferredLayoutSize(Container parent)
This method returns the preferred layout size for the given container.
|
void |
removeLayoutComponent(Component comp)
This method is called when a component is removed from the container.
|
MainPanelLayout()
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 void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- The component that was removed.public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
parent
- The container.public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
parent
- The container.