com.change_vision.jude.api.inf.view
Interface ILookAndFeelManager

com.change_vision.jude.api.inf.view.ILookAndFeelManager

public abstract ILookAndFeelManager

Interface to manage the Look and Feel of Astah. This class can be used with Plug-in only.


Method Summary
abstract  URL getResourceWithThemeAware()
          Get resources with name qualifiers according to the theme of look and feel.
abstract  boolean isDarkLookAndFeel()
          Check if the look and feel is dark mode.
 

Method Detail

isDarkLookAndFeel

abstract boolean isDarkLookAndFeel()
Check if the look and feel is dark mode.

Returns:
true the look and feel is dark theme / false it the look and feel isn't dark theme

getResourceWithThemeAware

abstract URL getResourceWithThemeAware()
Get resources with name qualifiers according to the theme of look and feel. The name extended with $light qualifier or $dark qualifier returns the resource for a light theme or for a dark theme. If the resource does not exist, the resource by the name is returned.

For example, to get some.png in the case of a dark theme, some$dark.png should be searched. The URL can be returned if the resource exists, otherwise, the URL of some.png is returned.

Parameters:
classLoader - the class loader to get the resource
name - the name of the resource
Returns:
URL of the resource