Enum Class LAF_FLATLAF

java.lang.Object
java.lang.Enum<LAF_FLATLAF>
be.gaudry.swing.laf.LAF_FLATLAF
All Implemented Interfaces:
ILaf, Serializable, Comparable<LAF_FLATLAF>, Constable

public enum LAF_FLATLAF extends Enum<LAF_FLATLAF> implements ILaf
Since:
1.0 28 sept. 2008
Author:
Steph GAUDRY
  • Enum Constant Details

    • SYSTEM

      public static final LAF_FLATLAF SYSTEM
    • FLATLAF_LIGHT

      public static final LAF_FLATLAF FLATLAF_LIGHT
    • FLATLAF_DARK

      public static final LAF_FLATLAF FLATLAF_DARK
    • FLATLAF_INTELLIJ

      public static final LAF_FLATLAF FLATLAF_INTELLIJ
    • FLATLAF_DRACULA

      public static final LAF_FLATLAF FLATLAF_DRACULA
  • Method Details

    • values

      public static LAF_FLATLAF[] 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

      public static LAF_FLATLAF valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFromClassName

      public static LAF_FLATLAF getFromClassName(String lafClassName)
      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 interface ILaf
      Returns:
      true if the theme is a dark theme
    • getLafName

      public String getLafName()
      Specified by:
      getLafName in interface ILaf
      Returns:
      the theme name to display
    • getLafClassName

      public String getLafClassName()
      Specified by:
      getLafClassName in interface ILaf
      Returns:
      the theme className to use with UIManager