net.yura.mobile.gui.layout
Class BoxLayout

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

public class BoxLayout
extends Object
implements Layout

Author:
Yura Mamyrin
See Also:
BoxLayout

Constructor Summary
BoxLayout(int axis)
           
 
Method Summary
 int getPreferredHeight(Panel panel)
           
 int getPreferredWidth(Panel panel)
           
 void layoutPanel(Panel panel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxLayout

public BoxLayout(int axis)
Parameters:
axis - the axis to lay out components along, can be Graphics.VCENTRE or Graphics.HCENTRE
See Also:
BoxLayout.BoxLayout
Method Detail

getPreferredHeight

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

getPreferredWidth

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

layoutPanel

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