Package generic.theme.laf
Class NimbusUiDefaultsMapper
java.lang.Object
generic.theme.laf.UiDefaultsMapper
generic.theme.laf.NimbusUiDefaultsMapper
-
Field Summary
Fields inherited from class generic.theme.laf.UiDefaultsMapper
defaultColorMatcher, defaultFontMatcher, defaults, ignoredJavaIds, LAF_COLOR_ID_PREFIX, LAF_FONT_ID_PREFIX, LAF_ICON_ID_PREFIX, LAF_PROPERTY_PREFIX, menuFontGrouper, tooltipColorGrouper, viewColorGrouper, viewFontGrouper -
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionprotected GThemeValueMapMines the UiDefaults for all color values.protected voidReplaces UiDefaults values withGColorUIResourcevalues the provide the theme indirection.NEWprotected voidDefines the values to assign to all the system color ids based on the best representative value defined in theBasicLookAndFeelNEWprotected voidRegisters anyLookAndFeelids that are not used directly (e.g.REMOVEDvoidRemovedREMOVEDvoidRemovedMethods inherited from class generic.theme.laf.UiDefaultsMapper
assignNormalizedColorValues, buildComponentToColorGrouperMap, buildComponentToFontGrouperMap, getNormalizedIdToLafIdMap, getNormalizedJavaDefaults, installValuesIntoUIDefaults, overrideColor, pickRepresentativeValueForFontGroups, setComponentFont, setGroupColor, setGroupColorUsingJavaRepresentative, setGroupFont
-
Constructor Details
-
NimbusUiDefaultsMapper
-
-
Method Details
-
registerIgnoredJavaIds NEW
protected void registerIgnoredJavaIds()Description copied from class:UiDefaultsMapperRegisters anyLookAndFeelids that are not used directly (e.g. "control", "text", etc.) so that these values won't get mapped to any normalized id. There is no need for these values to show up in the theme values, since changing them will have no effect. They are used to seed the values for the system color and fonts. Subclasses should override this method to add additional ids so they won't show up in the theme values.- Overrides:
registerIgnoredJavaIdsin classUiDefaultsMapper
-
pickRepresentativeValueForColorGroups NEW
protected void pickRepresentativeValueForColorGroups()Description copied from class:UiDefaultsMapperDefines the values to assign to all the system color ids based on the best representative value defined in theBasicLookAndFeel- Overrides:
pickRepresentativeValueForColorGroupsin classUiDefaultsMapper
-
extractColorFontAndIconValuesFromDefaults
Description copied from class:UiDefaultsMapperMines the UiDefaults for all color values.- Overrides:
extractColorFontAndIconValuesFromDefaultsin classUiDefaultsMapper- Returns:
- a map of id to values for UIDefaults Colors.
-
installGColorsIntoUIDefaults
protected void installGColorsIntoUIDefaults()Description copied from class:UiDefaultsMapperReplaces UiDefaults values withGColorUIResourcevalues the provide the theme indirection.- Overrides:
installGColorsIntoUIDefaultsin classUiDefaultsMapper
-