com.objectwave.viewUtility
Class FunLayout

java.lang.Object
  |
  +--com.objectwave.viewUtility.FunLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class FunLayout
extends java.lang.Object
implements java.awt.LayoutManager


Constructor Summary
FunLayout()
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component c)
           
 void heightChanges(java.awt.Component comp)
          When the window containing the given component is stretched to a larger height, the given component will grow taller (and shorter when the window is shortened).
 void layoutContainer(java.awt.Container con)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
           
 void movesDown(java.awt.Component comp)
          When the window containing the given component is stretched to a larger height, the given component will move down (and up when the window is shortened).
 void movesRight(java.awt.Component comp)
          When the window containing the given component is widened, the component will move right (and left when the window is shrunk).
 java.awt.Dimension preferredLayoutSize(java.awt.Container con)
           
 void removeLayoutComponent(java.awt.Component c)
           
 void widthChanges(java.awt.Component comp)
          When the window containing the given component is widened, the component will grow wider (and smaller when the window is shrunk).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunLayout

public FunLayout()
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component c)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

heightChanges

public void heightChanges(java.awt.Component comp)
When the window containing the given component is stretched to a larger height, the given component will grow taller (and shorter when the window is shortened).

Parameters:
comp - the target Component

layoutContainer

public void layoutContainer(java.awt.Container con)
Specified by:
layoutContainer in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

movesDown

public void movesDown(java.awt.Component comp)
When the window containing the given component is stretched to a larger height, the given component will move down (and up when the window is shortened).

Parameters:
comp - the target Component

movesRight

public void movesRight(java.awt.Component comp)
When the window containing the given component is widened, the component will move right (and left when the window is shrunk).

Parameters:
comp - the target Component

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container con)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component c)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

widthChanges

public void widthChanges(java.awt.Component comp)
When the window containing the given component is widened, the component will grow wider (and smaller when the window is shrunk).

Parameters:
comp - the target Component