Class SupportFrameLayout

java.lang.Object
   |
   +----ButtonLayout
           |
           +----SupportFrameLayout

public class SupportFrameLayout
extends ButtonLayout
implements LayoutManager
Handles the layout of the support frame (example programs and tutorial.)

Author:
Theo Van Dinter, Peter Sagerson

Variable Index

 o boxheight
 o boxwidth
 o MIN_BOX_HEIGHT
 o MIN_BOX_WIDTH
 o things
The list of components.

Constructor Index

 o SupportFrameLayout()
Initializes ButtonLayout with no buttons on top and two on bottom.

Method Index

 o addLayoutComponent(String, Component)
Uses "list" and "infobox" as names.
 o calcDimensions(Container)
Calculates the dimensions for the window margins and info boxes.
 o layoutContainer(Container)
Lays out the components in the frame.
 o minimumLayoutSize(Container)
Returns the minimum frame dimensions.
 o preferredLayoutSize(Container)
Returns the preferred dimensions for the support frame.
 o removeLayoutComponent(Component)

Variables

 o MIN_BOX_HEIGHT
 private static final int MIN_BOX_HEIGHT
 o MIN_BOX_WIDTH
 private static final int MIN_BOX_WIDTH
 o things
 Component things[]
The list of components.

 o boxwidth
 int boxwidth
 o boxheight
 int boxheight

Constructors

 o SupportFrameLayout
 SupportFrameLayout()
Initializes ButtonLayout with no buttons on top and two on bottom.

Methods

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component c)
Uses "list" and "infobox" as names. Everything else is passed to ButtonLayout.

 o removeLayoutComponent
 public void removeLayoutComponent(Component c)
 o calcDimensions
 protected void calcDimensions(Container parent)
Calculates the dimensions for the window margins and info boxes.

Overrides:
calcDimensions in class ButtonLayout
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container parent)
Returns the preferred dimensions for the support frame. 360x200.

 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
Returns the minimum frame dimensions.

 o layoutContainer
 public void layoutContainer(Container parent)
Lays out the components in the frame.