Class GridPanel

All Implemented Interfaces:
HasLocalTransform, CloneableSmartAsset, Collidable, Savable, JmeCloneable, Cloneable

public class GridPanel extends Panel
  • Field Details

  • Constructor Details

  • Method Details

    • initializeDefaultStyles

      public static void initializeDefaultStyles(Attributes attrs)
    • setModel

      public void setModel(GridModel<Panel> model)
    • getModel

      public GridModel<Panel> getModel()
    • setRow

      public void setRow(int row)
    • getRow

      public int getRow()
    • setColumn

      public void setColumn(int column)
    • getColumn

      public int getColumn()
    • getCell

      public Panel getCell(int r, int c)
    • setLocation

      public void setLocation(int row, int column)
    • setVisibleSize

      public void setVisibleSize(int rows, int columns)
    • setVisibleRows

      public void setVisibleRows(int rows)
    • getVisibleRows

      public int getVisibleRows()
    • setVisibleColumns

      public void setVisibleColumns(int columns)
    • getVisibleColumns

      public int getVisibleColumns()
    • setAlpha

      public void setAlpha(float alpha, boolean recursive)
      Description copied from class: Panel
      Sets the alpha multiplier for all ColoredComponents in this panels component stack, including things like QuadBackgroundComponent, TextComponent, etc.. This can be used to generally fade a GUI element in or out as needed as long as its visuals are ColoredComponent compliant. If recursive is true then all child Spatials will also be checked and have their alpha set, and their children, and so on.
      Overrides:
      setAlpha in class Panel
    • refreshGrid

      protected void refreshGrid()
    • updateLogicalState

      public void updateLogicalState(float tpf)
      Description copied from class: Spatial
      updateLogicalState calls the update() method for all controls attached to this Spatial.
      Overrides:
      updateLogicalState in class Node
      Parameters:
      tpf - Time per frame.
      See Also:
    • toString

      public String toString()
      Description copied from class: Spatial
      Returns the Spatial's name followed by the class of the spatial
      Example: "MyNode (com.jme3.scene.Spatial)"
      Overrides:
      toString in class Panel
      Returns:
      Spatial's name followed by the class of the Spatial