Class GUIPanel

java.lang.Object
com.blackrook.gui.GUIObject
com.blackrook.gui.object.GUIPanel
Direct Known Subclasses:
GUIGlassPanel

public class GUIPanel extends GUIObject
A standard rectangular panel. A theme key can be set on these panels.
Author:
Matthew Tropiano
  • Constructor Details

    • GUIPanel

      public GUIPanel()
      Creates a new GUI panel.
    • GUIPanel

      public GUIPanel(float width, float height)
      Creates a new GUI object.
      Parameters:
      width - its width.
      height - its height.
    • GUIPanel

      public GUIPanel(float x, float y, float width, float height)
      Creates a new GUI object.
      Parameters:
      x - its position x.
      y - its position y.
      width - its width.
      height - its height.
  • Method Details

    • setThemeKey

      public GUIPanel setThemeKey(String themeKey)
      Sets this object's theme key. This is the key that is used to look up the texture used to render this object if a theme is applied to this object or the GUI that owns it.
      Parameters:
      themeKey - the new theme key.
      Returns:
      this panel.
    • getThemeKey

      public String getThemeKey()
      Description copied from class: GUIObject
      Returns this object's theme key. This is the key that is used to look up the texture used to render this object. This may return null, indicating that this object does not have a default texture.
      Specified by:
      getThemeKey in class GUIObject
      Returns:
      the theme key.