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 voidSubclasses may override this method to install a specific look and feel.protected voidSubclass may override this method to do specific LookAndFeel fix upsvoidfontsChanged(Set<String> affectedJavaIds) Called when one or more fonts have changed.protected UiDefaultsMappergetUiDefaultsMapper(UIDefaults defaults) voidiconsChanged(Set<String> affectedJavaIds, Icon newIcon) Called when one or more icons have changed.protected voidExtracts java default colors, fonts, and icons and stores them in theThemeManagerand updates theUIDefaultsby installing GColors for all color values and installing any overridden fonts or icons.voidresetAll(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:LookAndFeelManagerCalled when all colors, fonts, and icons may have changed- Overrides:
resetAllin 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:LookAndFeelManagerCalled when one or more fonts have changed.- Overrides:
fontsChangedin classLookAndFeelManager- Parameters:
affectedJavaIds- the set of Java Font ids that are affected by this change
-
iconsChanged
Description copied from class:LookAndFeelManagerCalled when one or more icons have changed.- Overrides:
iconsChangedin 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:LookAndFeelManagerSubclasses may override this method to install a specific look and feel.- Overrides:
doInstallLookAndFeelin classLookAndFeelManager- Throws:
UnsupportedLookAndFeelException- iflnf.isSupportedLookAndFeel()is false
-
processJavaDefaults
protected void processJavaDefaults()Description copied from class:LookAndFeelManagerExtracts java default colors, fonts, and icons and stores them in theThemeManagerand updates theUIDefaultsby installing GColors for all color values and installing any overridden fonts or icons.- Overrides:
processJavaDefaultsin classLookAndFeelManager
-
fixupLookAndFeelIssues
protected void fixupLookAndFeelIssues()Description copied from class:LookAndFeelManagerSubclass may override this method to do specific LookAndFeel fix ups- Overrides:
fixupLookAndFeelIssuesin classLookAndFeelManager
-
getUiDefaultsMapper
- Specified by:
getUiDefaultsMapperin classLookAndFeelManager
-