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
-
boxheight
-
-
boxwidth
-
-
MIN_BOX_HEIGHT
-
-
MIN_BOX_WIDTH
-
-
things
- The list of components.
-
SupportFrameLayout()
- Initializes
ButtonLayout with no buttons on top and two on bottom.
-
addLayoutComponent(String, Component)
- Uses "list" and "infobox" as names.
-
calcDimensions(Container)
- Calculates the dimensions for the window margins and info boxes.
-
layoutContainer(Container)
- Lays out the components in the frame.
-
minimumLayoutSize(Container)
- Returns the minimum frame dimensions.
-
preferredLayoutSize(Container)
- Returns the preferred dimensions for the support frame.
-
removeLayoutComponent(Component)
-
MIN_BOX_HEIGHT
private static final int MIN_BOX_HEIGHT
MIN_BOX_WIDTH
private static final int MIN_BOX_WIDTH
things
Component things[]
- The list of components.
boxwidth
int boxwidth
boxheight
int boxheight
SupportFrameLayout
SupportFrameLayout()
- Initializes
ButtonLayout with no buttons on top and two on bottom.
addLayoutComponent
public void addLayoutComponent(String name,
Component c)
- Uses "list" and "infobox" as names. Everything else is passed to
ButtonLayout.
removeLayoutComponent
public void removeLayoutComponent(Component c)
calcDimensions
protected void calcDimensions(Container parent)
- Calculates the dimensions for the window margins and info boxes.
- Overrides:
- calcDimensions in class ButtonLayout
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Returns the preferred dimensions for the support frame. 360x200.
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Returns the minimum frame dimensions.
layoutContainer
public void layoutContainer(Container parent)
- Lays out the components in the frame.