jaxx.runtime.swing
Class HBoxLayout

java.lang.Object
  extended by jaxx.runtime.swing.HBoxLayout
All Implemented Interfaces:
LayoutManager

public class HBoxLayout
extends Object
implements LayoutManager

Horizontal box layout. The layout rules followed by this class are quite different than the core BoxLayout class, and in general represent a more useful algorithm.

Author:
Ethan Nicholas

Constructor Summary
HBoxLayout()
           
 
Method Summary
 void addLayoutComponent(String name, Component comp)
           
 int getHorizontalAlignment()
           
 int getSpacing()
           
 int getVerticalAlignment()
           
 void layoutContainer(Container parent)
           
 Dimension minimumLayoutSize(Container parent)
           
 Dimension preferredLayoutSize(Container parent)
           
 void removeLayoutComponent(Component comp)
           
 void setHorizontalAlignment(int horizontalAlignment)
           
 void setSpacing(int spacing)
           
 void setVerticalAlignment(int verticalAlignment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBoxLayout

public HBoxLayout()
Method Detail

getSpacing

public int getSpacing()

setSpacing

public void setSpacing(int spacing)

getHorizontalAlignment

public int getHorizontalAlignment()

setHorizontalAlignment

public void setHorizontalAlignment(int horizontalAlignment)

getVerticalAlignment

public int getVerticalAlignment()

setVerticalAlignment

public void setVerticalAlignment(int verticalAlignment)

addLayoutComponent

public void addLayoutComponent(String name,
                               Component comp)
Specified by:
addLayoutComponent in interface LayoutManager

layoutContainer

public void layoutContainer(Container parent)
Specified by:
layoutContainer in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Specified by:
minimumLayoutSize in interface LayoutManager

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Specified by:
preferredLayoutSize in interface LayoutManager

removeLayoutComponent

public void removeLayoutComponent(Component comp)
Specified by:
removeLayoutComponent in interface LayoutManager


Copyright © 2008-2010 CodeLutin. All Rights Reserved.