Package esmska.gui
Class ThemeManager
- java.lang.Object
-
- esmska.gui.ThemeManager
-
public class ThemeManager extends java.lang.ObjectManage and set look and feel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThemeManager.LAF
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThemeManager.LAFgetActiveLaF()Returns currently active look and feelstatic booleanisAquaCurrentLaF()Returns whether Aqua (Mac OS native) is current look and feelstatic booleanisCurrentSkinDark()Returns whether current LaF skin is dark-toned, mainly in text-areasstatic booleanisGTKCurrentLaF()Returns whether GTK is current look and feelstatic booleanisLaFSupported(ThemeManager.LAF laf)Returns whether specified LaF is supported on current configuration (operating system, java version, etc).static booleanisNimbusCurrentLaF()Returns whether Nimbus is current look and feelstatic booleanisSubstanceCurrentLaF()Returns whether Substance is current look and feelstatic voidsetLaF()Set look and feel found in configuration.static ThemeManager.LAFsuggestBestLAF()Propose the best LaF for current system, based on java type and operating system.
-
-
-
Method Detail
-
setLaF
public static void setLaF() throws java.lang.ThrowableSet look and feel found in configuration. If it is not possible, use the next best one. Must be called on the EDT.- Throws:
java.lang.Throwable- when chosen look and feel can't be set
-
getActiveLaF
public static ThemeManager.LAF getActiveLaF()
Returns currently active look and feel
-
isGTKCurrentLaF
public static boolean isGTKCurrentLaF()
Returns whether GTK is current look and feel
-
isAquaCurrentLaF
public static boolean isAquaCurrentLaF()
Returns whether Aqua (Mac OS native) is current look and feel
-
isNimbusCurrentLaF
public static boolean isNimbusCurrentLaF()
Returns whether Nimbus is current look and feel
-
isSubstanceCurrentLaF
public static boolean isSubstanceCurrentLaF()
Returns whether Substance is current look and feel
-
isCurrentSkinDark
public static boolean isCurrentSkinDark()
Returns whether current LaF skin is dark-toned, mainly in text-areas
-
isLaFSupported
public static boolean isLaFSupported(ThemeManager.LAF laf)
Returns whether specified LaF is supported on current configuration (operating system, java version, etc).
-
suggestBestLAF
public static ThemeManager.LAF suggestBestLAF()
Propose the best LaF for current system, based on java type and operating system. Useful for program first run.- Returns:
- the best LaF for this platform
-
-