Class RadianceThemingCortex.GlobalScope
- Enclosing class:
RadianceThemingCortex
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static RadianceThemingSlices.ButtonOrderprivate static RadianceThemingSlices.HorizontalGravityprivate static RadianceSkinThe current Radiance skin.private static RadianceIconPackprivate static ResourceBundleResource bundle for Radiance labels.private static ClassLoaderClass loader forlabelBundle.private static final Set<RadianceThemingSlices.LocaleChangeListener> List of all listeners on changing locales.private static final Stringprivate static final Set<SkinChangeListener> List of all listeners on skin changes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet) Allows animations of the specified facet on all controls.static voidallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, Class<?> clazz) Allows animations of the specified facet on all controls of specified class.static voidallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, Class<?>[] clazz) Allows animations of the specified facet on all controls of specified classes.static voidconfigureTitleContentGravity(RadianceThemingSlices.HorizontalGravity titleTextHorizontalGravity, RadianceThemingSlices.HorizontalGravity titleControlButtonGroupHorizontalGravity, RadianceThemingSlices.TitleIconHorizontalGravity titleIconHorizontalGravity) Configures title pane content gravity for all decorated application windows.static voiddisallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet) Disallows animations of the specified facet on all controls.static voiddisallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, Class<?> clazz) Disallows animations of the specified facet on all controls of specified class.static voiddisallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, Class<?>[] clazz) Disallows animations of the specified facet on all controls of specified classes.Returns all available skins.static Set<BaseTabCloseListener> Returns the set of all listeners registered on tab-close events on all tabbed panes.static BufferedImagegetBlankImage(double scaleFactor, int width, int height) Returns the currently set button bar gravity for all containers that display grouped buttons, such asJOptionPanes, for example.Returns the currently set button order for all containers that display grouped buttons, such asJOptionPanes, for example.static RadianceSkinReturns the current global skin.static FontPolicyLooks up and retrieves theFontPolicyused by the Radiance family.static RadianceIconPackLooks up and retrieves theRadianceIconPackused by Radiance.static ResourceBundleRetrieves the current label bundle.static ResourceBundlegetLabelBundle(Locale locale) Retrieves the label bundle for the specified locale.static ClassLoaderReturns all listeners registered on locale change.static floatReturns the menu gutter fill alpha.static longReturns the gravity for the icon in title panes of all decorated application windows.Returns the gravity for the title text in title panes of all decorated application windows.(package private) static voidinitFontDefaults(UIDefaults table) Looks up the correct control font and sets it for all controls.private static voidinitFontDefaults(UIDefaults table, FontSet fontSet) Sets Fonts in the given FontSet as defaults for all known component types in the given UIDefaults table.static booleanisAnimationAllowed(RadianceThemingSlices.AnimationFacet animationFacet) Checks whether the specified animation facet is allowed on the specified component.static voidregisterComponentPlugin(RadianceThemingComponentPlugin componentPlugin) Registers the specified component plugin.static voidRegisters a new listener on locale change.static voidregisterSkinChangeListener(SkinChangeListener skinChangeListener) Registers a new listener on skin change.static voidregisterSkinPlugin(RadianceThemingSkinPlugin skinPlugin) Registers the specified skin plugin.static voidregisterTabCloseChangeListener(BaseTabCloseListener tabCloseListener) Registers the specified listener on tab-close events on all tabbed panes.static voidregisterWidget(String widgetClassName, Class<?> supportedClass, boolean isExact) static voidResets the current label bundle.static voidsetAutomaticDragAndDropSupportPresence(Boolean hasAutomaticDragAndDropSupport) Specifies whether trees should have should have automatic drag and drop support.static voidsetAutomaticScrollPresence(Boolean hasAutomaticScroll) Specifies whether scroll panes should have auto-scroll support invoked on mouse button click that triggers popups.static voidsetBackgroundAppearanceStrategy(RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) Specifies when components should draw their background.static voidsetButtonBarGravity(RadianceThemingSlices.HorizontalGravity buttonBarGravity) Sets the button bar gravity for all containers that display grouped buttons, such asJOptionPanes, for example.static voidsetButtonBarOrder(RadianceThemingSlices.ButtonOrder buttonBarButtonOrder) Sets the button order for all containers that display grouped buttons, such asJOptionPanes, for example.static voidsetButtonIgnoreMinimumSize(Boolean buttonIgnoreMinimumSize) Specifies whether buttons should ignore the default (minimum) dimension.static voidsetCapsLockIconVisible(Boolean visible) Specifies global visibility of the caps lock icon on password fields.static voidsetColorizationFactor(double colorizationFactor) Specifies colorization amount applied to the background and foreground of the current color tokens and all control.static voidsetComboBoxPopupPlacementStrategy(RadianceThemingSlices.PopupPlacementStrategy comboBoxPopupPlacementStrategy) Specifies the combobox popup placement strategy.static voidsetComboBoxPrototypeCallback(ComboPopupPrototypeCallback comboPopupPrototypeCallback) Specifies the combobox popup prototype callback which is used to compute the width of the popups at runtime.static voidsetComboBoxPrototypeDisplayValue(Object comboPopupPrototypeDisplayValue) Specifies the combobox popup prototype display value which is used to compute the width of the popups at runtime.static voidsetComponentPreviewPainter(PreviewPainter previewPainter) Specifies global preview painter to be used for showing preview thumbnails.static voidsetExtraWidgetsPresence(Boolean extraWidgetsPresence) Specifies that extra UI elements (such as menu items in system menu or lock borders) can be shown.static voidsetFocusKind(RadianceThemingSlices.FocusKind focusKind) Specifies the kind of focus indication to be used on application components.static voidsetFontPolicy(FontPolicy fontPolicy) Sets theFontPolicyto be used with Radiance family.static voidsetIconFilterStrategies(RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy) Specifies how icons on controls such as buttons, toggle buttons, labels, tabs and menu items are themed.static voidsetIconPack(RadianceIconPack iconPack) Sets theRadianceIconPackto be used with Radiance.static voidsetLabelBundleClassLoader(ClassLoader labelBundleClassLoader) Sets the class loader forlabelBundle.static voidsetLockIconVisible(Boolean visible) Specifies global visibility of the lock icon on non-editable text components.static voidsetMenuGutterFillAlpha(float menuGutterFillAlpha) Specifies the menu gutter fill alpha.static voidsetNumberOfPasswordEchoesPerCharacter(int echoCount) Specifies the number of echo characters for each password character in password fields.static voidsetRunModifiedAnimationOnTabCloseButton(Boolean runModifiedAnimationOnTabCloseButton) Specifies that only the close button of a marked-as-modified tab component should pulsate.static voidsetSelectTextOnFocus(Boolean selectTextOnFocus) Specifies whether the contents of text components should be selected on focus gain.static booleanSets the specified skin.static booleansetSkin(RadianceSkin newSkin) Sets the specified skin.(package private) static booleansetSkin(RadianceSkin newSkin, boolean toUpdateWindows) Sets the specified skin.static voidsetTabCloseButtonsVisible(Boolean tabCloseButtonsVisible) Configures visibility of close buttons on tabbed pane tabs.static voidsetTabCloseCallback(TabCloseCallback tabCloseCallback) Configures the callback for deciding on the tab close type on tabbed pane tabs.static voidsetTabContentPaneBorderKind(RadianceThemingSlices.TabContentPaneBorderKind tabContentPaneBorderKind) Specifies the content pane border kind for tabbed panes.static voidsetTextEditContextMenuPresence(Boolean hasEditContextMenu) Specifies whether text components should have the edit context menu (with Cut / Copy / Paste / ...static voidsetTimelineDuration(long timelineDuration) static voidsetToolbarButtonCornerRadius(float toolbarButtonCornerRadius) Specifies corner radius for all toolbar buttons.static voidsetTraceFilename(String traceFilename) Specifies the trace filename.static voidstatic voidsetWidgetVisible(boolean visible, RadianceThemingSlices.WidgetType... radianceWidgets) Sets the visibility of the specified widget kind(s).static voidUnregisters a listener on locale change.static voidunregisterSkinChangeListener(SkinChangeListener skinChangeListener) Unregisters a listener on skin change.static voidunregisterTabCloseChangeListener(BaseTabCloseListener tabCloseListener) Unregisters the specified listener on tab-close events on all tabbed panes.(package private) static void
-
Field Details
-
RADIANCE_FONT_POLICY_KEY
- See Also:
-
labelBundle
Resource bundle for Radiance labels. -
labelBundleClassLoader
Class loader forlabelBundle. -
currentSkin
The current Radiance skin. -
skinChangeListeners
List of all listeners on skin changes. -
localeChangeListeners
List of all listeners on changing locales. -
iconPack
-
buttonBarButtonOrder
-
buttonBarGravity
-
-
Constructor Details
-
GlobalScope
public GlobalScope()
-
-
Method Details
-
setSkin
Sets the specified skin. If the current look-and-feel is not Radiance, this method will create a new Radiance look-and-feel based on the specified skin and set it onUIManager. This method does not require Radiance to be the current look-and-feel.- Parameters:
newSkin- Skin to set.toUpdateWindows- iftrue, theSwingUtilities.updateComponentTreeUI(Component)is called on all windows returned byWindow.getWindows()API.- Returns:
trueif the specified skin has been set successfully,falseotherwise.- See Also:
-
unsetSkin
static void unsetSkin() -
setSkin
Sets the specified skin. If the current look-and-feel is not Radiance, this method will create a new Radiance look-and-feel based on the specified skin and set it onUIManager. This method does not require Radiance to be the current look-and-feel. Calling this method will callSwingUtilities.updateComponentTreeUI(Component)on all open top-level windows.- Parameters:
newSkin- Skin to set.- Returns:
trueif the specified skin has been set successfully,falseotherwise.- Throws:
IllegalStateException- When called outside the Event Dispatch Thread.- See Also:
-
setSkin
Sets the specified skin. If the current look-and-feel is not Radiance, this method will create a new Radiance look-and-feel based on the specified skin and set it onUIManager. This method does not require Radiance to be the current look-and-feel. Calling this method will callSwingUtilities.updateComponentTreeUI(Component)on all open top-level windows.- Parameters:
skinClassName- Skin to set.- Returns:
trueif the specified skin has been set successfully,falseotherwise.- Throws:
IllegalStateException- When called outside the Event Dispatch Thread.- See Also:
-
getCurrentSkin
Returns the current global skin. If the current look-and-feel is not Radiance, this method returnsnull.- Returns:
- Current global skin.
-
initFontDefaults
Looks up the correct control font and sets it for all controls.- Parameters:
table- The UI defaults table.
-
initFontDefaults
Sets Fonts in the given FontSet as defaults for all known component types in the given UIDefaults table.- Parameters:
table- the UIDefaults table used to set fontsfontSet- describes the set of Fonts to be installed
-
registerSkinChangeListener
Registers a new listener on skin change.- Parameters:
skinChangeListener- New listener on skin change.- See Also:
-
unregisterSkinChangeListener
Unregisters a listener on skin change.- Parameters:
skinChangeListener- The listener to unregister.- See Also:
-
getAllSkins
-
registerComponentPlugin
Registers the specified component plugin. It is recommended to call this method before setting Radiance as the look-and-feel in your application initialization sequence. If this method is called after Radiance has been set, you will need to call thesetSkin(String)orsetSkin(RadianceSkin)APIs to reinitialize the Radiance skin.- Parameters:
componentPlugin- Component plugin to register.
-
registerSkinPlugin
Registers the specified skin plugin.- Parameters:
skinPlugin- Skin plugin to register.
-
registerWidget
-
setFontPolicy
Sets theFontPolicyto be used with Radiance family. If the specified policy isnull, the default will be reset. This method does not require Radiance to be the current look-and-feel, and will cause Radiance to be set as the current application look-and-feel.- Parameters:
fontPolicy- TheFontPolicyto be used with Radiance family, ornullto reset to the default- See Also:
-
getFontPolicy
Looks up and retrieves theFontPolicyused by the Radiance family. If aFontPolicyhas been set, it'll be returned. If noFontPolicyhas been set, the default Radiance font policy will be returned.- Returns:
- the
FontPolicyset for Radiance, or the default Radiance font policy. - See Also:
-
registerTabCloseChangeListener
Registers the specified listener on tab-close events on all tabbed panes.- Parameters:
tabCloseListener- Listener to register.- See Also:
-
unregisterTabCloseChangeListener
Unregisters the specified listener on tab-close events on all tabbed panes.- Parameters:
tabCloseListener- Listener to unregister.- See Also:
-
getAllTabCloseListeners
Returns the set of all listeners registered on tab-close events on all tabbed panes.- Returns:
- Set of all listeners registered on tab-close events on all tabbed panes.
- See Also:
-
setIconPack
Sets theRadianceIconPackto be used with Radiance.- Parameters:
iconPack- TheRadianceIconPackto be used with Radiance.- See Also:
-
getIconPack
Looks up and retrieves theRadianceIconPackused by Radiance.- Returns:
- the
RadianceIconPackset for Radiance. - See Also:
-
allowAnimations
Allows animations of the specified facet on all controls. Due to performance considerations, this API can only be used to control renderer-based components (tables, lists, trees) and custom Radiance animations (focus loop, icon glow, etc).- Parameters:
animationFacet- Animation facet to allow.
-
allowAnimations
public static void allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, Class<?> clazz) Allows animations of the specified facet on all controls of specified class. Due to performance considerations, this API can only be used to control renderer-based components (tables, lists, trees) and custom Radiance animations (focus loop, icon glow, etc).- Parameters:
animationFacet- Animation facet to allow.clazz- Control class for allowing the animation facet.
-
allowAnimations
public static void allowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, Class<?>[] clazz) Allows animations of the specified facet on all controls of specified classes. Due to performance considerations, this API can only be used to control renderer-based components (tables, lists, trees) and custom Radiance animations (focus loop, icon glow, etc).- Parameters:
animationFacet- Animation facet to allow.clazz- Control classes for allowing the animation facet.
-
disallowAnimations
Disallows animations of the specified facet on all controls. Due to performance considerations, this API can only be used to control renderer-based components (tables, lists, trees) and custom Radiance animations (focus loop, icon glow, etc).- Parameters:
animationFacet- Animation facet to disallow.
-
disallowAnimations
public static void disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, Class<?> clazz) Disallows animations of the specified facet on all controls of specified class. Due to performance considerations, this API can only be used to control renderer-based components (tables, lists, trees) and custom Radiance animations (focus loop, icon glow, etc).- Parameters:
animationFacet- Animation facet to disallow.clazz- Control class for disallowing the animation facet.
-
disallowAnimations
public static void disallowAnimations(RadianceThemingSlices.AnimationFacet animationFacet, Class<?>[] clazz) Disallows animations of the specified facet on all controls of specified classes. Due to performance considerations, this API can only be used to control renderer-based components (tables, lists, trees) and custom Radiance animations (focus loop, icon glow, etc).- Parameters:
animationFacet- Animation facet to disallow.clazz- Control classes for disallowing the animation facet.
-
isAnimationAllowed
Checks whether the specified animation facet is allowed on the specified component.- Parameters:
animationFacet- Animation facet.- Returns:
trueif the specified animation facet is allowed globally,falseotherwise.
-
setTimelineDuration
public static void setTimelineDuration(long timelineDuration) -
getTimelineDuration
public static long getTimelineDuration() -
registerLocaleChangeListener
public static void registerLocaleChangeListener(RadianceThemingSlices.LocaleChangeListener localeListener) Registers a new listener on locale change.- Parameters:
localeListener- New listener on locale change.
-
unregisterLocaleChangeListener
public static void unregisterLocaleChangeListener(RadianceThemingSlices.LocaleChangeListener localeListener) Unregisters a listener on locale change.- Parameters:
localeListener- The listener to unregister.
-
getLocaleChangeListeners
Returns all listeners registered on locale change.- Returns:
- All listeners registered on locale change.
-
getLabelBundle
Retrieves the current label bundle.- Returns:
- The current label bundle.
- See Also:
-
getLabelBundle
Retrieves the label bundle for the specified locale.- Parameters:
locale- Locale.- Returns:
- The label bundle for the specified locale.
-
resetLabelBundle
public static void resetLabelBundle()Resets the current label bundle. Useful when the application changes Locale at runtime.- See Also:
-
setLabelBundleClassLoader
Sets the class loader forlabelBundle.- Parameters:
labelBundleClassLoader- Class loader forlabelBundle.
-
getLabelBundleClassLoader
-
setIconFilterStrategies
public static void setIconFilterStrategies(RadianceThemingSlices.IconFilterStrategy activeIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy enabledIconFilterStrategy, RadianceThemingSlices.IconFilterStrategy disabledIconFilterStrategy) Specifies how icons on controls such as buttons, toggle buttons, labels, tabs and menu items are themed.- Parameters:
activeIconFilterStrategy- Icon filter strategy for controls in active states.enabledIconFilterStrategy- Icon filter strategy for controls in enabled state.disabledIconFilterStrategy- Icon filter strategy for controls in disabled states.- See Also:
-
getButtonBarOrder
Returns the currently set button order for all containers that display grouped buttons, such asJOptionPanes, for example.- Returns:
- The currently set button order for all containers that display grouped buttons.
- See Also:
-
setButtonBarOrder
Sets the button order for all containers that display grouped buttons, such asJOptionPanes, for example. The default order isRadianceThemingSlices.ButtonOrder.PLATFORM.- Parameters:
buttonBarButtonOrder- The new button order for all containers that display grouped buttons. The value cannot benull.- See Also:
-
getButtonBarGravity
Returns the currently set button bar gravity for all containers that display grouped buttons, such asJOptionPanes, for example.- Returns:
- The currently set button bar gravity for all containers that display grouped buttons.
- See Also:
-
setButtonBarGravity
Sets the button bar gravity for all containers that display grouped buttons, such asJOptionPanes, for example. The default gravity isRadianceThemingSlices.HorizontalGravity.PLATFORM.- Parameters:
buttonBarGravity- The new button alignment for all containers that display grouped buttons. The value cannot benull.- See Also:
-
configureTitleContentGravity
public static void configureTitleContentGravity(RadianceThemingSlices.HorizontalGravity titleTextHorizontalGravity, RadianceThemingSlices.HorizontalGravity titleControlButtonGroupHorizontalGravity, RadianceThemingSlices.TitleIconHorizontalGravity titleIconHorizontalGravity) Configures title pane content gravity for all decorated application windows. This will only apply if you are usingJFrame.setDefaultLookAndFeelDecorated(boolean)and / orJDialog.setDefaultLookAndFeelDecorated(boolean)APIs withtrue. The default gravities areRadianceThemingSlices.HorizontalGravity.SWING_DEFAULTandRadianceThemingSlices.TitleIconHorizontalGravity.SWING_DEFAULT. Note that specific windows can have the horizontal gravity of control button group set to a different value withRadianceThemingCortex.WindowScope.extendContentIntoTitlePane(Window, RadianceThemingSlices.HorizontalGravity, RadianceThemingSlices.VerticalGravity)API.- Parameters:
titleTextHorizontalGravity- Horizontal gravity for the title text. The value cannot benull.titleControlButtonGroupHorizontalGravity- Horizontal gravity for the control button group. The value cannot benullorRadianceThemingSlices.HorizontalGravity.CENTERED.titleIconHorizontalGravity- Horizontal gravity for the icon. The value cannot benull.- See Also:
-
getTitleTextHorizontalGravity
Returns the gravity for the title text in title panes of all decorated application windows.- Returns:
- HorizontalGravity for the title text in title panes of all decorated application windows.
- See Also:
-
getTitleIconHorizontalGravity
Returns the gravity for the icon in title panes of all decorated application windows.- Returns:
- Horizontal gravity for the icon in title panes of all decorated application windows.
- See Also:
-
setWidgetVisible
public static void setWidgetVisible(boolean visible, RadianceThemingSlices.WidgetType... radianceWidgets) Sets the visibility of the specified widget kind(s). This call applies to all root panes. This method should not be called from inside the initialization sequence of your window. If the specific widget needs to be visible when the window is shown, wrap the call withSwingUtilities.invokeLater(Runnable).- Parameters:
visible- Visibility indication.radianceWidgets- Widget types.
-
setLockIconVisible
Specifies global visibility of the lock icon on non-editable text components.- Parameters:
visible- Iftrue, all non-editable text components not explicitly configured withRadianceThemingCortex.ComponentScope.setLockIconVisible(JComponent, Boolean)will show a lock icon. Passnullto reset to the default behavior.- See Also:
-
setCapsLockIconVisible
Specifies global visibility of the caps lock icon on password fields. Note that this functionality may not be supported on all platforms. SeeToolkit.getLockingKeyState(int)documentation for more.- Parameters:
visible- Iftrue, all password fields not explicitly configured withRadianceThemingCortex.ComponentScope.setCapsLockIconVisible(JPasswordField, Boolean)will show an indicator icon when they are focused and caps lock is on. Passnullto reset to the default behavior.- See Also:
-
setComponentPreviewPainter
Specifies global preview painter to be used for showing preview thumbnails. Default implementation is available in theDefaultPreviewPainter.- Parameters:
previewPainter- Global preview painter. Can benull.- See Also:
-
setSelectTextOnFocus
Specifies whether the contents of text components should be selected on focus gain.- Parameters:
selectTextOnFocus- Iftrue, the contents of text components will be selected on focus gain. Passnullto reset to the default behavior.- See Also:
-
setTextEditContextMenuPresence
Specifies whether text components should have the edit context menu (with Cut / Copy / Paste / ... menu items)- Parameters:
hasEditContextMenu- Iftrue, text components will have the edit context menu (with Cut / Copy / Paste / ... menu items). Passnullto reset to the default behavior.- See Also:
-
setAutomaticDragAndDropSupportPresence
Specifies whether trees should have should have automatic drag and drop support.- Parameters:
hasAutomaticDragAndDropSupport- Iftrue, trees will have automatic drag and drop support. Passnullto reset to the default behavior.- See Also:
-
setAutomaticScrollPresence
Specifies whether scroll panes should have auto-scroll support invoked on mouse button click that triggers popups.- Parameters:
hasAutomaticScroll- Iftrue, scroll panes will have auto-scroll support invoked on mouse button click that triggers popups. Passnullto reset to the default behavior.- See Also:
-
setButtonIgnoreMinimumSize
Specifies whether buttons should ignore the default (minimum) dimension. Note thatRadianceButtonShaperimplementations are not required to respect this call. The current implementations of the defaultPillButtonShaperandClassicButtonShaperrespect this setting.- Parameters:
buttonIgnoreMinimumSize- Iftrue, buttons will ignore the default (minimum) size under button shapers that respect this setting. Passnullto reset to the default behavior.- See Also:
-
setBackgroundAppearanceStrategy
public static void setBackgroundAppearanceStrategy(RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) Specifies when components should draw their background.- Parameters:
backgroundAppearanceStrategy- Background appearance strategy. Passnullto reset to the default behavior (toALWAYS)- See Also:
-
setToolbarButtonCornerRadius
public static void setToolbarButtonCornerRadius(float toolbarButtonCornerRadius) Specifies corner radius for all toolbar buttons.- Parameters:
toolbarButtonCornerRadius- Corner radius for all toolbar buttons.- See Also:
-
setExtraWidgetsPresence
Specifies that extra UI elements (such as menu items in system menu or lock borders) can be shown.- Parameters:
extraWidgetsPresence- Iftrue, extra UI elements (such as menu items in system menu or lock borders) can be shown. Passnullto reset to the default behavior.- See Also:
-
setColorizationFactor
public static void setColorizationFactor(double colorizationFactor) Specifies colorization amount applied to the background and foreground of the current color tokens and all control. By default, when the application does not use any custom colors, all the controls are painted with the colors of the current color tokens / skin. The colors coming from the look-and-feel implement the marker
UIResourceinterface which allows the UI delegates to differentiate between application-specific colors which are not changed, and the LAF-provide colors that are changed on LAF switch.Calling this method installs the "smart colorization" mode which uses the colors of the current color tokens and the custom background / foreground colors (when installed by application) to colorize the relevant portions of the control. For example, on checkbox the custom background color will be used to colorize the check box itself, while the custom foreground color will be applied to the check box text and the check mark.
Value of 0.0 of colorization amount results in Radiance completely ignoring the custom application background and foreground colors set on the components - no colorization. Values closer to 1.0 result in almost full usage of the custom application background and foreground colors set on the components. Note that in order to maintain the gradients (fill, border, etc), even value of 1.0 does not result in full custom color being applied to the relevant visuals of the control.
Calling this method applies colorization amount to all components that do not specify a custom value with
RadianceThemingCortex.ComponentOrParentChainScope.setColorizationFactor(JComponent, double)calls.The default colorization amount (when this method is not called at all) is 0.5. This means that applications that install custom background / foreground colors on their UI controls will see them colorized with 50% "strength", even without calling this method.
- Parameters:
colorizationFactor- Colorization factor to apply to the component and its nested children.- See Also:
-
setTabCloseButtonsVisible
Configures visibility of close buttons on tabbed pane tabs.- Parameters:
tabCloseButtonsVisible- Iftrue, tabs in tabbed panes will show close buttons.- See Also:
-
setTabCloseCallback
Configures the callback for deciding on the tab close type on tabbed pane tabs. Note that this is only relevant for tabs configured withRadianceThemingCortex.ComponentScope.setTabCloseButtonVisible(JComponent, Boolean),RadianceThemingCortex.ComponentScope.setTabCloseButtonsVisible(JTabbedPane, Boolean)andsetTabCloseButtonsVisible(Boolean)APIs.- Parameters:
tabCloseCallback- Callback for deciding on the tab close type on tabbed pane tabs.- See Also:
-
setRunModifiedAnimationOnTabCloseButton
public static void setRunModifiedAnimationOnTabCloseButton(Boolean runModifiedAnimationOnTabCloseButton) Specifies that only the close button of a marked-as-modified tab component should pulsate. By default, the animation on modified tabs is on the entire tab rectangle. Note that this is only relevant for tabs configured withRadianceThemingCortex.ComponentScope.setTabContentsModified(JComponent, Boolean)- Parameters:
runModifiedAnimationOnTabCloseButton- Iftrue, the marked-as-modified animation will run only on the tab close button.- See Also:
-
setTabContentPaneBorderKind
public static void setTabContentPaneBorderKind(RadianceThemingSlices.TabContentPaneBorderKind tabContentPaneBorderKind) Specifies the content pane border kind for tabbed panes.- Parameters:
tabContentPaneBorderKind- Content pane border kind for tabbed panes.- See Also:
-
setNumberOfPasswordEchoesPerCharacter
public static void setNumberOfPasswordEchoesPerCharacter(int echoCount) Specifies the number of echo characters for each password character in password fields.- Parameters:
echoCount- Number of echo characters for each password character in password fields.- See Also:
-
setMenuGutterFillAlpha
public static void setMenuGutterFillAlpha(float menuGutterFillAlpha) Specifies the menu gutter fill alpha. Menu gutter is the part of the menu where checkmarks and icons are painted. The current / default menu gutter fill alpha can be obtained by callinggetMenuGutterFillAlpha().- Parameters:
menuGutterFillAlpha- Menu gutter fill alpha.- See Also:
-
getMenuGutterFillAlpha
public static float getMenuGutterFillAlpha()Returns the menu gutter fill alpha. Menu gutter is the part of the menu where checkmarks and icons are painted.- Returns:
- Menu gutter fill alpha.
- See Also:
-
setTraceFilename
Specifies the trace filename. The trace file will contain output of the memory analyser which can be used to pinpoint the memory leaks.- Parameters:
traceFilename- Filename for tracing the memory allocations.
-
setFocusKind
Specifies the kind of focus indication to be used on application components.- Parameters:
focusKind- Kind of focus indication to be used on application components.- See Also:
-
setComboBoxPrototypeCallback
public static void setComboBoxPrototypeCallback(ComboPopupPrototypeCallback comboPopupPrototypeCallback) Specifies the combobox popup prototype callback which is used to compute the width of the popups at runtime.- Parameters:
comboPopupPrototypeCallback- Popup prototype callback which is used to compute the width of the popups at runtime.- See Also:
-
setComboBoxPrototypeDisplayValue
Specifies the combobox popup prototype display value which is used to compute the width of the popups at runtime.- Parameters:
comboPopupPrototypeDisplayValue- Popup prototype display value which is used to compute the width of the popups at runtime.- See Also:
-
setComboBoxPopupPlacementStrategy
public static void setComboBoxPopupPlacementStrategy(RadianceThemingSlices.PopupPlacementStrategy comboBoxPopupPlacementStrategy) Specifies the combobox popup placement strategy. Passnullto reset to the default placement strategy. Note that the combo arrow changes in accordance with the combo popup placement strategy.- Parameters:
comboBoxPopupPlacementStrategy- Placement strategy for combobox popups.- See Also:
-
getBlankImage
-
setUseDefaultColorChooser
public static void setUseDefaultColorChooser()
-