public static final class SubstanceCortex.GlobalScope
extends java.lang.Object
| Constructor | Description |
|---|---|
GlobalScope() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
allowAnimations(SubstanceSlices.AnimationFacet animationFacet) |
Allows animations of the specified facet on all controls.
|
static void |
allowAnimations(SubstanceSlices.AnimationFacet animationFacet,
java.lang.Class<?> clazz) |
Allows animations of the specified facet on all controls of specified class.
|
static void |
allowAnimations(SubstanceSlices.AnimationFacet animationFacet,
java.lang.Class<?>[] clazz) |
Allows animations of the specified facet on all controls of specified classes.
|
static org.pushingpixels.neon.api.icon.ResizableIcon |
colorizeIcon(org.pushingpixels.neon.api.icon.ResizableIcon.Factory sourceFactory,
SubstanceColorScheme colorScheme,
float brightnessFactor) |
Returns the colorized version of icon based off of the passed icon factory.
|
static org.pushingpixels.neon.api.icon.ResizableIconUIResource |
colorizeIconAsUiResource(org.pushingpixels.neon.api.icon.ResizableIcon.Factory sourceFactory,
SubstanceColorScheme colorScheme) |
Returns the colorized version of icon based off of the passed icon factory.
|
static org.pushingpixels.neon.api.icon.ResizableIconUIResource |
colorizeIconAsUiResource(org.pushingpixels.neon.api.icon.ResizableIcon.Factory sourceFactory,
SubstanceColorScheme colorScheme,
float brightnessFactor) |
Returns the colorized version of icon based off of the passed icon factory.
|
static void |
configureTitleContentGravity(SubstanceSlices.HorizontalGravity titleTextHorizontalGravity,
SubstanceSlices.HorizontalGravity titleControlButtonGroupHorizontalGravity,
SubstanceSlices.TitleIconHorizontalGravity titleIconHorizontalGravity) |
Configures title pane content gravity for all decorated application windows.
|
static void |
disallowAnimations(SubstanceSlices.AnimationFacet animationFacet) |
Disallows animations of the specified facet on all controls.
|
static void |
disallowAnimations(SubstanceSlices.AnimationFacet animationFacet,
java.lang.Class<?> clazz) |
Disallows animations of the specified facet on all controls of specified class.
|
static void |
disallowAnimations(SubstanceSlices.AnimationFacet animationFacet,
java.lang.Class<?>[] clazz) |
Disallows animations of the specified facet on all controls of specified classes.
|
static java.util.Map<java.lang.String,SkinInfo> |
getAllSkins() |
Returns all available skins.
|
static java.util.Set<BaseTabCloseListener> |
getAllTabCloseListeners() |
Returns the set of all listeners registered on tab-close events on all tabbed
panes.
|
static java.awt.image.BufferedImage |
getBlankImage(int width,
int height) |
|
static SubstanceSlices.HorizontalGravity |
getButtonBarGravity() |
Returns the currently set button bar gravity for all containers that display grouped
buttons, such as
JOptionPanes, for example. |
static SubstanceSlices.ButtonOrder |
getButtonBarOrder() |
Returns the currently set button order for all containers that display grouped buttons,
such as
JOptionPanes, for example. |
static SubstanceSkin |
getCurrentSkin() |
Returns the current global skin.
|
static org.pushingpixels.neon.api.font.FontPolicy |
getFontPolicy() |
Looks up and retrieves the
FontPolicy used by the Substance family. |
static SubstanceIconPack |
getIconPack() |
Looks up and retrieves the
SubstanceIconPack used by Substance. |
static java.util.ResourceBundle |
getLabelBundle() |
Retrieves the current label bundle.
|
static java.util.ResourceBundle |
getLabelBundle(java.util.Locale locale) |
Retrieves the label bundle for the specified locale.
|
static java.lang.ClassLoader |
getLabelBundleClassLoader() |
|
static java.util.Set<SubstanceSlices.LocaleChangeListener> |
getLocaleChangeListeners() |
Returns all listeners registered on locale change.
|
static long |
getTimelineDuration() |
|
static SubstanceSlices.TitleIconHorizontalGravity |
getTitleIconHorizontalGravity() |
Returns the gravity for the icon in title panes of all decorated application windows.
|
static SubstanceSlices.HorizontalGravity |
getTitleTextHorizontalGravity() |
Returns the gravity for the title text in title panes of all decorated application
windows.
|
static boolean |
isAnimationAllowed(SubstanceSlices.AnimationFacet animationFacet) |
Checks whether the specified animation facet is allowed on the specified component.
|
static void |
registerComponentPlugin(SubstanceComponentPlugin componentPlugin) |
Registers the specified component plugin.
|
static void |
registerLocaleChangeListener(SubstanceSlices.LocaleChangeListener localeListener) |
Registers a new listener on locale change.
|
static void |
registerSkinChangeListener(SkinChangeListener skinChangeListener) |
Registers a new listener on skin change.
|
static void |
registerSkinPlugin(SubstanceSkinPlugin 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(java.lang.String widgetClassName,
java.lang.Class<?> supportedClass,
boolean isExact) |
|
static void |
resetLabelBundle() |
Resets the current label bundle.
|
static void |
setAutomaticDragAndDropSupportPresence(java.lang.Boolean hasAutomaticDragAndDropSupport) |
Specifies whether trees should have should have automatic drag and drop support.
|
static void |
setAutomaticScrollPresence(java.lang.Boolean hasAutomaticScroll) |
Specifies whether scroll panes should have have auto-scroll support invoked on mouse
button click that triggers popups.
|
static void |
setButtonBarGravity(SubstanceSlices.HorizontalGravity buttonBarGravity) |
Sets the button bar gravity for all containers that display grouped buttons, such as
JOptionPanes, for example. |
static void |
setButtonBarOrder(SubstanceSlices.ButtonOrder buttonBarButtonOrder) |
Sets the button order for all containers that display grouped buttons, such as
JOptionPanes, for example. |
static void |
setButtonIgnoreMinimumSize(java.lang.Boolean buttonIgnoreMinimumSize) |
Specifies whether buttons should ignore the default (minimum) dimension.
|
static void |
setButtonNeverPaintBackground(java.lang.Boolean neverPaintButtonBackground) |
Specifies whether buttons should never paint backgrounds.
|
static void |
setCapsLockIconVisible(java.lang.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 |
setComboBoxPopupFlyoutOrientation(int comboPopupFlyoutOrientation) |
Specifies the combobox popup flyout orientation.
|
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(java.lang.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(java.lang.Boolean extraWidgetsPresence) |
Specifies that extra UI elements (such as menu items in system menu or lock borders)
should be shown.
|
static void |
setFlatBackground(java.lang.Boolean flatBackground) |
Specifies whether components should not paint backgrounds unless selected, armed, pressed
or (possibly) hovered over.
|
static void |
setFocusKind(SubstanceSlices.FocusKind focusKind) |
Specifies the kind of focus indication to be used on application components.
|
static void |
setFontPolicy(org.pushingpixels.neon.api.font.FontPolicy fontPolicy) |
Sets the
FontPolicy to be used with Substance family. |
static void |
setIconPack(SubstanceIconPack iconPack) |
Sets the
SubstanceIconPack to be used with Substance. |
static void |
setLabelBundleClassLoader(java.lang.ClassLoader labelBundleClassLoader) |
Sets the class loader for
labelBundle. |
static void |
setLockIconVisible(java.lang.Boolean visible) |
Specifies global visibility of the lock icon on non-editable text components.
|
static void |
setMenuGutterFillKind(SubstanceSlices.MenuGutterFillKind menuGutterFillKind) |
Specifies the menu gutter fill kind.
|
static void |
setNumberOfPasswordEchoesPerCharacter(int echoCount) |
Specifies the number of echo characters for each password character in password fields.
|
static void |
setRunModifiedAnimationOnTabCloseButton(java.lang.Boolean runModifiedAnimationOnTabCloseButton) |
Specifies that only the close button of a marked-as-modified tab component should
pulsate.
|
static void |
setSelectTextOnFocus(java.lang.Boolean selectTextOnFocus) |
Specifies whether the contents of text components should be selected on focus gain.
|
static boolean |
setSkin(java.lang.String skinClassName) |
Sets the specified skin.
|
static boolean |
setSkin(SubstanceSkin newSkin) |
Sets the specified skin.
|
static void |
setTabCloseButtonsVisible(java.lang.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(SubstanceSlices.TabContentPaneBorderKind tabContentPaneBorderKind) |
Specifies the content pane border kind for tabbed panes.
|
static void |
setTextEditContextMenuPresence(java.lang.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(java.lang.String traceFilename) |
Specifies the trace filename.
|
static void |
setUseConstantThemesOnOptionPanes(java.lang.Boolean useConstantThemesOnOptionPanes) |
Sets the new setting for the icons of the
JOptionPanes created with
predefined message types. |
static void |
setUseDefaultColorChooser() |
|
static void |
setUseThemedDefaultIcons(java.lang.Boolean useThemedDefaultIcons) |
Specifies that icons on controls such as buttons, toggle buttons, labels, tabs and menu
items should match the color of the current color scheme when they are in default state.
|
static void |
setWidgetVisible(boolean visible,
SubstanceSlices.SubstanceWidgetType... substanceWidgets) |
Sets the visibility of the specified widget kind(s).
|
static void |
unregisterLocaleChangeListener(SubstanceSlices.LocaleChangeListener localeListener) |
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.
|
public static boolean setSkin(SubstanceSkin newSkin)
UIManager. This method does not require Substance to be the current
look-and-feel. Calling this method will call
SwingUtilities.updateComponentTreeUI(Component) on all open top-level windows.newSkin - Skin to set.true if the specified skin has been set successfully,
false otherwise.java.lang.IllegalStateException - When called outside the Event Dispatch Thread.registerSkinChangeListener(SkinChangeListener),
unregisterSkinChangeListener(SkinChangeListener),
setSkin(String),
SubstanceCortex.RootPaneScope.setSkin(JRootPane, SubstanceSkin),
SubstanceSkin.isValid()public static boolean setSkin(java.lang.String skinClassName)
UIManager. This method does not require Substance to be the current
look-and-feel. Calling this method will call
SwingUtilities.updateComponentTreeUI(Component) on all open top-level windows.skinClassName - Skin to set.true if the specified skin has been set successfully,
false otherwise.java.lang.IllegalStateException - When called outside the Event Dispatch Thread.setSkin(SubstanceSkin),
registerSkinChangeListener(SkinChangeListener),
unregisterSkinChangeListener(SkinChangeListener),
setSkin(SubstanceSkin),
SubstanceCortex.RootPaneScope.setSkin(JRootPane, SubstanceSkin),
SubstanceSkin.isValid()public static SubstanceSkin getCurrentSkin()
null.public static void registerSkinChangeListener(SkinChangeListener skinChangeListener)
skinChangeListener - New listener on skin change.setSkin(String),
setSkin(SubstanceSkin),
unregisterSkinChangeListener(SkinChangeListener)public static void unregisterSkinChangeListener(SkinChangeListener skinChangeListener)
skinChangeListener - The listener to unregister.setSkin(String),
setSkin(SubstanceSkin),
registerSkinChangeListener(SkinChangeListener)public static java.util.Map<java.lang.String,SkinInfo> getAllSkins()
public static void registerComponentPlugin(SubstanceComponentPlugin componentPlugin)
setSkin(String) or setSkin(SubstanceSkin) APIs to reinitialize the
Substance skin.componentPlugin - Component plugin to register.public static void registerSkinPlugin(SubstanceSkinPlugin skinPlugin)
skinPlugin - Skin plugin to register.public static void registerWidget(java.lang.String widgetClassName,
java.lang.Class<?> supportedClass,
boolean isExact)
public static void setFontPolicy(org.pushingpixels.neon.api.font.FontPolicy fontPolicy)
FontPolicy to be used with Substance family. If the specified policy is
null, the default will be reset. This method does not require Substance to
be the current look-and-feel, and will cause Substance to be set as the current
application look-and-feel.fontPolicy - The FontPolicy to be used with Substance family, or
null to reset to the defaultgetFontPolicy()public static org.pushingpixels.neon.api.font.FontPolicy getFontPolicy()
FontPolicy used by the Substance family. If a
FontPolicy has been set, it'll be returned. If no FontPolicy has been
set, the default Substance font policy will be returned.FontPolicy set for Substance, or the default Substance font policy.setFontPolicy(org.pushingpixels.neon.api.font.FontPolicy)public static void registerTabCloseChangeListener(BaseTabCloseListener tabCloseListener)
tabCloseListener - Listener to register.SubstanceCortex.ComponentScope.registerTabCloseChangeListener(JTabbedPane, BaseTabCloseListener),
unregisterTabCloseChangeListener(BaseTabCloseListener),
getAllTabCloseListeners()public static void unregisterTabCloseChangeListener(BaseTabCloseListener tabCloseListener)
tabCloseListener - Listener to unregister.SubstanceCortex.ComponentScope.unregisterTabCloseChangeListener(JTabbedPane, BaseTabCloseListener),
registerTabCloseChangeListener(BaseTabCloseListener),
getAllTabCloseListeners()public static java.util.Set<BaseTabCloseListener> getAllTabCloseListeners()
registerTabCloseChangeListener(BaseTabCloseListener),
unregisterTabCloseChangeListener(BaseTabCloseListener)public static void setIconPack(SubstanceIconPack iconPack)
SubstanceIconPack to be used with Substance.iconPack - The SubstanceIconPack to be used with Substance.getIconPack()public static SubstanceIconPack getIconPack()
SubstanceIconPack used by Substance.SubstanceIconPack set for Substance.setIconPack(SubstanceIconPack)public static void allowAnimations(SubstanceSlices.AnimationFacet animationFacet)
animationFacet - Animation facet to allow.public static void allowAnimations(SubstanceSlices.AnimationFacet animationFacet, java.lang.Class<?> clazz)
animationFacet - Animation facet to allow.clazz - Control class for allowing the animation facet.public static void allowAnimations(SubstanceSlices.AnimationFacet animationFacet, java.lang.Class<?>[] clazz)
animationFacet - Animation facet to allow.clazz - Control classes for allowing the animation facet.public static void disallowAnimations(SubstanceSlices.AnimationFacet animationFacet)
animationFacet - Animation facet to disallow.public static void disallowAnimations(SubstanceSlices.AnimationFacet animationFacet, java.lang.Class<?> clazz)
animationFacet - Animation facet to disallow.clazz - Control class for disallowing the animation facet.public static void disallowAnimations(SubstanceSlices.AnimationFacet animationFacet, java.lang.Class<?>[] clazz)
animationFacet - Animation facet to disallow.clazz - Control classes for disallowing the animation facet.public static boolean isAnimationAllowed(SubstanceSlices.AnimationFacet animationFacet)
animationFacet - Animation facet.true if the specified animation facet is allowed globally,
false otherwise.public static void setTimelineDuration(long timelineDuration)
public static long getTimelineDuration()
public static void registerLocaleChangeListener(SubstanceSlices.LocaleChangeListener localeListener)
localeListener - New listener on locale change.public static void unregisterLocaleChangeListener(SubstanceSlices.LocaleChangeListener localeListener)
localeListener - The listener to unregister.public static java.util.Set<SubstanceSlices.LocaleChangeListener> getLocaleChangeListeners()
public static java.util.ResourceBundle getLabelBundle()
resetLabelBundle()public static java.util.ResourceBundle getLabelBundle(java.util.Locale locale)
locale - Locale.public static void resetLabelBundle()
getLabelBundle()public static void setLabelBundleClassLoader(java.lang.ClassLoader labelBundleClassLoader)
labelBundle.labelBundleClassLoader - Class loader for labelBundle.public static java.lang.ClassLoader getLabelBundleClassLoader()
public static void setUseConstantThemesOnOptionPanes(java.lang.Boolean useConstantThemesOnOptionPanes)
JOptionPanes created with
predefined message types. The default setting is true (use constant color
scheme). To use color scheme-consistent coloring, call this method and pass
false.useConstantThemesOnOptionPanes - if true, the
JOptionPanes created with predefined
message types will use constant color schemes
for the icons.public static void setUseThemedDefaultIcons(java.lang.Boolean useThemedDefaultIcons)
useThemedDefaultIcons - if true, icons on controls such as buttons,
toggle buttons,
labels, tabs and menu items will match the color of the
current color scheme
when they are in default state.public static SubstanceSlices.ButtonOrder getButtonBarOrder()
JOptionPanes, for example.setButtonBarOrder(SubstanceSlices.ButtonOrder)public static void setButtonBarOrder(SubstanceSlices.ButtonOrder buttonBarButtonOrder)
JOptionPanes, for example. The default order is
SubstanceSlices.ButtonOrder.PLATFORM.buttonBarButtonOrder - The new button order for all containers that display
grouped buttons. The
value cannot be null.getButtonBarOrder()public static SubstanceSlices.HorizontalGravity getButtonBarGravity()
JOptionPanes, for example.setButtonBarGravity(SubstanceSlices.HorizontalGravity)public static void setButtonBarGravity(SubstanceSlices.HorizontalGravity buttonBarGravity)
JOptionPanes, for example. The default gravity is
SubstanceSlices.HorizontalGravity.PLATFORM.buttonBarGravity - The new button alignment for all containers that display
grouped buttons. The
value cannot be null.getButtonBarGravity()public static void configureTitleContentGravity(SubstanceSlices.HorizontalGravity titleTextHorizontalGravity, SubstanceSlices.HorizontalGravity titleControlButtonGroupHorizontalGravity, SubstanceSlices.TitleIconHorizontalGravity titleIconHorizontalGravity)
JFrame.setDefaultLookAndFeelDecorated(boolean) and /
or JDialog.setDefaultLookAndFeelDecorated(boolean) APIs with true.
The default gravities are SubstanceSlices.HorizontalGravity.SWING_DEFAULT and
SubstanceSlices.TitleIconHorizontalGravity.SWING_DEFAULT. Note that specific
windows can have the horizontal gravity of control button group set to a different value
with
SubstanceCortex.WindowScope.extendContentIntoTitlePane(Window, org.pushingpixels.substance.api.SubstanceSlices.HorizontalGravity, org.pushingpixels.substance.api.SubstanceSlices.VerticalGravity)
API.titleTextHorizontalGravity - Horizontal gravity for the title text.
The value cannot be null.titleControlButtonGroupHorizontalGravity - Horizontal gravity for the control
button group. The value cannot be
null or
SubstanceSlices.HorizontalGravity.CENTERED.titleIconHorizontalGravity - Horizontal gravity for the icon. The
value cannot be null.SubstanceCortex.WindowScope.extendContentIntoTitlePane(Window,
org.pushingpixels.substance.api.SubstanceSlices.HorizontalGravity,
org.pushingpixels.substance.api.SubstanceSlices.VerticalGravity),
getTitleTextHorizontalGravity(),
SubstanceCortex.WindowScope.getTitleControlButtonGroupHorizontalGravity(Window),
getTitleIconHorizontalGravity(),
JFrame.setDefaultLookAndFeelDecorated(boolean),
JDialog.setDefaultLookAndFeelDecorated(boolean)public static SubstanceSlices.HorizontalGravity getTitleTextHorizontalGravity()
configureTitleContentGravity(SubstanceSlices.HorizontalGravity, SubstanceSlices.HorizontalGravity,
SubstanceSlices.TitleIconHorizontalGravity),
SubstanceCortex.WindowScope.getTitleControlButtonGroupHorizontalGravity(Window),
getTitleIconHorizontalGravity()public static SubstanceSlices.TitleIconHorizontalGravity getTitleIconHorizontalGravity()
configureTitleContentGravity(SubstanceSlices.HorizontalGravity, SubstanceSlices.HorizontalGravity,
SubstanceSlices.TitleIconHorizontalGravity),
SubstanceCortex.WindowScope.getTitleControlButtonGroupHorizontalGravity(Window),
getTitleIconHorizontalGravity()public static void setWidgetVisible(boolean visible,
SubstanceSlices.SubstanceWidgetType... substanceWidgets)
SwingUtilities.invokeLater(Runnable).visible - Visibility indication.substanceWidgets - Widget types.public static void setLockIconVisible(java.lang.Boolean visible)
visible - If true, all non-editable text components not explicitly
configured with
SubstanceCortex.ComponentScope.setLockIconVisible(JComponent, Boolean)
will show a lock icon. Pass null to reset to the default
behavior.SubstanceCortex.ComponentScope.setLockIconVisible(JComponent, Boolean),
setExtraWidgetsPresence(Boolean),
SubstanceCortex.ComponentOrParentChainScope.setExtraWidgetsPresence(JComponent, Boolean)public static void setCapsLockIconVisible(java.lang.Boolean visible)
Toolkit.getLockingKeyState(int) documentation for more.visible - If true, all password fields not explicitly
configured with
SubstanceCortex.ComponentScope.setCapsLockIconVisible(JPasswordField, Boolean) will show an indicator
icon when they are focused and caps lock is on. Pass null to reset to the
default behavior.SubstanceCortex.ComponentScope.setCapsLockIconVisible(JPasswordField, Boolean),
setExtraWidgetsPresence(Boolean),
SubstanceCortex.ComponentOrParentChainScope.setExtraWidgetsPresence(JComponent, Boolean)public static void setComponentPreviewPainter(PreviewPainter previewPainter)
DefaultPreviewPainter.previewPainter - Global preview painter. Can be null.SubstanceCortex.ComponentOrParentScope.setComponentPreviewPainter(JComponent, PreviewPainter)public static void setSelectTextOnFocus(java.lang.Boolean selectTextOnFocus)
selectTextOnFocus - If true, the contents of text components will be
selected on
focus gain. Pass null to reset to the default
behavior.SubstanceCortex.ComponentOrParentChainScope.setSelectTextOnFocus(JComponent, Boolean)public static void setTextEditContextMenuPresence(java.lang.Boolean hasEditContextMenu)
hasEditContextMenu - If true, text components will have the edit
context menu (with Cut / Copy / Paste / ... menu items). Pass null
to reset to the default behavior.SubstanceCortex.ComponentScope.setTextEditContextMenuPresence(JTextComponent, Boolean)public static void setAutomaticDragAndDropSupportPresence(java.lang.Boolean hasAutomaticDragAndDropSupport)
hasAutomaticDragAndDropSupport - If true, trees will have automatic
drag and drop support. Pass null to reset to the
default behavior.SubstanceCortex.ComponentScope.setAutomaticDragAndDropSupportPresence(JTree, Boolean)public static void setAutomaticScrollPresence(java.lang.Boolean hasAutomaticScroll)
hasAutomaticScroll - If true, scroll panes will have have
auto-scroll support invoked
on mouse button click that triggers popups. Pass
null to reset to
the default behavior.SubstanceCortex.ComponentScope.setAutomaticScrollPresence(JScrollPane, Boolean),
setExtraWidgetsPresence(Boolean),
SubstanceCortex.ComponentOrParentChainScope.setExtraWidgetsPresence(JComponent, Boolean)public static void setButtonIgnoreMinimumSize(java.lang.Boolean buttonIgnoreMinimumSize)
SubstanceButtonShaper implementations are not required to respect this call. The
current implementations of the default StandardButtonShaper and
ClassicButtonShaper respect this setting.buttonIgnoreMinimumSize - If true, buttons will ignore the default
(minimum) size under button shapers that respect this setting. Pass
null to reset to the default behavior.SubstanceCortex.ComponentOrParentScope.setButtonIgnoreMinimumSize(JComponent, Boolean)public static void setButtonNeverPaintBackground(java.lang.Boolean neverPaintButtonBackground)
neverPaintButtonBackground - If true, buttons will never paint
backgrounds. Pass null to reset to the
default behavior.SubstanceCortex.ComponentOrParentScope.setButtonNeverPaintBackground(JComponent, Boolean),
setFlatBackground(Boolean)public static void setFlatBackground(java.lang.Boolean flatBackground)
flatBackground - If true, components will not paint backgrounds
unless selected, armed, pressed or (possibly) hovered over. Pass
null to reset to the default behavior.SubstanceCortex.ComponentOrParentScope.setFlatBackground(JComponent, Boolean),
setButtonNeverPaintBackground(Boolean)public static void setToolbarButtonCornerRadius(float toolbarButtonCornerRadius)
toolbarButtonCornerRadius - Corner radius for all toolbar buttons.SubstanceCortex.ComponentScope.setToolbarButtonCornerRadius(AbstractButton, float),
SubstanceCortex.ComponentOrParentChainScope.setToolbarButtonCornerRadius(JToolBar, float)public static void setExtraWidgetsPresence(java.lang.Boolean extraWidgetsPresence)
extraWidgetsPresence - If true, extra UI elements (such as menu
items in system menu or lock borders) will be shown. Pass null to
reset to the default behavior.SubstanceCortex.ComponentOrParentChainScope.setExtraWidgetsPresence(JComponent, Boolean)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 Substance 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
SubstanceCortex.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.
colorizationFactor - Colorization factor to apply to the component and its nested
children.SubstanceCortex.ComponentOrParentChainScope.setColorizationFactor(JComponent, double)public static void setTabCloseButtonsVisible(java.lang.Boolean tabCloseButtonsVisible)
tabCloseButtonsVisible - If true, tabs in tabbed panes will show
close buttons.SubstanceCortex.ComponentScope.setTabCloseButtonVisible(JComponent, Boolean),
SubstanceCortex.ComponentScope.setTabCloseButtonsVisible(JTabbedPane, Boolean)public static void setTabCloseCallback(TabCloseCallback tabCloseCallback)
SubstanceCortex.ComponentScope.setTabCloseButtonVisible(JComponent, Boolean),
SubstanceCortex.ComponentScope.setTabCloseButtonsVisible(JTabbedPane, Boolean) and
setTabCloseButtonsVisible(Boolean) APIs.tabCloseCallback - Callback for deciding on the tab close type on tabbed pane tabs.SubstanceCortex.ComponentScope.setTabCloseCallback(JComponent, TabCloseCallback),
SubstanceCortex.ComponentScope.setTabCloseCallback(JTabbedPane, TabCloseCallback)public static void setRunModifiedAnimationOnTabCloseButton(java.lang.Boolean runModifiedAnimationOnTabCloseButton)
SubstanceCortex.ComponentScope.setTabContentsModified(JComponent, Boolean)runModifiedAnimationOnTabCloseButton - If true, the
marked-as-modified animation will run only
on the
tab close button.SubstanceCortex.ComponentScope.setRunModifiedAnimationOnTabCloseButton(JTabbedPane, Boolean),
SubstanceCortex.ComponentScope.setRunModifiedAnimationOnTabCloseButton(JComponent, Boolean)public static void setTabContentPaneBorderKind(SubstanceSlices.TabContentPaneBorderKind tabContentPaneBorderKind)
tabContentPaneBorderKind - Content pane border kind for tabbed panes.SubstanceCortex.ComponentScope.setTabContentPaneBorderKind(JTabbedPane, SubstanceSlices.TabContentPaneBorderKind)public static void setNumberOfPasswordEchoesPerCharacter(int echoCount)
echoCount - Number of echo characters for each password character in password
fields.SubstanceCortex.ComponentScope.setNumberOfPasswordEchoesPerCharacter(JPasswordField, int)public static void setMenuGutterFillKind(SubstanceSlices.MenuGutterFillKind menuGutterFillKind)
SubstanceSlices.MenuGutterFillKind.HARD_FILL.menuGutterFillKind - Menu gutter fill kind.public static void setTraceFilename(java.lang.String traceFilename)
traceFilename - Filename for tracing the memory allocations.public static void setFocusKind(SubstanceSlices.FocusKind focusKind)
focusKind - Kind of focus indication to be used on application components.SubstanceCortex.ComponentOrParentChainScope.setFocusKind(JComponent, SubstanceSlices.FocusKind)public static void setComboBoxPrototypeCallback(ComboPopupPrototypeCallback comboPopupPrototypeCallback)
comboPopupPrototypeCallback - Popup prototype callback which is used to compute
the width of the popups at
runtime.SubstanceCortex.ComponentScope.setComboBoxPrototypeCallback(JComboBox, ComboPopupPrototypeCallback)public static void setComboBoxPrototypeDisplayValue(java.lang.Object comboPopupPrototypeDisplayValue)
comboPopupPrototypeDisplayValue - Popup prototype display value which is used to
compute the width of the popups
at runtime.SubstanceCortex.ComponentScope.setComboBoxPrototypeDisplayValue(JComboBox, Object),
setComboBoxPrototypeCallback(ComboPopupPrototypeCallback)public static void setComboBoxPopupFlyoutOrientation(int comboPopupFlyoutOrientation)
null to reset to the default flyout orientation or one of the
Integers below:
SwingConstants.SOUTH - the popup is displayed directly below the
combobox aligned to the left.
SwingConstants.NORTH - the popup is displayed directly above the combobox
aligned to the left.
SwingConstants.EAST - the popup is displayed to the left of the combobox
aligned to the top.
SwingConstants.WEST - the popup is displayed to the right of the combobox
aligned to the top.
SwingConstants.CENTER - the popup is displayed centered vertically over the
combobox aligned to the left.
Note that the combo arrow changes in accordance with the combo popup flyout orientation.
comboPopupFlyoutOrientation - Flyout orientation for combobox popups.SubstanceCortex.ComponentScope.setComboBoxPopupFlyoutOrientation(JComboBox, Integer)public static java.awt.image.BufferedImage getBlankImage(int width,
int height)
public static org.pushingpixels.neon.api.icon.ResizableIcon colorizeIcon(org.pushingpixels.neon.api.icon.ResizableIcon.Factory sourceFactory,
SubstanceColorScheme colorScheme,
float brightnessFactor)
sourceFactory - Source factory to be used to create the icon.colorScheme - Color scheme for colorization.brightnessFactor - Brightness factor for colorization.public static org.pushingpixels.neon.api.icon.ResizableIconUIResource colorizeIconAsUiResource(org.pushingpixels.neon.api.icon.ResizableIcon.Factory sourceFactory,
SubstanceColorScheme colorScheme,
float brightnessFactor)
UIResource interface.sourceFactory - Source factory to be used to create the icon.colorScheme - Color scheme for colorization.brightnessFactor - Brightness factor for colorization.public static org.pushingpixels.neon.api.icon.ResizableIconUIResource colorizeIconAsUiResource(org.pushingpixels.neon.api.icon.ResizableIcon.Factory sourceFactory,
SubstanceColorScheme colorScheme)
UIResource interface.sourceFactory - Source factory to be used to create the icon.colorScheme - Color scheme for colorization.public static void setUseDefaultColorChooser()