com.incrediblesoft.redjey.layouts
Class GridLayout

java.lang.Object
  extended by com.incrediblesoft.redjey.layouts.GridLayout
All Implemented Interfaces:
Layout

public class GridLayout
extends java.lang.Object
implements Layout


Constructor Summary
GridLayout()
           
GridLayout(int rows, int cols)
           
 
Method Summary
 int getColumns()
           
 int getRows()
           
 void layoutContainer(Container parent)
          Lays out the specified container.
 Dimension preferredLayoutSize(Container parent)
          Calculates the preferred size dimensions for the specified container, given the components it contains.
 void setColumns(int cols)
           
 void setRows(int rows)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridLayout

public GridLayout()

GridLayout

public GridLayout(int rows,
                  int cols)
Method Detail

getRows

public int getRows()

setRows

public void setRows(int rows)

getColumns

public int getColumns()

setColumns

public void setColumns(int cols)

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Description copied from interface: Layout
Calculates the preferred size dimensions for the specified container, given the components it contains.

Specified by:
preferredLayoutSize in interface Layout
Parameters:
parent - the container to be laid out

layoutContainer

public void layoutContainer(Container parent)
Description copied from interface: Layout
Lays out the specified container.

Specified by:
layoutContainer in interface Layout
Parameters:
parent - the container to be laid out