Class GuiProperties

java.lang.Object
de.gurkenlabs.litiengine.gui.GuiProperties

public class GuiProperties extends Object
This class contains globally used properties for all the GuiComponents that might be added to the game.
  • Method Details

    • getDefaultAppearance

      public static Appearance getDefaultAppearance()
      Gets the default appearance for GUI components.
      Returns:
      the default appearance
    • setDefaultAppearance

      public static void setDefaultAppearance(Appearance app)
      Sets the default appearance for GUI components.
      Parameters:
      app - the new default appearance
    • getDefaultAppearanceHovered

      public static Appearance getDefaultAppearanceHovered()
      Gets the default appearance for hovered GUI components.
      Returns:
      the default appearance for hovered components
    • getDefaultAppearanceDisabled

      public static Appearance getDefaultAppearanceDisabled()
      Gets the default appearance for disabled GUI components.
      Returns:
      the default appearance for disabled components
    • setDefaultAppearanceDisabled

      public static void setDefaultAppearanceDisabled(Appearance app)
      Sets the default appearance for disabled GUI components.
      Parameters:
      app - the new default appearance for disabled components
    • setDefaultAppearanceHovered

      public static void setDefaultAppearanceHovered(Appearance app)
      Sets the default appearance for hovered GUI components.
      Parameters:
      app - the new default appearance for hovered components
    • getDefaultFont

      public static Font getDefaultFont()
      Gets the default font for GUI components.
      Returns:
      the default font
    • setDefaultFont

      public static void setDefaultFont(Font newFont)
      Sets the default font for GUI components.
      Parameters:
      newFont - the new default font
    • getDefaultTextAntialiasing

      public static boolean getDefaultTextAntialiasing()
      Gets whether text antialiasing is enabled by default.
      Returns:
      true if text antialiasing is enabled by default, false otherwise
    • setDefaultTextAntialiasing

      public static void setDefaultTextAntialiasing(boolean newDefault)
      Sets whether text antialiasing is enabled by default.
      Parameters:
      newDefault - true to enable text antialiasing by default, false otherwise
    • getDefaultTextShadow

      public static boolean getDefaultTextShadow()
      Gets whether text shadow is enabled by default.
      Returns:
      true if text shadow is enabled by default, false otherwise
    • setDefaultTextShadow

      public static void setDefaultTextShadow(boolean newDefault)
      Sets whether text shadow is enabled by default.
      Parameters:
      newDefault - true to enable text shadow by default, false otherwise
    • getDefaultTextShadowColor

      public static Color getDefaultTextShadowColor()
      Gets the default color for text shadows.
      Returns:
      the default text shadow color
    • setDefaultTextShadowColor

      public static void setDefaultTextShadowColor(Color newDefault)
      Sets the default color for text shadows.
      Parameters:
      newDefault - the new default text shadow color
    • getDefaultTextShadowRadius

      public static float getDefaultTextShadowRadius()
      Gets the default radius for text shadows.
      Returns:
      the default text shadow radius
    • setDefaultTextShadowRadius

      public static void setDefaultTextShadowRadius(float newDefault)
      Sets the default radius for text shadows.
      Parameters:
      newDefault - the new default text shadow radius
    • getDefaultTextAlign

      public static Align getDefaultTextAlign()
      Gets the default horizontal alignment for text in GUI components.
      Returns:
      the default text alignment
    • setDefaultTextAlign

      public static void setDefaultTextAlign(Align newDefault)
      Sets the default horizontal alignment for text in GUI components.
      Parameters:
      newDefault - the new default text alignment
    • getDefaultTextValign

      public static Valign getDefaultTextValign()
      Gets the default vertical alignment for text in GUI components.
      Returns:
      the default text vertical alignment
    • setDefaultTextValign

      public static void setDefaultTextValign(Valign newDefault)
      Sets the default vertical alignment for text in GUI components.
      Parameters:
      newDefault - the new default text vertical alignment
    • getDefaultSpeechBubbleDisplayTime

      public static int getDefaultSpeechBubbleDisplayTime()
      Gets the default display time for speech bubbles in milliseconds.
      Returns:
      the default speech bubble display time
    • setDefaultSpeechBubbleDisplayTime

      public static void setDefaultSpeechBubbleDisplayTime(int newDefault)
      Sets the default display time for speech bubbles in milliseconds.
      Parameters:
      newDefault - the new default speech bubble display time