com.incrediblesoft.redjey.layouts
Class GridLayout
java.lang.Object
com.incrediblesoft.redjey.layouts.GridLayout
- All Implemented Interfaces:
- Layout
public class GridLayout
- extends java.lang.Object
- implements Layout
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridLayout
public GridLayout()
GridLayout
public GridLayout(int rows,
int cols)
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