net.yura.mobile.gui.layout
Class BoxLayout
java.lang.Object
net.yura.mobile.gui.layout.BoxLayout
- All Implemented Interfaces:
- Layout
public class BoxLayout
- extends Object
- implements Layout
- Author:
- Yura Mamyrin
- See Also:
BoxLayout
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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