Package generic.theme.laf
Class NimbusLookAndFeelManager
java.lang.Object
generic.theme.laf.LookAndFeelManager
generic.theme.laf.NimbusLookAndFeelManager
Nimbus
LookAndFeelManager
. Specialized so that it can return the Nimbus installer and
perform specialized updating when icons or fonts change. Basically, this class needs to
re-install a new instance of the Nimbus LookAndFeel each time a font or icon changes.-
Field Summary
Fields inherited from class generic.theme.laf.LookAndFeelManager
normalizedIdToLafIdMap, themeManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Subclasses may override this method to install a specific look and feel.protected void
Subclass may override this method to do specific LookAndFeel fix upsvoid
fontsChanged
(Set<String> affectedJavaIds) Called when one or more fonts have changed.protected UiDefaultsMapper
getUiDefaultsMapper
(UIDefaults defaults) void
iconsChanged
(Set<String> affectedJavaIds, Icon newIcon) Called when one or more icons have changed.protected void
Extracts java default colors, fonts, and icons and stores them in theThemeManager
and updates theUIDefaults
by installing GColors for all color values and installing any overridden fonts or icons.void
resetAll
(GThemeValueMap javaDefaults) Called when all colors, fonts, and icons may have changedMethods inherited from class generic.theme.laf.LookAndFeelManager
colorsChanged, findLookAndFeelClassName, getLookAndFeelIdsForType, getLookAndFeelType, installLookAndFeel, isSupported, registerFont, repaintAll, setKeyBinding, updateAllRegisteredComponentFonts, updateComponentUis
-
Constructor Details
-
NimbusLookAndFeelManager
-
-
Method Details
-
resetAll
Description copied from class:LookAndFeelManager
Called when all colors, fonts, and icons may have changed- Overrides:
resetAll
in classLookAndFeelManager
- Parameters:
javaDefaults
- the current set of java defaults so that those ids can be updated special as needed by the currentLookAndFeel
-
fontsChanged
Description copied from class:LookAndFeelManager
Called when one or more fonts have changed.- Overrides:
fontsChanged
in classLookAndFeelManager
- Parameters:
affectedJavaIds
- the set of Java Font ids that are affected by this change
-
iconsChanged
Description copied from class:LookAndFeelManager
Called when one or more icons have changed.- Overrides:
iconsChanged
in classLookAndFeelManager
- Parameters:
affectedJavaIds
- set of icon ids affected by this icon changenewIcon
- the new icon to use for the given set of icon ids
-
doInstallLookAndFeel
Description copied from class:LookAndFeelManager
Subclasses may override this method to install a specific look and feel.- Overrides:
doInstallLookAndFeel
in classLookAndFeelManager
- Throws:
UnsupportedLookAndFeelException
- iflnf.isSupportedLookAndFeel()
is false
-
processJavaDefaults
protected void processJavaDefaults()Description copied from class:LookAndFeelManager
Extracts java default colors, fonts, and icons and stores them in theThemeManager
and updates theUIDefaults
by installing GColors for all color values and installing any overridden fonts or icons.- Overrides:
processJavaDefaults
in classLookAndFeelManager
-
fixupLookAndFeelIssues
protected void fixupLookAndFeelIssues()Description copied from class:LookAndFeelManager
Subclass may override this method to do specific LookAndFeel fix ups- Overrides:
fixupLookAndFeelIssues
in classLookAndFeelManager
-
getUiDefaultsMapper
- Specified by:
getUiDefaultsMapper
in classLookAndFeelManager
-