All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cs101.canvas.FreeFormLayout

java.lang.Object
   |
   +----cs101.canvas.FreeFormLayout

public class FreeFormLayout
extends Object
implements LayoutManager

Method Index

 o addLayoutComponent(String, Component)
Adds the specified component with the specified name to the layout.
 o layoutContainer(Container)
Lays out the container in the specified panel by leaving components as is.
 o minimumLayoutSize(Container)
Assumes that the minimum size dimensions for the specified panel given the components in the size of the specified parent container.
 o preferredLayoutSize(Container)
Assumes that the preferred size dimensions for the specified panel given the components is the dimension of the specified parent container.
 o removeLayoutComponent(Component)
Removes the specified component from the layout.

Methods

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
Adds the specified component with the specified name to the layout.

Parameters:
name - the component name
comp - the component to be added
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
Removes the specified component from the layout.

Parameters:
comp - the component ot be removed
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container parent)
Assumes that the preferred size dimensions for the specified panel given the components is the dimension of the specified parent container.

Parameters:
parent - the component to be laid out
See Also:
minimumLayoutSize
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
Assumes that the minimum size dimensions for the specified panel given the components in the size of the specified parent container.

Parameters:
parent - the component to be laid out
See Also:
preferredLayoutSize
 o layoutContainer
 public void layoutContainer(Container parent)
Lays out the container in the specified panel by leaving components as is. (Does nothing.)

Parameters:
parent - the component which needs to be laid out

All Packages  Class Hierarchy  This Package  Previous  Next  Index