public class LookAndFeelUtil extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LookAndFeelUtil.WeakSkinChangeListener
Weak listener wrapper for SkinChangeListener.
|
Constructor and Description |
---|
LookAndFeelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addSkinChangeListener(org.pushingpixels.substance.api.skin.SkinChangeListener listener)
Add skin change listener (automatically add weak listener)
|
static org.pushingpixels.substance.api.SubstanceColorScheme |
getActiveColorScheme(java.awt.Component c) |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getActiveColorScheme(java.awt.Component c,
org.pushingpixels.substance.api.ComponentState state) |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getActiveColorScheme(org.pushingpixels.substance.api.DecorationAreaType d) |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getActiveColorSheme(java.awt.Component c)
Deprecated.
Use
getActiveColorScheme(Component) instead. |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getActiveColorSheme(java.awt.Component c,
org.pushingpixels.substance.api.ComponentState state)
Deprecated.
Use
getActiveColorScheme(Component, ComponentState) instead. |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getActiveColorSheme(org.pushingpixels.substance.api.DecorationAreaType d)
Deprecated.
Use
getActiveColorScheme(DecorationAreaType) instead. |
static java.awt.Color |
getBackground(java.awt.Component c)
Return the background color for the specified component
|
static org.pushingpixels.substance.api.SubstanceColorScheme |
getBackgroundColorScheme(java.awt.Component c) |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getBackgroundColorScheme(org.pushingpixels.substance.api.DecorationAreaType d) |
static java.awt.Image |
getBackgroundImageFromAlphaImage(java.awt.Component c,
java.awt.Image alphaImage)
Return a background component color image depending original alpha intensity image
|
static org.pushingpixels.substance.api.SubstanceColorScheme |
getColorScheme(java.awt.Component c,
org.pushingpixels.substance.api.ColorSchemeAssociationKind kind,
org.pushingpixels.substance.api.ComponentState state) |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getColorScheme(java.awt.Component c,
org.pushingpixels.substance.api.ComponentState state) |
static org.pushingpixels.substance.api.SubstanceSkin |
getCurrentSkin()
get current Substance skin
|
static java.lang.String |
getCurrentSkinName()
get current Substance skin display name
|
static org.pushingpixels.substance.api.DecorationAreaType |
getDecoration(java.awt.Component c) |
static int |
getDefaultFontSize()
get default Look And Feel font size
|
static java.lang.String |
getDefaultSkin()
get default Substance skin
|
static org.pushingpixels.substance.api.SubstanceColorScheme |
getDisabledColorScheme(java.awt.Component c) |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getDisabledColorScheme(org.pushingpixels.substance.api.DecorationAreaType d) |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getEnabledColorScheme(java.awt.Component c) |
static org.pushingpixels.substance.api.SubstanceColorScheme |
getEnabledColorScheme(org.pushingpixels.substance.api.DecorationAreaType d) |
static int |
getFontSize()
Get current LookAndFeel font size
|
static java.awt.Color |
getForeground(java.awt.Component c)
Return the foreground color for the specified component
|
static java.awt.Image |
getForegroundImageFromAlphaImage(java.awt.Component c,
java.awt.Image alphaImage)
Return a foreground component color image depending original alpha intensity image
|
static org.pushingpixels.flamingo.api.common.popup.JCommandPopupMenu |
getLookAndFeelMenu() |
static java.awt.Color |
getSelectedBackground(java.awt.Component c)
Return the selected background color for the specified component
|
static java.awt.Color |
getSelectedForeground(java.awt.Component c)
Return the selected foreground color for the specified component
|
static org.pushingpixels.substance.api.SubstanceSkin |
getSkin() |
static org.pushingpixels.substance.api.SubstanceSkin |
getSkin(java.awt.Component c) |
static org.pushingpixels.substance.internal.utils.SubstanceInternalFrameTitlePane |
getTitlePane(javax.swing.JInternalFrame frame) |
static org.pushingpixels.substance.internal.utils.SubstanceTitlePane |
getTitlePane(java.awt.Window window) |
static void |
init() |
static java.awt.Image |
paintBackgroundImageFromAlphaImage(java.awt.Component c,
java.awt.Image alphaImage,
java.awt.Image out)
Paint background component color in 'out' image
depending original alpha intensity from 'alphaImage' |
static java.awt.Image |
paintForegroundImageFromAlphaImage(java.awt.Component c,
java.awt.Image alphaImage,
java.awt.Image out)
Paint foreground component color in 'out' image
depending original alpha intensity from 'alphaImage' |
static void |
removeSkinChangeListener(org.pushingpixels.substance.api.skin.SkinChangeListener listener)
Remove skin change listener
|
static void |
setFontSize(int size)
Set LookAndFeel font size
|
static void |
setSkin(java.lang.String skinName)
Set the specified LookAndFeel skin (skin display name)
|
static void |
setTitlePane(javax.swing.JInternalFrame frame,
org.pushingpixels.substance.internal.utils.SubstanceInternalFrameTitlePane titlePane) |
public LookAndFeelUtil()
public static void init()
public static void addSkinChangeListener(org.pushingpixels.substance.api.skin.SkinChangeListener listener)
public static void removeSkinChangeListener(org.pushingpixels.substance.api.skin.SkinChangeListener listener)
public static org.pushingpixels.substance.api.SubstanceSkin getCurrentSkin()
public static java.lang.String getCurrentSkinName()
public static org.pushingpixels.flamingo.api.common.popup.JCommandPopupMenu getLookAndFeelMenu()
public static int getDefaultFontSize()
public static java.lang.String getDefaultSkin()
public static int getFontSize()
public static void setFontSize(int size)
public static void setSkin(java.lang.String skinName)
public static java.awt.Image getForegroundImageFromAlphaImage(java.awt.Component c, java.awt.Image alphaImage)
public static java.awt.Image getBackgroundImageFromAlphaImage(java.awt.Component c, java.awt.Image alphaImage)
public static java.awt.Image paintForegroundImageFromAlphaImage(java.awt.Component c, java.awt.Image alphaImage, java.awt.Image out)
public static java.awt.Image paintBackgroundImageFromAlphaImage(java.awt.Component c, java.awt.Image alphaImage, java.awt.Image out)
public static org.pushingpixels.substance.api.SubstanceColorScheme getActiveColorScheme(org.pushingpixels.substance.api.DecorationAreaType d)
@Deprecated public static org.pushingpixels.substance.api.SubstanceColorScheme getActiveColorSheme(org.pushingpixels.substance.api.DecorationAreaType d)
getActiveColorScheme(DecorationAreaType)
instead.public static org.pushingpixels.substance.api.SubstanceColorScheme getBackgroundColorScheme(org.pushingpixels.substance.api.DecorationAreaType d)
public static org.pushingpixels.substance.api.SubstanceColorScheme getDisabledColorScheme(org.pushingpixels.substance.api.DecorationAreaType d)
public static org.pushingpixels.substance.api.SubstanceColorScheme getEnabledColorScheme(org.pushingpixels.substance.api.DecorationAreaType d)
public static org.pushingpixels.substance.api.SubstanceSkin getSkin()
public static org.pushingpixels.substance.api.SubstanceSkin getSkin(java.awt.Component c)
public static org.pushingpixels.substance.api.DecorationAreaType getDecoration(java.awt.Component c)
public static org.pushingpixels.substance.api.SubstanceColorScheme getColorScheme(java.awt.Component c, org.pushingpixels.substance.api.ComponentState state)
public static org.pushingpixels.substance.api.SubstanceColorScheme getColorScheme(java.awt.Component c, org.pushingpixels.substance.api.ColorSchemeAssociationKind kind, org.pushingpixels.substance.api.ComponentState state)
public static org.pushingpixels.substance.api.SubstanceColorScheme getActiveColorScheme(java.awt.Component c)
public static org.pushingpixels.substance.api.SubstanceColorScheme getActiveColorScheme(java.awt.Component c, org.pushingpixels.substance.api.ComponentState state)
@Deprecated public static org.pushingpixels.substance.api.SubstanceColorScheme getActiveColorSheme(java.awt.Component c)
getActiveColorScheme(Component)
instead.@Deprecated public static org.pushingpixels.substance.api.SubstanceColorScheme getActiveColorSheme(java.awt.Component c, org.pushingpixels.substance.api.ComponentState state)
getActiveColorScheme(Component, ComponentState)
instead.public static org.pushingpixels.substance.api.SubstanceColorScheme getBackgroundColorScheme(java.awt.Component c)
public static org.pushingpixels.substance.api.SubstanceColorScheme getDisabledColorScheme(java.awt.Component c)
public static org.pushingpixels.substance.api.SubstanceColorScheme getEnabledColorScheme(java.awt.Component c)
public static java.awt.Color getForeground(java.awt.Component c)
public static java.awt.Color getSelectedForeground(java.awt.Component c)
public static java.awt.Color getBackground(java.awt.Component c)
public static java.awt.Color getSelectedBackground(java.awt.Component c)
public static org.pushingpixels.substance.internal.utils.SubstanceTitlePane getTitlePane(java.awt.Window window)
public static org.pushingpixels.substance.internal.utils.SubstanceInternalFrameTitlePane getTitlePane(javax.swing.JInternalFrame frame)
public static void setTitlePane(javax.swing.JInternalFrame frame, org.pushingpixels.substance.internal.utils.SubstanceInternalFrameTitlePane titlePane)