public class SubstanceCoreUtilities
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
SubstanceCoreUtilities.TextComponentAware<T> |
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IS_COVERED_BY_LIGHTWEIGHT_POPUPS |
Client property name for marking components covered by lightweight
popups.
|
static boolean |
reallyPrint |
|
static boolean |
reallyThrow |
|
static java.lang.String |
TEXT_COMPONENT_AWARE |
Modifier and Type | Method | Description |
---|---|---|
static java.awt.image.BufferedImage |
blendImagesHorizontal(java.awt.image.BufferedImage imageLeft,
java.awt.image.BufferedImage imageRight,
double start,
double end) |
Blends two images along X-axis.
|
static java.awt.image.BufferedImage |
blendImagesVertical(java.awt.image.BufferedImage imageTop,
java.awt.image.BufferedImage imageBottom,
double start,
double end) |
Blends two images along Y-axis.
|
static boolean |
canReplaceChildBackgroundColor(java.awt.Color background) |
|
static java.lang.String |
clipString(java.awt.FontMetrics metrics,
int availableWidth,
java.lang.String fullText) |
Clips string based on specified font metrics and available width (in
pixels).
|
static java.awt.image.BufferedImage |
createCompatibleImage(java.awt.image.BufferedImage image) |
Creates a compatible image (for efficient processing and drawing).
|
static javax.swing.Icon |
getArrowIcon(javax.swing.AbstractButton button,
int orientation) |
Returns the arrow icon.
|
static javax.swing.Icon |
getArrowIcon(javax.swing.JComponent comp,
TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate,
int orientation) |
Returns the arrow icon.
|
static java.awt.image.BufferedImage |
getBlankImage(int width,
int height) |
Retrieves transparent image of specified dimension.
|
static java.awt.image.VolatileImage |
getBlankVolatileImage(int width,
int height) |
Retrieves transparent image of specified dimension.
|
static SubstanceBorderPainter |
getBorderPainter(java.awt.Component comp) |
Returns the border painter for the specified component.
|
static SubstanceButtonShaper |
getButtonShaper(java.awt.Component comp) |
Returns the button shaper of the specified button.
|
static java.lang.ClassLoader |
getClassLoaderForResources() |
Returns the class loader for loading the resource files.
|
static int |
getCloseButtonSize(javax.swing.JTabbedPane tabbedPane,
int tabIndex) |
Returns the size of the close button for a tab in the specified tabbed
pane.
|
static double |
getColorizationFactor(java.awt.Component c) |
Returns the colorization factor for the specified component.
|
static java.lang.Object |
getComboPopupPrototypeDisplayValue(javax.swing.JComboBox combo) |
Returns the popup prototype display value for the specified combo box.
|
static SubstanceConstants.TabContentPaneBorderKind |
getContentBorderKind(javax.swing.JTabbedPane tabbedPane) |
Returns the content border kind of the specified tabbed pane.
|
static int |
getEchoPerChar(javax.swing.JPasswordField jpf) |
Returns the number of echo characters per each password chanaracter.
|
static SubstanceFillPainter |
getFillPainter(java.awt.Component comp) |
Returns the fill painter of the specified component.
|
static SubstanceConstants.FocusKind |
getFocusKind(java.awt.Component component) |
Returns the focus ring kind of the specified component.
|
static HashMapKey |
getHashKey(java.lang.Object... objects) |
Returns a hash key for the specified parameters.
|
static java.awt.Container |
getHeaderParent(java.awt.Component c) |
Given a component, returns the parent for computing the
SubstanceDecorationPainter . |
static java.lang.String |
getHierarchy(java.awt.Component comp) |
Returns the component hierarchy.
|
static void |
getHierarchy(java.awt.Component comp,
java.lang.StringBuffer buffer,
int level) |
Computes the component hierarchy.
|
static SubstanceBorderPainter |
getHighlightBorderPainter(java.awt.Component comp) |
Returns the highlight border painter for the specified component.
|
static javax.swing.Icon |
getIcon(java.lang.String iconResource) |
Returns an icon pointed to by the specified string.
|
static SubstanceConstants.MenuGutterFillKind |
getMenuGutterFillKind() |
Returns the global menu gutter fill kind.
|
static SubstanceColorScheme |
getOptionPaneColorScheme(int messageType,
SubstanceColorScheme mainScheme) |
Returns the color scheme for the icon of option panes with the specified
message type.
|
static javax.swing.Icon |
getOriginalIcon(javax.swing.AbstractButton b,
javax.swing.Icon defaultIcon) |
|
static int |
getPopupFlyoutOrientation(javax.swing.JComboBox combobox) |
Returns the popup flyout orientation for the specified combobox.
|
static int |
getPopupParentIndexOf(java.awt.Component comp,
java.awt.Component[] popups) |
Gets a component and a list of popups and returns the index of the popup
that is a parent of the specified component.
|
static java.util.ResourceBundle |
getResourceBundle(javax.swing.JComponent jcomp) |
Returns the resource bundle for the specified component.
|
static java.awt.image.BufferedImage |
getScaledIconImage(java.util.List<java.awt.Image> imageList,
int width,
int height) |
Scans
imageList for best-looking image of specified dimensions. |
static SubstanceConstants.ScrollPaneButtonPolicyKind |
getScrollPaneButtonsPolicyKind(javax.swing.JScrollBar scrollBar) |
Returns the scroll bar buttons kind of the specified scroll bar.
|
static java.util.Set<SubstanceConstants.Side> |
getSides(javax.swing.JComponent component,
java.lang.String propertyName) |
Returns the set of sides registered on the specified button.
|
static SubstanceSkin |
getSkin(java.awt.Component c) |
Returns the skin of the specified component.
|
static TabCloseCallback |
getTabCloseCallback(java.awt.event.MouseEvent me,
javax.swing.JTabbedPane tabbedPane,
int tabIndex) |
Returns the callback to be called upon tab closing (using the tab close
button).
|
static javax.swing.text.JTextComponent |
getTextComponentForTransitions(java.awt.Component c) |
|
static org.pushingpixels.trident.swing.SwingRepaintCallback |
getTextComponentRepaintCallback(javax.swing.text.JTextComponent textComponent) |
|
static javax.swing.Icon |
getThemedIcon(java.awt.Component comp,
javax.swing.Icon orig) |
|
static javax.swing.Icon |
getThemedIcon(javax.swing.JTabbedPane tab,
int tabIndex,
javax.swing.Icon orig) |
|
static javax.swing.JComponent |
getTitlePane(javax.swing.JRootPane rootPane) |
Returns the title pane of the specified root pane.
|
static float |
getToolbarButtonCornerRadius(javax.swing.JComponent button,
java.awt.Insets insets) |
Returns the corner radius of the specified toolbar button.
|
static java.lang.String |
getVmParameter(java.lang.String parameterName) |
Retrieves a single parameter from the VM flags.
|
static boolean |
hasCloseButton(javax.swing.JTabbedPane tabbedPane,
int tabIndex) |
Checks whether the specified tab has a close button.
|
static boolean |
hasFlatAppearance(java.awt.Component comp,
boolean defaultValue) |
Checks whether the specified component is flat.
|
static boolean |
hasFlatAppearance(javax.swing.AbstractButton button) |
Computes whether the specified button has flat appearance.
|
static boolean |
hasIcon(javax.swing.AbstractButton button) |
Checks whether the specified button has associated icon.
|
static boolean |
hasNoMinSizeProperty(javax.swing.AbstractButton button) |
Checks whether the specified button should have minimal size.
|
static boolean |
hasText(javax.swing.AbstractButton button) |
Checks whether the specified button has associated text.
|
static boolean |
isButtonNeverPainted(javax.swing.JComponent button) |
Checks whether the specified button never paints its background.
|
static boolean |
isComboBoxButton(javax.swing.AbstractButton button) |
Checks and answers if the specified button is in a combo box.
|
static boolean |
isCoveredByLightweightPopups(java.awt.Component comp) |
|
static boolean |
isInternalFrameModified(javax.swing.JInternalFrame internalFrame) |
Retrieves the
modified state for the specified internal
frame. |
static boolean |
isOpaque(java.awt.Component c) |
|
static boolean |
isPaintRootPaneActivated(javax.swing.JRootPane rp) |
|
static boolean |
isRootPaneAutoDeactivate(javax.swing.JRootPane rp) |
|
static boolean |
isRootPaneModified(javax.swing.JRootPane rootPane) |
Retrieves the
modified state for the specified root pane. |
static boolean |
isRoundedCorners(java.awt.Component c) |
|
static boolean |
isScrollBarButton(javax.swing.AbstractButton button) |
Checks and answers if the specified button is in a scroll bar.
|
static boolean |
isScrollButton(javax.swing.JComponent comp) |
Checks answers if the specified component is a button in a scroll
control, such as scroll bar or tabbed pane (as tab scroller).
|
static boolean |
isSecondaryWindow(javax.swing.JRootPane rp) |
|
static boolean |
isSpinnerButton(javax.swing.AbstractButton button) |
Checks and answers if the specified button is in a spinner.
|
static boolean |
isTabModified(java.awt.Component tabComponent) |
Retrieves the
modified state for the specified component in
a tabbed pane. |
static boolean |
isTitleCloseButton(javax.swing.JComponent ab) |
Returns indication whether the specified button is a close button on some
title pane.
|
static boolean |
isToolBarButton(javax.swing.JComponent component) |
Checks and answers if the specified button is in a toolbar.
|
static void |
makeNonOpaque(java.awt.Component comp,
java.util.Map<java.awt.Component,java.lang.Boolean> opacitySnapshot) |
Makes the specified component and all its descendants non-opaque.
|
static void |
paintFocus(java.awt.Graphics g,
java.awt.Component mainComp,
java.awt.Component focusedComp,
TransitionAwareUI transitionAwareUI,
java.awt.Shape focusShape,
java.awt.Rectangle textRect,
float maxAlphaCoef,
int extraPadding) |
Paints the focus ring on the specified component.
|
static boolean |
reallyPrintThreadingExceptions() |
|
static boolean |
reallyThrowThreadingExceptions() |
|
static void |
restoreOpaque(java.awt.Component comp,
java.util.Map<java.awt.Component,java.lang.Boolean> opacitySnapshot) |
Restores the opacity of the specified component and all its descendants.
|
static java.awt.image.BufferedImage |
softClip(int width,
int height,
java.awt.image.BufferedImage source,
java.awt.Shape clipShape) |
Creates a soft-clipped image.
|
static void |
stopThreads() |
Stops all Substance threads.
|
static void |
testComponentCreationThreadingViolation(java.awt.Component comp) |
Tests UI threading violations on creating the specified component.
|
static void |
testComponentStateChangeThreadingViolation(java.awt.Component comp) |
Tests UI threading violations on changing the state the specified
component.
|
static void |
testWindowCloseThreadingViolation(java.awt.Window w) |
Tests UI threading violations on closing the specified window.
|
static boolean |
toAnimateCloseIconOfModifiedTab(javax.swing.JTabbedPane tabbedPane,
int tabIndex) |
Checks whether the specified tab should show modified animation only on
its close button.
|
static boolean |
toDrawWatermark(java.awt.Component component) |
Returns indication whether the watermark should be drawn on the specified
component.
|
static boolean |
toShowExtraWidgets(java.awt.Component component) |
Checks whether the specified component has extra Substance-specific UI
elements.
|
static void |
traceSubstanceApiUsage(java.awt.Component comp,
java.lang.String message) |
|
static void |
uninstallMenu(javax.swing.JMenuItem menuItem) |
Uninstalls the specified menu item.
|
static boolean |
useThemedDefaultIcon(javax.swing.JComponent comp) |
Checks whether the specified component will show scheme-colorized icon in
the default state.
|
public static final java.lang.String IS_COVERED_BY_LIGHTWEIGHT_POPUPS
Boolean
.public static final java.lang.String TEXT_COMPONENT_AWARE
public static final boolean reallyThrow
public static final boolean reallyPrint
public static java.lang.String clipString(java.awt.FontMetrics metrics, int availableWidth, java.lang.String fullText)
metrics
- Font metrics.availableWidth
- Available width in pixels.fullText
- String to clip.public static boolean hasIcon(javax.swing.AbstractButton button)
button
- Button.true
is returned,
otherwise false
.public static boolean hasText(javax.swing.AbstractButton button)
button
- Button.true
is returned,
otherwise false
.public static boolean isComboBoxButton(javax.swing.AbstractButton button)
button
- the button to checktrue
if in combo box, false
otherwisepublic static boolean isScrollBarButton(javax.swing.AbstractButton button)
button
- the button to checktrue
if in scroll bar, false
otherwisepublic static boolean isSpinnerButton(javax.swing.AbstractButton button)
button
- the button to checktrue
if in spinner, false
otherwisepublic static boolean isToolBarButton(javax.swing.JComponent component)
component
- the button to checktrue
if in toolbar, false
otherwisepublic static boolean isScrollButton(javax.swing.JComponent comp)
comp
- The component to checktrue
if the specified component is a button in a
scroll control, false
otherwisepublic static boolean isButtonNeverPainted(javax.swing.JComponent button)
button
- Button.true
if the specified button never paints its
background, false
otherwise.SubstanceLookAndFeel.BUTTON_PAINT_NEVER_PROPERTY
public static SubstanceConstants.FocusKind getFocusKind(java.awt.Component component)
component
- Component.SubstanceLookAndFeel.FOCUS_KIND
public static boolean toDrawWatermark(java.awt.Component component)
component
- Component.true
if the watermark should be drawn on the
specified component, false
otherwise.SubstanceLookAndFeel.WATERMARK_VISIBLE
public static SubstanceButtonShaper getButtonShaper(java.awt.Component comp)
comp
- The button.SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY
,
SubstanceSkin.getButtonShaper()
public static SubstanceFillPainter getFillPainter(java.awt.Component comp)
comp
- Component.SubstanceSkin.getFillPainter()
public static boolean isTabModified(java.awt.Component tabComponent)
modified
state for the specified component in
a tabbed pane.tabComponent
- The associated tab component.true
if the specified component in a tabbed pane is
marked as modified, false
otherwise.SubstanceLookAndFeel.WINDOW_MODIFIED
public static boolean isRootPaneModified(javax.swing.JRootPane rootPane)
modified
state for the specified root pane.rootPane
- The root pane.true
if the specified root pane is marked as
modified, false
otherwise.SubstanceLookAndFeel.WINDOW_MODIFIED
public static boolean isInternalFrameModified(javax.swing.JInternalFrame internalFrame)
modified
state for the specified internal
frame.internalFrame
- The internal frame.true
if the specified internal frame is marked as
modified, false
otherwise.SubstanceLookAndFeel.WINDOW_MODIFIED
public static boolean isRootPaneAutoDeactivate(javax.swing.JRootPane rp)
public static boolean isPaintRootPaneActivated(javax.swing.JRootPane rp)
public static boolean isSecondaryWindow(javax.swing.JRootPane rp)
public static boolean isRoundedCorners(java.awt.Component c)
public static boolean hasCloseButton(javax.swing.JTabbedPane tabbedPane, int tabIndex)
tabbedPane
- Tabbed pane.tabIndex
- Tab index.true
if the specified tab has a close button,
false
otherwise.SubstanceLookAndFeel.TABBED_PANE_CLOSE_BUTTONS_PROPERTY
public static int getCloseButtonSize(javax.swing.JTabbedPane tabbedPane, int tabIndex)
tabbedPane
- Tabbed pane.tabIndex
- Tab index.public static SubstanceConstants.TabContentPaneBorderKind getContentBorderKind(javax.swing.JTabbedPane tabbedPane)
tabbedPane
- Tabbed pane.SubstanceLookAndFeel.TABBED_PANE_CONTENT_BORDER_KIND
public static boolean toAnimateCloseIconOfModifiedTab(javax.swing.JTabbedPane tabbedPane, int tabIndex)
tabbedPane
- Tabbed pane.tabIndex
- Tab index.true
if the specified tab should show modified
animation only on its close button, false
otherwise.SubstanceLookAndFeel.TABBED_PANE_CLOSE_BUTTONS_MODIFIED_ANIMATION
public static java.awt.image.BufferedImage getBlankImage(int width, int height)
width
- Image width.height
- Image height.public static java.awt.image.VolatileImage getBlankVolatileImage(int width, int height)
width
- Image width.height
- Image height.public static boolean hasNoMinSizeProperty(javax.swing.AbstractButton button)
button
- Button.false
if the specified button should have minimal
size, true
otherwise.SubstanceLookAndFeel.BUTTON_NO_MIN_SIZE_PROPERTY
public static boolean hasFlatAppearance(java.awt.Component comp, boolean defaultValue)
comp
- Component.defaultValue
- The value to return if there is no
SubstanceLookAndFeel.FLAT_PROPERTY
defined on button
hierarchy or UIManager
.false
if the specified button is flat,
true
otherwise.SubstanceLookAndFeel.FLAT_PROPERTY
public static boolean hasFlatAppearance(javax.swing.AbstractButton button)
button
- Button.true
if the button has flat appearance,
false
otherwise.public static int getPopupFlyoutOrientation(javax.swing.JComboBox combobox)
combobox
- Combobox.SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION
public static void makeNonOpaque(java.awt.Component comp, java.util.Map<java.awt.Component,java.lang.Boolean> opacitySnapshot)
comp
- Component.opacitySnapshot
- The "snapshot" map that will contain the original opacity
status of the specified component and all its descendants.public static void restoreOpaque(java.awt.Component comp, java.util.Map<java.awt.Component,java.lang.Boolean> opacitySnapshot)
comp
- Component.opacitySnapshot
- The "snapshot" map that contains the original opacity status
of the specified component and all its descendants.public static java.awt.image.BufferedImage createCompatibleImage(java.awt.image.BufferedImage image)
image
- The original image.public static boolean useThemedDefaultIcon(javax.swing.JComponent comp)
comp
- Component.true
if the specified component will show
scheme-colorized icon in the default state, false
otherwise.SubstanceLookAndFeel.USE_THEMED_DEFAULT_ICONS
public static TabCloseCallback getTabCloseCallback(java.awt.event.MouseEvent me, javax.swing.JTabbedPane tabbedPane, int tabIndex)
me
- Mouse event.tabbedPane
- Tabbed pane.tabIndex
- Tab index.SubstanceLookAndFeel.TABBED_PANE_CLOSE_CALLBACK
public static java.awt.image.BufferedImage blendImagesVertical(java.awt.image.BufferedImage imageTop, java.awt.image.BufferedImage imageBottom, double start, double end)
imageTop
- The left image.imageBottom
- The right image.start
- Relative start of the blend area (in 0.0-1.0 range).end
- Relative end of the blend area (in 0.0-1.0 range).public static java.awt.image.BufferedImage blendImagesHorizontal(java.awt.image.BufferedImage imageLeft, java.awt.image.BufferedImage imageRight, double start, double end)
imageLeft
- The left image.imageRight
- The right image.start
- Relative start of the blend area (in 0.0-1.0 range).end
- Relative end of the blend area (in 0.0-1.0 range).public static SubstanceColorScheme getOptionPaneColorScheme(int messageType, SubstanceColorScheme mainScheme)
messageType
- Option pane message type.mainScheme
- Main color scheme.public static java.lang.Object getComboPopupPrototypeDisplayValue(javax.swing.JComboBox combo)
combo
- Combo box.SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE
public static SubstanceConstants.ScrollPaneButtonPolicyKind getScrollPaneButtonsPolicyKind(javax.swing.JScrollBar scrollBar)
scrollBar
- Scroll bar.SubstanceLookAndFeel.SCROLL_PANE_BUTTONS_POLICY
public static java.util.Set<SubstanceConstants.Side> getSides(javax.swing.JComponent component, java.lang.String propertyName)
component
- Button.propertyName
- Client property name for retrieving the registered sides.public static float getToolbarButtonCornerRadius(javax.swing.JComponent button, java.awt.Insets insets)
button
- Toolbar button.insets
- Button insets.SubstanceLookAndFeel.CORNER_RADIUS
public static int getEchoPerChar(javax.swing.JPasswordField jpf)
jpf
- Password field.SubstanceLookAndFeel.PASSWORD_ECHO_PER_CHAR
public static java.awt.image.BufferedImage softClip(int width, int height, java.awt.image.BufferedImage source, java.awt.Shape clipShape)
public static boolean toShowExtraWidgets(java.awt.Component component)
component
- Component.true
if the specified component has extra
Substance-specific UI elements, false
otherwise.SubstanceLookAndFeel.SHOW_EXTRA_WIDGETS
public static javax.swing.Icon getThemedIcon(java.awt.Component comp, javax.swing.Icon orig)
public static javax.swing.Icon getThemedIcon(javax.swing.JTabbedPane tab, int tabIndex, javax.swing.Icon orig)
public static javax.swing.Icon getOriginalIcon(javax.swing.AbstractButton b, javax.swing.Icon defaultIcon)
public static SubstanceConstants.MenuGutterFillKind getMenuGutterFillKind()
SubstanceLookAndFeel.MENU_GUTTER_FILL_KIND
public static java.awt.Container getHeaderParent(java.awt.Component c)
SubstanceDecorationPainter
.c
- Component.SubstanceDecorationPainter
.public static void paintFocus(java.awt.Graphics g, java.awt.Component mainComp, java.awt.Component focusedComp, TransitionAwareUI transitionAwareUI, java.awt.Shape focusShape, java.awt.Rectangle textRect, float maxAlphaCoef, int extraPadding)
g
- Graphics context.mainComp
- The main component for the focus painting.focusedComp
- The actual component that has the focus. For example, the main
component can be a JSpinner
, while the focused
component is a text field inside the the spinner editor.focusShape
- Focus shape. May be null
- in this case, the
bounds of mainComp
will be used.textRect
- Text rectangle (if relevant).maxAlphaCoef
- Maximum alhpa coefficient for painting the focus. Values lower
than 1.0 will result in a translucent focus ring (can be used
to paint a focus ring that doesn't draw too much attention
away from the content, for example on text components).extraPadding
- Extra padding between the component bounds and the focus ring
painting.public static boolean isTitleCloseButton(javax.swing.JComponent ab)
ab
- Button.true
if the specified button is a close button on
some title pane, false
otherwise.public static void uninstallMenu(javax.swing.JMenuItem menuItem)
menuItem
- Menu item.public static javax.swing.Icon getIcon(java.lang.String iconResource)
iconResource
- Resource location string.public static java.lang.ClassLoader getClassLoaderForResources()
public static boolean isCoveredByLightweightPopups(java.awt.Component comp)
public static int getPopupParentIndexOf(java.awt.Component comp, java.awt.Component[] popups)
comp
- Component.popups
- List of popups.public static java.util.ResourceBundle getResourceBundle(javax.swing.JComponent jcomp)
jcomp
- Component.public static SubstanceBorderPainter getBorderPainter(java.awt.Component comp)
comp
- Component.SubstanceSkin.getBorderPainter()
public static SubstanceBorderPainter getHighlightBorderPainter(java.awt.Component comp)
comp
- Component.SubstanceSkin.getBorderPainter()
,
SubstanceSkin.getHighlightBorderPainter()
public static java.lang.String getHierarchy(java.awt.Component comp)
comp
- Component.public static void getHierarchy(java.awt.Component comp, java.lang.StringBuffer buffer, int level)
comp
- Component.buffer
- Hierarchy representation buffer.level
- Hierarchy level.public static javax.swing.JComponent getTitlePane(javax.swing.JRootPane rootPane)
rootPane
- Root pane.public static javax.swing.Icon getArrowIcon(javax.swing.AbstractButton button, int orientation)
button
- Button.orientation
- Arrow orientation.public static javax.swing.Icon getArrowIcon(javax.swing.JComponent comp, TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate, int orientation)
comp
- Component.orientation
- Arrow orientation.public static double getColorizationFactor(java.awt.Component c)
c
- Component.SubstanceLookAndFeel.COLORIZATION_FACTOR
public static SubstanceSkin getSkin(java.awt.Component c)
c
- Component.SubstanceLookAndFeel.SKIN_PROPERTY
public static HashMapKey getHashKey(java.lang.Object... objects)
objects
- Key components.public static void stopThreads()
public static java.lang.String getVmParameter(java.lang.String parameterName)
parameterName
- Parameter name.public static boolean reallyPrintThreadingExceptions()
public static boolean reallyThrowThreadingExceptions()
public static void testComponentCreationThreadingViolation(java.awt.Component comp)
comp
- Component.UiThreadingViolationException
- If the component is created off Event Dispatch Thread.public static void testComponentStateChangeThreadingViolation(java.awt.Component comp)
comp
- Component.UiThreadingViolationException
- If the component is changing state off Event Dispatch Thread.public static void testWindowCloseThreadingViolation(java.awt.Window w)
w
- Window.UiThreadingViolationException
- If the window is closed off Event Dispatch Thread.public static void traceSubstanceApiUsage(java.awt.Component comp, java.lang.String message)
public static java.awt.image.BufferedImage getScaledIconImage(java.util.List<java.awt.Image> imageList, int width, int height)
imageList
for best-looking image of specified dimensions.
Image can be scaled and/or padded with transparency.public static boolean canReplaceChildBackgroundColor(java.awt.Color background)
public static javax.swing.text.JTextComponent getTextComponentForTransitions(java.awt.Component c)
public static org.pushingpixels.trident.swing.SwingRepaintCallback getTextComponentRepaintCallback(javax.swing.text.JTextComponent textComponent)
public static boolean isOpaque(java.awt.Component c)