org.kalmeo.kuix.layout
Class GridLayout

java.lang.Object
  extended by org.kalmeo.kuix.layout.GridLayout
All Implemented Interfaces:
Layout

public class GridLayout
extends java.lang.Object
implements Layout

Author:
bbeaulant

Field Summary
static GridLayout instanceOneByOne
           
 int numCols
           
 int numRows
           
 
Constructor Summary
GridLayout()
          Construct a GridLayout
GridLayout(int numCols, int numRows)
          Construct a GridLayout
 
Method Summary
 void doLayout(Widget target)
          Do the layout on the specified Widget
 void measurePreferredSize(Widget target, int preferredWidth, Metrics metrics)
          Returns the Metrics that represents the widget's preferedSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceOneByOne

public static final GridLayout instanceOneByOne

numCols

public int numCols

numRows

public int numRows
Constructor Detail

GridLayout

public GridLayout()
Construct a GridLayout


GridLayout

public GridLayout(int numCols,
                  int numRows)
Construct a GridLayout

Parameters:
numCols -
numRows -
Method Detail

measurePreferredSize

public void measurePreferredSize(Widget target,
                                 int preferredWidth,
                                 Metrics metrics)
Description copied from interface: Layout
Returns the Metrics that represents the widget's preferedSize

Specified by:
measurePreferredSize in interface Layout
Parameters:
target - The target widget

doLayout

public void doLayout(Widget target)
Description copied from interface: Layout
Do the layout on the specified Widget

Specified by:
doLayout in interface Layout
Parameters:
target - The target widget


Copyright © 2007-2008 Kalmeo. All Rights Reserved.