Class GuiProperties
java.lang.Object
de.gurkenlabs.litiengine.gui.GuiProperties
This class contains globally used properties for all the
GuiComponents that might be added to the game.-
Method Summary
Modifier and TypeMethodDescriptionstatic AppearanceGets the default appearance for GUI components.static AppearanceGets the default appearance for disabled GUI components.static AppearanceGets the default appearance for hovered GUI components.static FontGets the default font for GUI components.static intGets the default display time for speech bubbles in milliseconds.static AlignGets the default horizontal alignment for text in GUI components.static booleanGets whether text antialiasing is enabled by default.static booleanGets whether text shadow is enabled by default.static ColorGets the default color for text shadows.static floatGets the default radius for text shadows.static ValignGets the default vertical alignment for text in GUI components.static voidSets the default appearance for GUI components.static voidSets the default appearance for disabled GUI components.static voidSets the default appearance for hovered GUI components.static voidsetDefaultFont(Font newFont) Sets the default font for GUI components.static voidsetDefaultSpeechBubbleDisplayTime(int newDefault) Sets the default display time for speech bubbles in milliseconds.static voidsetDefaultTextAlign(Align newDefault) Sets the default horizontal alignment for text in GUI components.static voidsetDefaultTextAntialiasing(boolean newDefault) Sets whether text antialiasing is enabled by default.static voidsetDefaultTextShadow(boolean newDefault) Sets whether text shadow is enabled by default.static voidsetDefaultTextShadowColor(Color newDefault) Sets the default color for text shadows.static voidsetDefaultTextShadowRadius(float newDefault) Sets the default radius for text shadows.static voidsetDefaultTextValign(Valign newDefault) Sets the default vertical alignment for text in GUI components.
-
Method Details
-
getDefaultAppearance
Gets the default appearance for GUI components.- Returns:
- the default appearance
-
setDefaultAppearance
Sets the default appearance for GUI components.- Parameters:
app- the new default appearance
-
getDefaultAppearanceHovered
Gets the default appearance for hovered GUI components.- Returns:
- the default appearance for hovered components
-
getDefaultAppearanceDisabled
Gets the default appearance for disabled GUI components.- Returns:
- the default appearance for disabled components
-
setDefaultAppearanceDisabled
Sets the default appearance for disabled GUI components.- Parameters:
app- the new default appearance for disabled components
-
setDefaultAppearanceHovered
Sets the default appearance for hovered GUI components.- Parameters:
app- the new default appearance for hovered components
-
getDefaultFont
Gets the default font for GUI components.- Returns:
- the default font
-
setDefaultFont
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
Gets the default color for text shadows.- Returns:
- the default text shadow color
-
setDefaultTextShadowColor
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
Gets the default horizontal alignment for text in GUI components.- Returns:
- the default text alignment
-
setDefaultTextAlign
Sets the default horizontal alignment for text in GUI components.- Parameters:
newDefault- the new default text alignment
-
getDefaultTextValign
Gets the default vertical alignment for text in GUI components.- Returns:
- the default text vertical alignment
-
setDefaultTextValign
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
-