|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.layout.LayoutManagerBase
org.xith3d.ui.hud.layout.BorderSettableLayoutManagerBase
org.xith3d.ui.hud.layout.HullLayout
public class HullLayout
The HullLayout uses the left-most and top-most Widget to define a
border and then shrinks the container around the contained Widgets.
This LayoutManaget doesn't layout the Widgets at all. An inner LayoutManager
can be used to layout the Widgets.
| Constructor Summary | |
|---|---|
HullLayout()
|
|
HullLayout(float border)
|
|
HullLayout(float borderBottom,
float borderRight,
float borderTop,
float borderLeft)
|
|
HullLayout(LayoutManager innerLayout)
|
|
HullLayout(LayoutManager innerLayout,
float border)
|
|
HullLayout(LayoutManager innerLayout,
float borderBottom,
float borderRight,
float borderTop,
float borderLeft)
|
|
| Method Summary | |
|---|---|
void |
addWidget(Widget widget,
java.lang.Object constraints)
Adds a new Widget to this LayoutManager with the given constraints. |
void |
clear()
Clears the Widget List. |
protected void |
doLayout(float left0,
float top0,
float containerResX,
float containerResY)
|
void |
doLayout(WidgetContainer container)
This method is invoked by the container, when it needs to be relayouted. |
LayoutManager |
getInnerLayout()
|
void |
removeWidget(Widget widget)
Removed a Widget from this LayoutManager |
protected void |
setWindowSize(Window window,
float contentWidth,
float contentHeight)
|
| 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 |
|---|
getInvisibleWidgetsHidden, getWidgets, setInvisibleWidgetsHidden |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HullLayout(LayoutManager innerLayout,
float borderBottom,
float borderRight,
float borderTop,
float borderLeft)
public HullLayout(float borderBottom,
float borderRight,
float borderTop,
float borderLeft)
public HullLayout(LayoutManager innerLayout,
float border)
public HullLayout(float border)
public HullLayout(LayoutManager innerLayout)
public HullLayout()
| Method Detail |
|---|
public final LayoutManager getInnerLayout()
LayoutManager, that layouts the Widgets.
public void addWidget(Widget widget,
java.lang.Object constraints)
addWidget in interface LayoutManageraddWidget in class LayoutManagerBasewidget - the Widget to addconstraints - the constraints to use for this Widget in this LayoutManagerpublic void removeWidget(Widget widget)
removeWidget in interface LayoutManagerremoveWidget in class LayoutManagerBasewidget - the Widget to be removedpublic void clear()
clear in interface LayoutManagerclear in class LayoutManagerBase
protected void setWindowSize(Window window,
float contentWidth,
float contentHeight)
protected void doLayout(float left0,
float top0,
float containerResX,
float containerResY)
doLayout in class LayoutManagerBasepublic void doLayout(WidgetContainer container)
doLayout in interface LayoutManagerdoLayout in class LayoutManagerBasecontainer - the container this LayoutManager is attached to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||