Package rekit.logic.gui.menu
Class MenuGrid
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.menu.MenuItem
rekit.logic.gui.menu.SubMenu
rekit.logic.gui.menu.MenuGrid
- Direct Known Subclasses:
MainMenuGrid
This class realizes a
MenuList. In this SubMenu Items will be
arranged as Grid-
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalculate the new Position of each Item.voidmenuDown()Process down while this menu is selected.voidmenuLeft()Process left while this menu is selected.voidProcess right while this menu is selected.voidmenuUp()Process up while this menu is selected.Methods inherited from class rekit.logic.gui.menu.SubMenu
addItem, down, focus, hasChildren, internalRender, left, removeItem, renderMenu, right, select, setIndex, setItemSize, unselect, upMethods inherited from class rekit.logic.gui.menu.MenuItem
getText, isSelectable, renderItem, setHover, setParent, toStringMethods inherited from class rekit.logic.gui.GuiElement
getPos, getScene, getSize, isVisible, logicLoop, render, setPos, setVisible
-
Constructor Details
-
MenuGrid
Create a MenuGrid.- Parameters:
scene- the scenetext- the text (name)colCount- the column count
-
MenuGrid
Create a MenuGrid.- Parameters:
scene- the scenetext- the text (name)colCount- the column countsizeX- the itemSize XsizeY- the itemSize Y
-
-
Method Details
-
calcItemPos
protected void calcItemPos()Description copied from class:SubMenuCalculate the new Position of each Item.- Specified by:
calcItemPosin classSubMenu