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
-
Method Summary
Modifier and TypeMethodDescriptionprotected GThemeValueMap
Mines the UiDefaults for all color values.protected void
Replaces UiDefaults values withGColorUIResource
values the provide the theme indirection.protected void
Defines the values to assign to all the system color ids based on the best representative value defined in theBasicLookAndFeel
protected void
Registers anyLookAndFeel
ids that are not used directly (e.g.Methods 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
protected void registerIgnoredJavaIds()Description copied from class:UiDefaultsMapper
Registers anyLookAndFeel
ids 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:
registerIgnoredJavaIds
in classUiDefaultsMapper
-
pickRepresentativeValueForColorGroups
protected void pickRepresentativeValueForColorGroups()Description copied from class:UiDefaultsMapper
Defines the values to assign to all the system color ids based on the best representative value defined in theBasicLookAndFeel
- Overrides:
pickRepresentativeValueForColorGroups
in classUiDefaultsMapper
-
extractColorFontAndIconValuesFromDefaults
Description copied from class:UiDefaultsMapper
Mines the UiDefaults for all color values.- Overrides:
extractColorFontAndIconValuesFromDefaults
in classUiDefaultsMapper
- Returns:
- a map of id to values for UIDefaults Colors.
-
installGColorsIntoUIDefaults
protected void installGColorsIntoUIDefaults()Description copied from class:UiDefaultsMapper
Replaces UiDefaults values withGColorUIResource
values the provide the theme indirection.- Overrides:
installGColorsIntoUIDefaults
in classUiDefaultsMapper
-