org.xith3d.ui.hud.layout
Class CenterLayout
java.lang.Object
org.xith3d.ui.hud.layout.LayoutManagerBase
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CenterLayout
public CenterLayout(CenterLayout.Orientation orientation,
float gap)
CenterLayout
public CenterLayout(CenterLayout.Orientation orientation)
CenterLayout
public CenterLayout(float gap)
CenterLayout
public CenterLayout()
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