org.kalmeo.kuix.layout
Class InlineLayout

java.lang.Object
  extended by org.kalmeo.kuix.layout.InlineLayout
All Implemented Interfaces:
Layout

public class InlineLayout
extends java.lang.Object
implements Layout

Author:
bbeaulant

Field Summary
 Alignment alignment
           
 boolean horizontal
           
 
Constructor Summary
InlineLayout()
          Construct an InlineLayout
InlineLayout(boolean horizontal)
          Construct an InlineLayout
InlineLayout(boolean horizontal, Alignment alignment)
          Construct a InlineLayout
 
Method Summary
 void doLayout(Widget target)
          Do the layout on the specified Widget
 void measurePreferredSize(Widget target, int preferredWidth, Metrics metrics)
          Returns the Metrics that represents the widget's preferedSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

horizontal

public boolean horizontal

alignment

public Alignment alignment
Constructor Detail

InlineLayout

public InlineLayout()
Construct an InlineLayout


InlineLayout

public InlineLayout(boolean horizontal)
Construct an InlineLayout

Parameters:
horizontal -

InlineLayout

public InlineLayout(boolean horizontal,
                    Alignment alignment)
Construct a InlineLayout

Parameters:
horizontal -
alignment -
Method Detail

measurePreferredSize

public void measurePreferredSize(Widget target,
                                 int preferredWidth,
                                 Metrics metrics)
Description copied from interface: Layout
Returns the Metrics that represents the widget's preferedSize

Specified by:
measurePreferredSize in interface Layout
Parameters:
target - The target widget

doLayout

public void doLayout(Widget target)
Description copied from interface: Layout
Do the layout on the specified Widget

Specified by:
doLayout in interface Layout
Parameters:
target - The target widget


Copyright © 2007-2008 Kalmeo. All Rights Reserved.