net.yura.mobile.gui.layout
Class GridBagLayout

java.lang.Object
  extended by net.yura.mobile.gui.layout.GridBagLayout
All Implemented Interfaces:
Layout

public class GridBagLayout
extends Object
implements Layout

layout taken from thinlet (LGPL) http://thinlet.sourceforge.net/home.html http://thinlet.sourceforge.net/license.html

Author:
Nathan, Robert Bajzat
See Also:
GridBagLayout

Field Summary
(package private)  int bottom
           
(package private)  int columns
           
(package private)  int gap
           
(package private)  int left
           
(package private)  int right
           
(package private)  int top
           
 
Constructor Summary
GridBagLayout(int columns, int gap, int top, int bottom, int left, int right)
           
 
Method Summary
 int getColumns()
           
 int getGap()
           
 int getPreferredHeight(Panel arg0)
           
 int[] getPreferredSize(Panel component)
           
 int getPreferredWidth(Panel arg0)
           
 void layoutPanel(Panel component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bottom

int bottom

columns

int columns

gap

int gap

left

int left

right

int right

top

int top
Constructor Detail

GridBagLayout

public GridBagLayout(int columns,
                     int gap,
                     int top,
                     int bottom,
                     int left,
                     int right)
Method Detail

getColumns

public int getColumns()

getGap

public int getGap()

getPreferredHeight

public int getPreferredHeight(Panel arg0)
Specified by:
getPreferredHeight in interface Layout
See Also:
LayoutManager.preferredLayoutSize

getPreferredSize

public int[] getPreferredSize(Panel component)

getPreferredWidth

public int getPreferredWidth(Panel arg0)
Specified by:
getPreferredWidth in interface Layout
See Also:
LayoutManager.preferredLayoutSize

layoutPanel

public void layoutPanel(Panel component)
Specified by:
layoutPanel in interface Layout
See Also:
LayoutManager.layoutContainer