All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BrainWave.BulletinLayout

java.lang.Object
   |
   +----BrainWave.BulletinLayout

public class BulletinLayout
extends Object
implements LayoutManager
Lays out components as though they were pinned to a bulletin board, meaning:

Components are moved to the location that was set by calling or setBounds(). Components are sized according to the size that was set by calls to either setSize() or setBounds(). If either the width or height of the component is 0, the component is sized to its preferred size. AWT Caveats: Buttons, Labels, Checkboxes and Choices do not take kindly to being resized - it is better to let them take on their preferred sizes instead. Lists must be moved and shaped only after their peers are created. Choices can only be moved after their peers are created.

Version:
1.0, Apr 1, 1996

1.1, Oct 24, 1996
Fixed bug that reported wrong preferred and minimum sizes.
layoutContainer() now reshapes components according to their actual sizes. If a component has a zero width or height, then its preferred size is used to reshape.

Author:
David Geary

Constructor Index

 o BulletinLayout()

Method Index

 o addLayoutComponent(String, Component)
 o layoutContainer(Container)
 o minimumLayoutSize(Container)
 o preferredLayoutSize(Container)
 o removeLayoutComponent(Component)

Constructors

 o BulletinLayout
 public BulletinLayout()

Methods

 o addLayoutComponent
 public void addLayoutComponent(String s,
                                Component comp)
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container target)
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container target)
 o layoutContainer
 public void layoutContainer(Container target)

All Packages  Class Hierarchy  This Package  Previous  Next  Index