|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.menusystem.MenuSystem
public class MenuSystem
The MenuSystem is a manager class, that manages instances of
MenuGroup, which manage instances of Menu.
| Constructor Summary | |
|---|---|
MenuSystem(HUD hud)
Creates a new MenuGroup. |
|
MenuSystem(HUD hud,
float width,
float height)
Creates a new MenuGroup. |
|
MenuSystem(HUD hud,
float width,
float height,
int menuZIndex)
Creates a new MenuGroup. |
|
MenuSystem(HUD hud,
WidgetContainer parentContainer,
float width,
float height,
int menuZIndex)
Creates a new MenuGroup. |
|
| Method Summary | |
|---|---|
void |
addMenuGroup(MenuGroup group)
|
void |
addMenuSystemListener(MenuSystemListener l)
Adds a listner to the MenuSystem, that is notified of MenuSystem state changes. |
Menu |
findMenu(java.lang.Object menuID)
|
MenuGroup |
findMenuGroup(java.lang.Object menuID)
|
protected boolean |
fireBeforeMenuSystemStateChanged(java.lang.String currentMenu,
java.lang.Object target)
|
protected boolean |
fireOnMenuActionPerformed(MenuGroup menuGroup,
Menu menu,
java.lang.String action)
|
protected void |
fireOnMenuSystemEntered()
|
protected void |
fireOnMenuSystemExited()
|
protected void |
fireOnMenuSystemStateChanged(java.lang.String oldMenu,
java.lang.Object target)
|
protected void |
fireOnSettingChanged(Menu menu,
java.lang.String setting,
java.lang.Object value)
|
Button.Description |
getAccessorDescription()
|
WidgetContainer |
getContainer()
|
MenuGroup |
getCurrentMenuGroup()
|
float |
getHeight()
|
HUD |
getHUD()
|
org.openmali.vecmath2.Colorf |
getMenuBackgroundColor()
|
org.openmali.vecmath2.Colorf |
getMenuBorderColor()
|
java.awt.Font |
getMenuCaptionFont()
|
org.openmali.vecmath2.Colorf |
getMenuCaptionFontColor()
|
MenuGroup |
getMenuGroup(int index)
|
MenuGroup |
getMenuGroup(java.lang.String name)
|
int |
getMenuGroupsCount()
|
org.jagatoo.input.devices.components.Key |
getMenuSystemAccessorKey()
|
int |
getMenuZIndex()
|
float |
getWidth()
|
boolean |
isVisible()
|
protected void |
onOtherMenuRequested(java.lang.Object menuID)
|
void |
removeMenuSystemListener(MenuSystemListener l)
|
void |
setAccessorDescription(Button.Description desc)
|
void |
setCurrentMenuGroup(MenuGroup menuGroup)
|
MenuGroup |
setCurrentMenuGroup(java.lang.String menuGroupName)
|
void |
setMenuBackgroundColor(org.openmali.vecmath2.Colorf color)
|
void |
setMenuBorderColor(org.openmali.vecmath2.Colorf color)
|
void |
setMenuCaptionFont(java.awt.Font font)
|
void |
setMenuCaptionFontColor(org.openmali.vecmath2.Colorf color)
|
void |
setMenuSystemAccessorKey(org.jagatoo.input.devices.components.Key key)
|
void |
setVisible(boolean visible)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuSystem(HUD hud,
WidgetContainer parentContainer,
float width,
float height,
int menuZIndex)
MenuGroup.
hud - the assotiated HUDparentContainer - the WidgetContainer, the MenuGroup's Menus
are added to. This might be the HUD itself!width - the design with of the Menusheight - the design height of the MenusmenuZIndex -
public MenuSystem(HUD hud,
float width,
float height,
int menuZIndex)
MenuGroup.
hud - the assotiated HUDwidth - the design with of the Menusheight - the design height of the MenusmenuZIndex -
public MenuSystem(HUD hud,
float width,
float height)
MenuGroup.
hud - the assotiated HUDwidth - the design with of the Menusheight - the design height of the Menuspublic MenuSystem(HUD hud)
MenuGroup.
hud - the assotiated HUD| Method Detail |
|---|
public void setMenuSystemAccessorKey(org.jagatoo.input.devices.components.Key key)
public final org.jagatoo.input.devices.components.Key getMenuSystemAccessorKey()
public final HUD getHUD()
HUD.public final WidgetContainer getContainer()
WidgetContainer, the MenuGroup's Menus
are added to. This might be the HUD itself!public final float getWidth()
public final float getHeight()
public final int getMenuZIndex()
public void setVisible(boolean visible)
public final boolean isVisible()
public final org.openmali.vecmath2.Colorf getMenuCaptionFontColor()
public final void setAccessorDescription(Button.Description desc)
public final void setMenuBackgroundColor(org.openmali.vecmath2.Colorf color)
public final org.openmali.vecmath2.Colorf getMenuBackgroundColor()
public final void setMenuBorderColor(org.openmali.vecmath2.Colorf color)
public final org.openmali.vecmath2.Colorf getMenuBorderColor()
public final void setMenuCaptionFont(java.awt.Font font)
public final java.awt.Font getMenuCaptionFont()
public final void setMenuCaptionFontColor(org.openmali.vecmath2.Colorf color)
public final Button.Description getAccessorDescription()
public void addMenuGroup(MenuGroup group)
public final MenuGroup getMenuGroup(int index)
public final MenuGroup getMenuGroup(java.lang.String name)
public final int getMenuGroupsCount()
public void setCurrentMenuGroup(MenuGroup menuGroup)
public MenuGroup setCurrentMenuGroup(java.lang.String menuGroupName)
public final MenuGroup getCurrentMenuGroup()
public MenuGroup findMenuGroup(java.lang.Object menuID)
public Menu findMenu(java.lang.Object menuID)
public final void addMenuSystemListener(MenuSystemListener l)
l - public final void removeMenuSystemListener(MenuSystemListener l)
protected boolean fireBeforeMenuSystemStateChanged(java.lang.String currentMenu,
java.lang.Object target)
protected void fireOnMenuSystemStateChanged(java.lang.String oldMenu,
java.lang.Object target)
protected void fireOnSettingChanged(Menu menu,
java.lang.String setting,
java.lang.Object value)
protected boolean fireOnMenuActionPerformed(MenuGroup menuGroup,
Menu menu,
java.lang.String action)
protected void fireOnMenuSystemEntered()
protected void fireOnMenuSystemExited()
protected void onOtherMenuRequested(java.lang.Object menuID)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||