de.sciss.gui
Class StretchedGridLayout

java.lang.Object
  extended by java.awt.GridLayout
      extended by de.sciss.gui.StretchedGridLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class StretchedGridLayout
extends java.awt.GridLayout

A variant of GridLayout that doesn't leave empty spaces at the bottom or right, because it properly stretches the widths and heights of the components over the available space

Version:
0.10, 29-Nov-07
Author:
Hanns Holger Rutz
See Also:
Serialized Form

Constructor Summary
StretchedGridLayout()
           
StretchedGridLayout(int rows, int cols)
           
StretchedGridLayout(int rows, int cols, int hgap, int vgap)
           
 
Method Summary
 void layoutContainer(java.awt.Container parent)
           
 
Methods inherited from class java.awt.GridLayout
addLayoutComponent, getColumns, getHgap, getRows, getVgap, minimumLayoutSize, preferredLayoutSize, 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

StretchedGridLayout

public StretchedGridLayout()

StretchedGridLayout

public StretchedGridLayout(int rows,
                           int cols)

StretchedGridLayout

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

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class java.awt.GridLayout