Class RadianceThemingCortex.GlobalScope
- Enclosing class:
RadianceThemingCortex
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static RadianceThemingSlices.ButtonOrder
private static RadianceThemingSlices.HorizontalGravity
private static RadianceSkin
The current Radiance skin.private static RadianceIconPack
private static ResourceBundle
Resource bundle for Radiance labels.private static ClassLoader
Class loader forlabelBundle
.private static final Set
<RadianceThemingSlices.LocaleChangeListener> List of all listeners on changing locales.private static final String
private static final Set
<SkinChangeListener> List of all listeners on skin changes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
allowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet) Allows animations of the specified facet on all controls.static void
allowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet, Class<?> clazz) Allows animations of the specified facet on all controls of specified class.static void
allowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet, Class<?>[] clazz) Allows animations of the specified facet on all controls of specified classes.static void
configureTitleContentGravity
(RadianceThemingSlices.HorizontalGravity titleTextHorizontalGravity, RadianceThemingSlices.HorizontalGravity titleControlButtonGroupHorizontalGravity, RadianceThemingSlices.TitleIconHorizontalGravity titleIconHorizontalGravity) Configures title pane content gravity for all decorated application windows.static void
disallowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet) Disallows animations of the specified facet on all controls.static void
disallowAnimations
(RadianceThemingSlices.AnimationFacet animationFacet, Class<?> clazz) Disallows animations of the specified facet on all controls of specified class.static void
disallowAnimations
(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 BufferedImage
getBlankImage
(double scaleFactor, int width, int height) Returns the currently set button bar gravity for all containers that display grouped buttons, such asJOptionPane
s, for example.Returns the currently set button order for all containers that display grouped buttons, such asJOptionPane
s, for example.static RadianceSkin
Returns the current global skin.static FontPolicy
Looks up and retrieves theFontPolicy
used by the Radiance family.static RadianceIconPack
Looks up and retrieves theRadianceIconPack
used by Radiance.static ResourceBundle
Retrieves the current label bundle.static ResourceBundle
getLabelBundle
(Locale locale) Retrieves the label bundle for the specified locale.static ClassLoader
Returns all listeners registered on locale change.static float
Returns the menu gutter fill alpha.static long
Returns 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 void
initFontDefaults
(UIDefaults table) Looks up the correct control font and sets it for all controls.private static void
initFontDefaults
(UIDefaults table, FontSet fontSet) Sets Fonts in the given FontSet as defaults for all known component types in the given UIDefaults table.static boolean
isAnimationAllowed
(RadianceThemingSlices.AnimationFacet animationFacet) Checks whether the specified animation facet is allowed on the specified component.static void
registerComponentPlugin
(RadianceThemingComponentPlugin componentPlugin) Registers the specified component plugin.static void
Registers a new listener on locale change.static void
registerSkinChangeListener
(SkinChangeListener skinChangeListener) Registers a new listener on skin change.static void
registerSkinPlugin
(RadianceThemingSkinPlugin skinPlugin) Registers the specified skin plugin.static void
registerTabCloseChangeListener
(BaseTabCloseListener tabCloseListener) Registers the specified listener on tab-close events on all tabbed panes.static void
registerWidget
(String widgetClassName, Class<?> supportedClass, boolean isExact) static void
Resets the current label bundle.static void
setAutomaticDragAndDropSupportPresence
(Boolean hasAutomaticDragAndDropSupport) Specifies whether trees should have should have automatic drag and drop support.static void
setAutomaticScrollPresence
(Boolean hasAutomaticScroll) Specifies whether scroll panes should have have auto-scroll support invoked on mouse button click that triggers popups.static void
setBackgroundAppearanceStrategy
(RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) Specifies when components should draw their background.static void
setButtonBarGravity
(RadianceThemingSlices.HorizontalGravity buttonBarGravity) Sets the button bar gravity for all containers that display grouped buttons, such asJOptionPane
s, for example.static void
setButtonBarOrder
(RadianceThemingSlices.ButtonOrder buttonBarButtonOrder) Sets the button order for all containers that display grouped buttons, such asJOptionPane
s, for example.static void
setButtonIgnoreMinimumSize
(Boolean buttonIgnoreMinimumSize) Specifies whether buttons should ignore the default (minimum) dimension.static void
setCapsLockIconVisible
(Boolean visible) Specifies global visibility of the caps lock icon on password fields.static void
setColorizationFactor
(double colorizationFactor) Specifies colorization amount applied to the background and foreground of the current color scheme and all control.static void
setComboBoxPopupPlacementStrategy
(RadianceThemingSlices.PopupPlacementStrategy comboBoxPopupPlacementStrategy) Specifies the combobox popup placement strategy.static void
setComboBoxPrototypeCallback
(ComboPopupPrototypeCallback comboPopupPrototypeCallback) Specifies the combobox popup prototype callback which is used to compute the width of the popups at runtime.static void
setComboBoxPrototypeDisplayValue
(Object comboPopupPrototypeDisplayValue) Specifies the combobox popup prototype display value which is used to compute the width of the popups at runtime.static void
setComponentPreviewPainter
(PreviewPainter previewPainter) Specifies global preview painter to be used for showing preview thumbnails.static void
setExtraWidgetsPresence
(Boolean extraWidgetsPresence) Specifies that extra UI elements (such as menu items in system menu or lock borders) can be shown.static void
setFocusKind
(RadianceThemingSlices.FocusKind focusKind) Specifies the kind of focus indication to be used on application components.static void
setFontPolicy
(FontPolicy fontPolicy) Sets theFontPolicy
to be used with Radiance family.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.static void
setIconPack
(RadianceIconPack iconPack) Sets theRadianceIconPack
to be used with Radiance.static void
setLabelBundleClassLoader
(ClassLoader labelBundleClassLoader) Sets the class loader forlabelBundle
.static void
setLockIconVisible
(Boolean visible) Specifies global visibility of the lock icon on non-editable text components.static void
setMenuGutterFillAlpha
(float menuGutterFillAlpha) Specifies the menu gutter fill alpha.static void
setNumberOfPasswordEchoesPerCharacter
(int echoCount) Specifies the number of echo characters for each password character in password fields.static void
setRunModifiedAnimationOnTabCloseButton
(Boolean runModifiedAnimationOnTabCloseButton) Specifies that only the close button of a marked-as-modified tab component should pulsate.static void
setSelectTextOnFocus
(Boolean selectTextOnFocus) Specifies whether the contents of text components should be selected on focus gain.static boolean
Sets the specified skin.static boolean
setSkin
(RadianceSkin newSkin) Sets the specified skin.(package private) static boolean
setSkin
(RadianceSkin newSkin, boolean toUpdateWindows) Sets the specified skin.static void
setTabCloseButtonsVisible
(Boolean tabCloseButtonsVisible) Configures visibility of close buttons on tabbed pane tabs.static void
setTabCloseCallback
(TabCloseCallback tabCloseCallback) Configures the callback for deciding on the tab close type on tabbed pane tabs.static void
setTabContentPaneBorderKind
(RadianceThemingSlices.TabContentPaneBorderKind tabContentPaneBorderKind) Specifies the content pane border kind for tabbed panes.static void
setTextEditContextMenuPresence
(Boolean hasEditContextMenu) Specifies whether text components should have the edit context menu (with Cut / Copy / Paste / ...static void
setTimelineDuration
(long timelineDuration) static void
setToolbarButtonCornerRadius
(float toolbarButtonCornerRadius) Specifies corner radius for all toolbar buttons.static void
setTraceFilename
(String traceFilename) Specifies the trace filename.static void
setUseConstantThemesOnOptionPanes
(Boolean useConstantThemesOnOptionPanes) Sets the new setting for the icons of theJOptionPane
s created with predefined message types.static void
static void
setWidgetVisible
(boolean visible, RadianceThemingSlices.WidgetType... radianceWidgets) Sets the visibility of the specified widget kind(s).static void
Unregisters a listener on locale change.static void
unregisterSkinChangeListener
(SkinChangeListener skinChangeListener) Unregisters a listener on skin change.static void
unregisterTabCloseChangeListener
(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:
true
if the specified skin has been set successfully,false
otherwise.- 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:
true
if the specified skin has been set successfully,false
otherwise.- 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:
true
if the specified skin has been set successfully,false
otherwise.- 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
Returns all available skins.- Returns:
- All available skins. Key - skin display name, value - skin information.
-
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 theFontPolicy
to 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
- TheFontPolicy
to be used with Radiance family, ornull
to reset to the default- See Also:
-
getFontPolicy
Looks up and retrieves theFontPolicy
used by the Radiance family. If aFontPolicy
has been set, it'll be returned. If noFontPolicy
has been set, the default Radiance font policy will be returned.- Returns:
- the
FontPolicy
set 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 theRadianceIconPack
to be used with Radiance.- Parameters:
iconPack
- TheRadianceIconPack
to be used with Radiance.- See Also:
-
getIconPack
Looks up and retrieves theRadianceIconPack
used by Radiance.- Returns:
- the
RadianceIconPack
set 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:
true
if the specified animation facet is allowed globally,false
otherwise.
-
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
-
setUseConstantThemesOnOptionPanes
Sets the new setting for the icons of theJOptionPane
s created with predefined message types. The default setting istrue
(use constant color scheme). To use color scheme-consistent coloring, call this method and passfalse
.- Parameters:
useConstantThemesOnOptionPanes
- iftrue
, theJOptionPane
s created with predefined message types will use constant color schemes for the icons.
-
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 asJOptionPane
s, 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 asJOptionPane
s, 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 asJOptionPane
s, 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 asJOptionPane
s, 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_DEFAULT
andRadianceThemingSlices.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 benull
orRadianceThemingSlices.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. Passnull
to 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. Passnull
to 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. Passnull
to 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). Passnull
to 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. Passnull
to reset to the default behavior.- See Also:
-
setAutomaticScrollPresence
Specifies whether scroll panes should have have auto-scroll support invoked on mouse button click that triggers popups.- Parameters:
hasAutomaticScroll
- Iftrue
, scroll panes will have have auto-scroll support invoked on mouse button click that triggers popups. Passnull
to reset to the default behavior.- See Also:
-
setButtonIgnoreMinimumSize
Specifies whether buttons should ignore the default (minimum) dimension. Note thatRadianceButtonShaper
implementations are not required to respect this call. The current implementations of the defaultPillButtonShaper
andClassicButtonShaper
respect this setting.- Parameters:
buttonIgnoreMinimumSize
- Iftrue
, buttons will ignore the default (minimum) size under button shapers that respect this setting. Passnull
to 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. Passnull
to 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. Passnull
to 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 scheme 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 scheme / skin. The colors coming from the look-and-feel implement the marker
UIResource
interface 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 scheme 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. Passnull
to 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()
-