org.xith3d.ui.hud.layout
Class ListLayout

java.lang.Object
  extended by org.xith3d.ui.hud.layout.LayoutManagerBase
      extended by org.xith3d.ui.hud.layout.BorderSettableLayoutManagerBase
          extended by org.xith3d.ui.hud.layout.ListLayout
All Implemented Interfaces:
BorderSettableLayoutManager, LayoutManager

public class ListLayout
extends BorderSettableLayoutManagerBase

The ListLayout arranges the Widgets in their order vertically or horizontally.
You can set the other (perpendicular) span to be calculated or unmanipulated.


Nested Class Summary
static class ListLayout.Alignment
           
static class ListLayout.Orientation
           
 
Field Summary
 
Fields inherited from interface org.xith3d.ui.hud.layout.LayoutManager
IGNORED_BY_LAYOUT
 
Constructor Summary
ListLayout(ListLayout.Orientation orientation)
           
ListLayout(ListLayout.Orientation orientation, float gap)
           
ListLayout(ListLayout.Orientation orientation, float borderBottom, float borderRight, float borderTop, float borderLeft)
           
ListLayout(ListLayout.Orientation orientation, float gap, float borderBottom, float borderRight, float borderTop, float borderLeft)
           
 
Method Summary
protected  void doLayout(float left0, float top0, float containerResX, float containerResY)
          
 ListLayout.Alignment getAlignment()
           
 float getGap()
           
 ListLayout.Orientation getOrientation()
           
 boolean isOtherSpanCalculated()
           
 void setAlignment(ListLayout.Alignment alignment)
           
 void setGap(float gap)
           
 void setOrientation(ListLayout.Orientation orientation)
           
 void setOtherSpanCalculated(boolean b)
           
 
Methods inherited from class org.xith3d.ui.hud.layout.BorderSettableLayoutManagerBase
getBorderBottom, getBorderLeft, getBorderRight, getBorderTop, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop
 
Methods inherited from class org.xith3d.ui.hud.layout.LayoutManagerBase
addWidget, clear, doLayout, getInvisibleWidgetsHidden, getWidgets, removeWidget, setInvisibleWidgetsHidden
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListLayout

public ListLayout(ListLayout.Orientation orientation,
                  float gap,
                  float borderBottom,
                  float borderRight,
                  float borderTop,
                  float borderLeft)

ListLayout

public ListLayout(ListLayout.Orientation orientation,
                  float gap)

ListLayout

public ListLayout(ListLayout.Orientation orientation,
                  float borderBottom,
                  float borderRight,
                  float borderTop,
                  float borderLeft)

ListLayout

public ListLayout(ListLayout.Orientation orientation)
Method Detail

setOrientation

public void setOrientation(ListLayout.Orientation orientation)

getOrientation

public final ListLayout.Orientation getOrientation()

setAlignment

public void setAlignment(ListLayout.Alignment alignment)

getAlignment

public final ListLayout.Alignment getAlignment()

setOtherSpanCalculated

public void setOtherSpanCalculated(boolean b)

isOtherSpanCalculated

public final boolean isOtherSpanCalculated()

setGap

public void setGap(float gap)

getGap

public final float getGap()

doLayout

protected void doLayout(float left0,
                        float top0,
                        float containerResX,
                        float containerResY)

Specified by:
doLayout in class LayoutManagerBase