Class JellyfinLookAndFell

java.lang.Object
com.lariflix.jemm.utils.JellyfinLookAndFell

public class JellyfinLookAndFell extends Object
The JellyfinLookAndFell class is used to manage the look and feel of the Jellyfin application. This class provides methods to set and retrieve the look and feel of the application. It also provides methods to load and save the look and feel settings.
Author:
Cesar Bianchi
  • Constructor Details

    • JellyfinLookAndFell

      public JellyfinLookAndFell()
      Constructor for the JellyfinLookAndFell class. This is a no-argument constructor that initializes a new instance of the JellyfinLookAndFell class. It doesn't perform any specific actions.
      Since:
      1.1
  • Method Details

    • setLookAndFeelNimbus

      public static void setLookAndFeelNimbus()
      Sets the "Nimbus" Look and Feel Theme for the Jellyfin application. This method iterates over the installed look and feels in the UIManager and sets the look and feel to "Nimbus" if it is found. If an exception is thrown during this process, it is caught and the error message is printed to the console. This method does not return a value.
      Throws:
      UnsupportedLookAndFeelException - If the look and feel is not supported.
      ClassNotFoundException - If the look and feel class could not be found.
      InstantiationException - If the look and feel class could not be instantiated.
      IllegalAccessException - If the look and feel class or its nullary constructor is not accessible.
      Since:
      January/2021
    • setLookAndFeelFlatLightLaf

      public static void setLookAndFeelFlatLightLaf()
      Sets the "FlatLightLaf" Look and Feel Theme for the Jellyfin application. This method sets the look and feel to "FlatLightLaf" using the UIManager. If an exception is thrown during this process, it is caught and the error message "Failed to initialize LaF" is printed to the console. This method does not return a value.
      Throws:
      UnsupportedLookAndFeelException - If the look and feel is not supported.
      ClassNotFoundException - If the look and feel class could not be found.
      InstantiationException - If the look and feel class could not be instantiated.
      IllegalAccessException - If the look and feel class or its nullary constructor is not accessible.
      Since:
      January/2021
    • setLookAndFeelFlatDarkLaf

      public static void setLookAndFeelFlatDarkLaf()
      Sets the "FlatDarkLaf" Look and Feel Theme for the Jellyfin application. This method sets the look and feel to "FlatDarkLaf" using the UIManager. If an exception is thrown during this process, it is caught and the error message "Failed to initialize LaF" is printed to the console. This method does not return a value.
      Throws:
      UnsupportedLookAndFeelException - If the look and feel is not supported.
      ClassNotFoundException - If the look and feel class could not be found.
      InstantiationException - If the look and feel class could not be instantiated.
      IllegalAccessException - If the look and feel class or its nullary constructor is not accessible.
      Since:
      January/2021
    • setLookAndFeelFlatIntelijLaf

      public static void setLookAndFeelFlatIntelijLaf()
      Sets the "FlatIntelijLaf" Look and Feel Theme for the Jellyfin application. This method sets the look and feel to "FlatIntelijLaf" using the UIManager. If an exception is thrown during this process, it is caught and the error message "Failed to initialize LaF" is printed to the console. This method does not return a value.
      Throws:
      UnsupportedLookAndFeelException - If the look and feel is not supported.
      ClassNotFoundException - If the look and feel class could not be found.
      InstantiationException - If the look and feel class could not be instantiated.
      IllegalAccessException - If the look and feel class or its nullary constructor is not accessible.
      Since:
      January/2021
    • setLookAndFeelFlatDarculaLaf

      public static void setLookAndFeelFlatDarculaLaf()
      Sets the "FlatDarculaLaf" Look and Feel Theme for the Jellyfin application. This method sets the look and feel to "FlatDarculaLaf" using the UIManager. If an exception is thrown during this process, it is caught and the error message "Failed to initialize LaF" is printed to the console. This method does not return a value.
      Throws:
      UnsupportedLookAndFeelException - If the look and feel is not supported.
      ClassNotFoundException - If the look and feel class could not be found.
      InstantiationException - If the look and feel class could not be instantiated.
      IllegalAccessException - If the look and feel class or its nullary constructor is not accessible.
      Since:
      January/2021
    • setLookAndFeelArcOrange

      public static void setLookAndFeelArcOrange()
      Sets the "ArcOrange" Look and Feel Theme for the Jellyfin application. This method sets the look and feel to "ArcOrange" using the FlatArcOrangeIJTheme. If an exception is thrown during this process, it is caught and the error message "Failed to initialize LaF" is printed to the console. This method does not return a value.
      Throws:
      Exception - If there is a problem with setting the look and feel.
      Since:
      January/2021
    • setLookAndFeelFlatDarkPurpleIJTheme

      public static void setLookAndFeelFlatDarkPurpleIJTheme()
      Sets the "DarkPurpleIJTheme" Look and Feel Theme for the Jellyfin application. This method sets the look and feel to "DarkPurpleIJTheme" using the FlatDarkPurpleIJTheme. If an exception is thrown during this process, it is caught and the error message "Failed to initialize LaF" is printed to the console. This method does not return a value.
      Throws:
      Exception - If there is a problem with setting the look and feel.
      Since:
      January/2021
    • setLookAndFeelFlatFlatNordTheme

      public static void setLookAndFeelFlatFlatNordTheme()
      Sets the "FlatNordTheme" Look and Feel Theme for the Jellyfin application. This method sets the look and feel to "FlatNordTheme" using the FlatNordIJTheme. If an exception is thrown during this process, it is caught and the error message "Failed to initialize LaF" is printed to the console. This method does not return a value.
      Throws:
      Exception - If there is a problem with setting the look and feel.
      Since:
      January/2021