Interface ApplicationSkin


public interface ApplicationSkin
Provides access to methods dealing with the "skin" or "look and feel" of the user interface. In the majority of situations, you should not need to worry about what skin the GUI is using; it is set by the user and automatically applies to most GUI elements without any special effort on your part. This module allows you to change the skin programmatically, and provides manual access to certain color information for when you have a GUI element that does not automatically respect the current skin. This interface can be accessed via the Application by calling Application.getSkin() or Application.skin().
  • Method Details

    • setSkin

      void setSkin(ApplicationSkin.SkinMode mode)
      Sets the background color of the GUI to the selected mode. This will provoke a refresh of the GUI and post a ApplicationSkinEvent to the application-wide event bus.
      Parameters:
      mode - The mode to use.
    • getSkin

      Returns the current Micro-Manager skin.
      Returns:
      the current Micro-Manager skin.
    • getBackgroundColor

      Color getBackgroundColor()
      Return the current background color for normal GUI elements.
      Returns:
      current background color
    • getLightBackgroundColor

      Color getLightBackgroundColor()
      Return the current "lighter" background color for highlighted or otherwise differentiated GUI elements.
      Returns:
      light background color
    • getDisabledBackgroundColor

      Color getDisabledBackgroundColor()
      Return the current "disabled" background color.
      Returns:
      "disabled" background color
    • getEnabledTextColor

      Color getEnabledTextColor()
      Return the current color for enabled text.
      Returns:
      current color for enabled text
    • getDisabledTextColor

      Color getDisabledTextColor()
      Return the current color for disabled text.
      Returns:
      current color for disabled text.
    • suspendToMode

      void suspendToMode(ApplicationSkin.SkinMode mode)
      If the specified mode is not currently active, then we switch to that mode without updating the UI. Useful if a component must be generated with a nonstandard look-and-feel.
      Parameters:
      mode - SkinMode to switch to (but without updating the UI)
    • resume

      void resume()
      Restores the mode that was active before suspendToMode was called.