Class awt.PackerLayout
All Packages Class Hierarchy This Package Previous Next Index
Class awt.PackerLayout
java.lang.Object
|
+----awt.PackerLayout
- public class PackerLayout
- extends Object
- implements LayoutManager
A layout manager for a container that lays out in packer format
-
PackerLayout()
- Creates the packer layout
-
addLayoutComponent(String, Component)
- Adds the specified component with the specified name to the layout.
-
addLayoutInfo(PackerInfo)
- Layout info added sequentially
-
getLayoutInfo(Component)
- Return the packer info for the given component
-
layoutContainer(Container)
-
Lays out the container in the specified panel.
-
minimumLayoutSize(Container)
- Returns the minimum dimensions needed to layout the components
contained in the specified panel.
-
preferredLayoutSize(Container)
- Returns the preferred dimensions for this layout given the components
int the specified panel.
-
removeLayoutComponent(Component)
- Adds the specified component with the specified name to the layout.
-
removeLayoutInfo(Component)
- Remove the layout info for the given component
PackerLayout
public PackerLayout()
- Creates the packer layout
addLayoutInfo
public synchronized void addLayoutInfo(PackerInfo info)
- Layout info added sequentially
@param info the Packerinfo for the component
removeLayoutInfo
public synchronized void removeLayoutInfo(Component comp)
- Remove the layout info for the given component
getLayoutInfo
public synchronized PackerInfo getLayoutInfo(Component comp)
- Return the packer info for the given component
@param comp the componenet
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- Adds the specified component with the specified name to the layout.
- Parameters:
- name - the name of the component
- comp - the component to be added
Does not apply
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Adds the specified component with the specified name to the layout.
- Parameters:
- comp - the component to be removed
Does not apply
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Returns the preferred dimensions for this layout given the components
int the specified panel.
- Parameters:
- parent - the component which needs to be laid out
- See Also:
- minimumSize
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Returns the minimum dimensions needed to layout the components
contained in the specified panel.
- Parameters:
- parent - the component which needs to be laid out
- See Also:
- preferredSize
layoutContainer
public void layoutContainer(Container parent)
- Lays out the container in the specified panel.
- Parameters:
- parent - the specified component being laid out
- See Also:
- Container
All Packages Class Hierarchy This Package Previous Next Index