Class MenuGrid

Direct Known Subclasses:
MainMenuGrid

public class MenuGrid extends SubMenu
This class realizes a MenuList. In this SubMenu Items will be arranged as Grid
  • Constructor Details

    • MenuGrid

      public MenuGrid(IScene scene, String text, int colCount)
      Create a MenuGrid.
      Parameters:
      scene - the scene
      text - the text (name)
      colCount - the column count
    • MenuGrid

      public MenuGrid(IScene scene, String text, int colCount, int sizeX, int sizeY)
      Create a MenuGrid.
      Parameters:
      scene - the scene
      text - the text (name)
      colCount - the column count
      sizeX - the itemSize X
      sizeY - the itemSize Y
  • Method Details

    • calcItemPos

      protected void calcItemPos()
      Description copied from class: SubMenu
      Calculate the new Position of each Item.
      Specified by:
      calcItemPos in class SubMenu