Class LaF

java.lang.Object
se.datadosen.util.LaF

public class LaF
extends java.lang.Object
Helper utility class to facilitate LookAndFeel related stuff
Since:
20.3
  • Constructor Summary

    Constructors 
    Constructor Description
    LaF()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String getClassNameFromName​(java.lang.String lafName)  
    static java.lang.String getNameFromClassName​(java.lang.String lafClassName)  
    static java.util.Map<java.lang.String,​com.formdev.flatlaf.IntelliJTheme> getThemes()  
    static boolean isAnyOf​(java.lang.String... ids)  
    static boolean isDark()
    Replacing Platform.isDarkLookAndFeel (Platform is installed in JAlbum.jar, which makes it harder to maintain)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LaF

      public LaF()
  • Method Details

    • getThemes

      public static java.util.Map<java.lang.String,​com.formdev.flatlaf.IntelliJTheme> getThemes()
    • isAnyOf

      public static boolean isAnyOf​(java.lang.String... ids)
      Parameters:
      ids - , names or parts of names like "Aqua", "Windows", "Darcula" or "FlatLaf - FlatLaf Dark"
      Returns:
      true if any part of the listed ID strings is part of the ID of the current look and feel
    • isDark

      public static boolean isDark()
      Replacing Platform.isDarkLookAndFeel (Platform is installed in JAlbum.jar, which makes it harder to maintain)
      Returns:
    • getNameFromClassName

      public static java.lang.String getNameFromClassName​(java.lang.String lafClassName)
    • getClassNameFromName

      public static java.lang.String getClassNameFromName​(java.lang.String lafName)