Class LookAndFeelCommand

java.lang.Object
org.apache.jmeter.gui.action.AbstractAction
org.apache.jmeter.gui.action.LookAndFeelCommand
All Implemented Interfaces:
Command

@AutoService(Command.class) public class LookAndFeelCommand extends AbstractAction
Implements the Look and Feel menu item.
  • Constructor Details

    • LookAndFeelCommand

      public LookAndFeelCommand()
  • Method Details

    • getMenuItems

      public static Collection<LookAndFeelCommand.MenuItem> getMenuItems()
    • getJMeterLaf

      @Deprecated public static String getJMeterLaf()
      Deprecated.
      see #getPreferredLafCommand
      Get LookAndFeel classname from the following properties:
      • User preferences key: "laf"
      • jmeter.laf.<os.name> - lowercased; spaces replaced by '_'
      • jmeter.laf.<os.family> - lowercased.
      • jmeter.laf
      • UIManager.getCrossPlatformLookAndFeelClassName()
      Returns:
      LAF classname
      See Also:
    • getPreferredLafCommand

      public static String getPreferredLafCommand()
      Returns a command that would activate the preferred LaF.
      Returns:
      command that would activate the preferred LaF
    • isDarklafTheme

      public static boolean isDarklafTheme()
    • isDark

      public static boolean isDark()
    • activateLookAndFeel

      public static void activateLookAndFeel(String command)
    • doAction

      public void doAction(ActionEvent ev)
      Specified by:
      doAction in interface Command
      Overrides:
      doAction in class AbstractAction
      See Also:
    • getActionNames

      public Set<String> getActionNames()