com.netbreeze.swing
Class VerticalLayout

java.lang.Object
  |
  +--com.netbreeze.swing.VerticalLayout
All Implemented Interfaces:
java.awt.LayoutManager

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


Field Summary
static int CENTER
           
static int LEFT
           
static int RIGHT
           
 
Constructor Summary
VerticalLayout()
           
VerticalLayout(int align, boolean stretch)
           
VerticalLayout(int align, boolean stretch, int gap)
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Adds the specified component with the specified name to the layout.
 void layoutContainer(java.awt.Container target)
          Lays out the container in the specified panel.
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.
 void removeLayoutComponent(java.awt.Component comp)
          Removes the specified component from the layout.
 void setAlignment(int align)
           
 void setStretch(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT

CENTER

public static final int CENTER

RIGHT

public static final int RIGHT
Constructor Detail

VerticalLayout

public VerticalLayout()

VerticalLayout

public VerticalLayout(int align,
                      boolean stretch)

VerticalLayout

public VerticalLayout(int align,
                      boolean stretch,
                      int gap)
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Adds the specified component with the specified name to the layout.
Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
name - the component name
comp - the component to be added

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
comp - the component ot be removed

setAlignment

public void setAlignment(int align)

setStretch

public void setStretch(boolean b)

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - the component to be laid out
See Also:
minimumLayoutSize(java.awt.Container)

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - the component to be laid out
See Also:
preferredLayoutSize(java.awt.Container)

layoutContainer

public void layoutContainer(java.awt.Container target)
Lays out the container in the specified panel.
Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
parent - the component which needs to be laid out