com.lavantech.gui.comp
Class CompactGridLayout

java.lang.Object
  extended byjava.awt.GridLayout
      extended bycom.lavantech.gui.comp.CompactGridLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class CompactGridLayout
extends java.awt.GridLayout

This class is similar to GridLayout except that columns and rows are not always equal size. Each column width is determined by the maximum width of its element.

See Also:
Serialized Form

Constructor Summary
CompactGridLayout()
           
CompactGridLayout(int rows, int cols)
           
CompactGridLayout(int rows, int cols, int hgap, int vgap)
           
 
Method Summary
 void layoutContainer(java.awt.Container parent)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 
Methods inherited from class java.awt.GridLayout
addLayoutComponent, getColumns, getHgap, getRows, getVgap, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompactGridLayout

public CompactGridLayout()

CompactGridLayout

public CompactGridLayout(int rows,
                         int cols)

CompactGridLayout

public CompactGridLayout(int rows,
                         int cols,
                         int hgap,
                         int vgap)
Method Detail

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)

layoutContainer

public void layoutContainer(java.awt.Container parent)