chrriis.uihierarchy.layout
Class FlowHLayout

java.lang.Object
  extended bychrriis.uihierarchy.layout.FlowHLayout
All Implemented Interfaces:
HLayoutManager

public class FlowHLayout
extends Object
implements HLayoutManager

A flow layout that is lazily created, using the UIH configuration. This allows the use of units to determine the gaps, which are defined as Strings.

Version:
1.0 2005.02.06
Author:
Christopher Deckers (chrriis@brainlex.com)

Constructor Summary
FlowHLayout()
          Constructs a new Flow Layout with a centered alignment and a default 5-unit horizontal and vertical gap.
FlowHLayout(int align)
          Constructs a new Flow Layout with the specified alignment and a default 5-unit horizontal and vertical gap.
FlowHLayout(int align, String hgap, String vgap)
          Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps.
 
Method Summary
 LayoutManager createLayout(UIHConfig uihConfig)
          Create the desired layout manager, using the UIH configuration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowHLayout

public FlowHLayout()
Constructs a new Flow Layout with a centered alignment and a default 5-unit horizontal and vertical gap.


FlowHLayout

public FlowHLayout(int align)
Constructs a new Flow Layout with the specified alignment and a default 5-unit horizontal and vertical gap.

Parameters:
align -

FlowHLayout

public FlowHLayout(int align,
                   String hgap,
                   String vgap)
Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps.

Parameters:
align -
hgap -
vgap -
Method Detail

createLayout

public LayoutManager createLayout(UIHConfig uihConfig)
Description copied from interface: HLayoutManager
Create the desired layout manager, using the UIH configuration.

Specified by:
createLayout in interface HLayoutManager
Parameters:
uihConfig - The configuration that may be used.
Returns:
The layout manager.