org.xith3d.ui.hud.layout
Class CenterLayout

java.lang.Object
  extended by org.xith3d.ui.hud.layout.LayoutManagerBase
      extended by org.xith3d.ui.hud.layout.CenterLayout
All Implemented Interfaces:
LayoutManager

public class CenterLayout
extends LayoutManagerBase

The CenterLayout centers the Widgets at the container's center. If more than one Widget is contained, then they can either be arranged horizontally or vertically. The default is vertically.


Nested Class Summary
static class CenterLayout.Orientation
           
 
Field Summary
 
Fields inherited from interface org.xith3d.ui.hud.layout.LayoutManager
IGNORED_BY_LAYOUT
 
Constructor Summary
CenterLayout()
           
CenterLayout(CenterLayout.Orientation orientation)
           
CenterLayout(CenterLayout.Orientation orientation, float gap)
           
CenterLayout(float gap)
           
 
Method Summary
protected  void doLayout(float left0, float top0, float containerResX, float containerResY)
          
 float getGap()
           
 CenterLayout.Orientation getOrientation()
           
 void setGap(float gap)
           
 void setOrientation(CenterLayout.Orientation orientation)
           
 
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

CenterLayout

public CenterLayout(CenterLayout.Orientation orientation,
                    float gap)

CenterLayout

public CenterLayout(CenterLayout.Orientation orientation)

CenterLayout

public CenterLayout(float gap)

CenterLayout

public CenterLayout()
Method Detail

setOrientation

public void setOrientation(CenterLayout.Orientation orientation)

getOrientation

public final CenterLayout.Orientation getOrientation()

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