Package be.gaudry.swing.laf
Enum Class LAF_FLATLAF
- All Implemented Interfaces:
ILaf
,Serializable
,Comparable<LAF_FLATLAF>
,Constable
- Since:
- 1.0 28 sept. 2008
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LAF_FLATLAF
getFromClassName(String lafClassName)
boolean
static LAF_FLATLAF
Returns the enum constant of this class with the specified name.static LAF_FLATLAF[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYSTEM
-
FLATLAF_LIGHT
-
FLATLAF_DARK
-
FLATLAF_INTELLIJ
-
FLATLAF_DRACULA
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFromClassName
- Parameters:
lafClassName
- the className of the LAF to return- Returns:
- the LAF constant of the specified className or system LAF if an error occurs
-
isDarkTheme
public boolean isDarkTheme()- Specified by:
isDarkTheme
in interfaceILaf
- Returns:
- true if the theme is a dark theme
-
getLafName
- Specified by:
getLafName
in interfaceILaf
- Returns:
- the theme name to display
-
getLafClassName
- Specified by:
getLafClassName
in interfaceILaf
- Returns:
- the theme className to use with UIManager
-