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

Constructor Index

 o PackerLayout()
Creates the packer layout

Method Index

 o addLayoutComponent(String, Component)
Adds the specified component with the specified name to the layout.
 o addLayoutInfo(PackerInfo)
Layout info added sequentially
 o getLayoutInfo(Component)
Return the packer info for the given component
 o layoutContainer(Container)
Lays out the container in the specified panel.
 o minimumLayoutSize(Container)
Returns the minimum dimensions needed to layout the components contained in the specified panel.
 o preferredLayoutSize(Container)
Returns the preferred dimensions for this layout given the components int the specified panel.
 o removeLayoutComponent(Component)
Adds the specified component with the specified name to the layout.
 o removeLayoutInfo(Component)
Remove the layout info for the given component

Constructors

 o PackerLayout
  public PackerLayout()
Creates the packer layout

Methods

 o addLayoutInfo
  public synchronized void addLayoutInfo(PackerInfo info)
Layout info added sequentially @param info the Packerinfo for the component
 o removeLayoutInfo
  public synchronized void removeLayoutInfo(Component comp)
Remove the layout info for the given component
 o getLayoutInfo
  public synchronized PackerInfo getLayoutInfo(Component comp)
Return the packer info for the given component @param comp the componenet
 o 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
 o 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
 o 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
 o 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
 o 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