public class CenterLayout extends Object implements LayoutManager, Serializable
Constructor and Description |
---|
CenterLayout()
Creates a new layout manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(Component comp)
Not used.
|
void |
addLayoutComponent(String name,
Component comp)
Not used.
|
void |
layoutContainer(Container parent)
Lays out the components.
|
Dimension |
minimumLayoutSize(Container parent)
Returns the minimum size.
|
Dimension |
preferredLayoutSize(Container parent)
Returns the preferred size.
|
void |
removeLayoutComponent(Component comp)
Not used.
|
void |
removeLayoutComponent(String name,
Component comp)
Not used.
|
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
parent
- the parent.public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
parent
- the parent.public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
parent
- the parent.public void addLayoutComponent(Component comp)
comp
- the component.public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component.public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
name
- the component name.comp
- the component.Copyright © 2017 Hitachi Vantara. All rights reserved.