cometa.gui
Class GridLayoutVariable

java.lang.Object
  extended by java.awt.GridLayout
      extended by cometa.gui.GridLayoutVariable
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class GridLayoutVariable
extends java.awt.GridLayout

This class implements a slightly different version of the usual swing's GridLayout, allowing variable width for the columns. It is used to layout the method parameters dialog.

See Also:
Serialized Form

Constructor Summary
GridLayoutVariable()
          It creates a new instance of
GridLayoutVariable(int rows, int cols)
          It creates a new instance of
GridLayoutVariable(int rows, int cols, int hgap, int vgap)
          It creates a new instance of
 
Method Summary
 void layoutContainer(java.awt.Container parent)
          This method lays out a given container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Thi method gets the minimum layout size.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Thi method returns the preferred layout size.
 
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

GridLayoutVariable

public GridLayoutVariable()
It creates a new instance of
GridLayoutVariable
.


GridLayoutVariable

public GridLayoutVariable(int rows,
                          int cols)
It creates a new instance of
GridLayoutVariable
.

Parameters:
rows - Number of rows.
cols - Number of columns.

GridLayoutVariable

public GridLayoutVariable(int rows,
                          int cols,
                          int hgap,
                          int vgap)
It creates a new instance of
GridLayoutVariable
.

Parameters:
rows - Number of rows.
cols - Number of columns.
hgap - Horizontal gap.
vgap - Vertical gap.
Method Detail

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Thi method returns the preferred layout size.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Overrides:
preferredLayoutSize in class java.awt.GridLayout
Parameters:
parent - The parent container.
Returns:
The preferred dimension for the layout.

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Thi method gets the minimum layout size.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Overrides:
minimumLayoutSize in class java.awt.GridLayout
Parameters:
parent - The parent container.
Returns:
The minimal dimension.

layoutContainer

public void layoutContainer(java.awt.Container parent)
This method lays out a given container.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class java.awt.GridLayout
Parameters:
parent - The parent container to be layed out.