|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.layout.LayoutManagerBase
public abstract class LayoutManagerBase
An abstract base class for all LayoutManagers.
| Constructor Summary | |
|---|---|
LayoutManagerBase()
|
|
| 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 abstract 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. |
boolean |
getInvisibleWidgetsHidden()
If set to true, the LayoutManager hides invisible Widgets
and doesn't use them to calculate the other Widgets' layouts. |
java.util.ArrayList<Widget> |
getWidgets()
|
void |
removeWidget(Widget widget)
Removed a Widget from this LayoutManager |
void |
setInvisibleWidgetsHidden(boolean hidden)
If set to true, the LayoutManager hides invisible Widgets
and doesn't use them to calculate the other Widgets' layouts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutManagerBase()
| Method Detail |
|---|
public final void setInvisibleWidgetsHidden(boolean hidden)
LayoutManager hides invisible Widgets
and doesn't use them to calculate the other Widgets' layouts.
setInvisibleWidgetsHidden in interface LayoutManagerpublic final boolean getInvisibleWidgetsHidden()
LayoutManager hides invisible Widgets
and doesn't use them to calculate the other Widgets' layouts.
getInvisibleWidgetsHidden in interface LayoutManagerpublic final java.util.ArrayList<Widget> getWidgets()
LayoutManager.
public void addWidget(Widget widget,
java.lang.Object constraints)
addWidget in interface LayoutManagerwidget - the Widget to addconstraints - the constraints to use for this Widget in this LayoutManagerpublic void removeWidget(Widget widget)
removeWidget in interface LayoutManagerwidget - the Widget to be removedpublic void clear()
clear in interface LayoutManager
protected abstract void doLayout(float left0,
float top0,
float containerResX,
float containerResY)
public void doLayout(WidgetContainer container)
doLayout in interface LayoutManagercontainer - the container this LayoutManager is attached to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||