Package esmska.gui

Class ThemeManager


  • public class ThemeManager
    extends java.lang.Object
    Manage and set look and feel
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ThemeManager.LAF  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ThemeManager.LAF getActiveLaF()
      Returns currently active look and feel
      static boolean isAquaCurrentLaF()
      Returns whether Aqua (Mac OS native) is current look and feel
      static boolean isCurrentSkinDark()
      Returns whether current LaF skin is dark-toned, mainly in text-areas
      static boolean isGTKCurrentLaF()
      Returns whether GTK is current look and feel
      static boolean isLaFSupported​(ThemeManager.LAF laf)
      Returns whether specified LaF is supported on current configuration (operating system, java version, etc).
      static boolean isNimbusCurrentLaF()
      Returns whether Nimbus is current look and feel
      static boolean isSubstanceCurrentLaF()
      Returns whether Substance is current look and feel
      static void setLaF()
      Set look and feel found in configuration.
      static ThemeManager.LAF suggestBestLAF()
      Propose the best LaF for current system, based on java type and operating system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setLaF

        public static void setLaF()
                           throws java.lang.Throwable
        Set 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