org.jvnet.substance.utils
Class SubstanceThemeUtilities
java.lang.Object
org.jvnet.substance.utils.SubstanceThemeUtilities
public class SubstanceThemeUtilities
- extends java.lang.Object
|
Method Summary |
static SubstanceTheme |
getColorizedTheme(java.awt.Component component,
SubstanceTheme theme)
|
static SubstanceTheme |
getColorizedTheme(java.awt.Component component,
SubstanceTheme theme,
SubstanceThemeUtilities.ColorizationSupport support)
|
static SubstanceTheme |
getConstantTheme(SubstanceTheme theme)
|
static SubstanceTheme |
getDecorationTheme(java.awt.Component component)
|
static float |
getHighlightAlpha(java.awt.Component component,
ComponentState componentState)
Returns the alpha channel of the highlight theme of the component. |
static SubstanceTheme |
getHighlightTheme(java.awt.Component component,
ComponentState componentState)
Returns the highlight theme of the component. |
static SubstanceTheme |
getNonColorizedTheme(java.awt.Component component,
boolean toReturnCurrent)
|
static SubstanceTheme |
getNonColorizedTheme(javax.swing.JTabbedPane jtp,
int tabIndex)
|
static SubstanceTheme |
getTheme(java.awt.Component component)
|
static SubstanceTheme |
getTheme(java.awt.Component component,
ComponentState componentState)
Returns the theme of the component. |
static SubstanceTheme |
getTheme(java.awt.Component component,
ComponentState componentState,
boolean toIgnoreHighlights)
Returns the theme of the component. |
static SubstanceTheme |
getTheme(javax.swing.JTabbedPane jtp,
int tabIndex,
ComponentState componentState)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubstanceThemeUtilities
public SubstanceThemeUtilities()
getDecorationTheme
public static SubstanceTheme getDecorationTheme(java.awt.Component component)
getNonColorizedTheme
public static SubstanceTheme getNonColorizedTheme(java.awt.Component component,
boolean toReturnCurrent)
getTheme
public static SubstanceTheme getTheme(java.awt.Component component)
getColorizedTheme
public static SubstanceTheme getColorizedTheme(java.awt.Component component,
SubstanceTheme theme,
SubstanceThemeUtilities.ColorizationSupport support)
getColorizedTheme
public static SubstanceTheme getColorizedTheme(java.awt.Component component,
SubstanceTheme theme)
getNonColorizedTheme
public static SubstanceTheme getNonColorizedTheme(javax.swing.JTabbedPane jtp,
int tabIndex)
getTheme
public static SubstanceTheme getTheme(javax.swing.JTabbedPane jtp,
int tabIndex,
ComponentState componentState)
getTheme
public static SubstanceTheme getTheme(java.awt.Component component,
ComponentState componentState)
- Returns the theme of the component.
- Parameters:
component - Component.componentState - Component state.
- Returns:
- Component theme.
getTheme
public static SubstanceTheme getTheme(java.awt.Component component,
ComponentState componentState,
boolean toIgnoreHighlights)
- Returns the theme of the component.
- Parameters:
component - Component.componentState - Component state.
- Returns:
- Component theme.
getHighlightTheme
public static SubstanceTheme getHighlightTheme(java.awt.Component component,
ComponentState componentState)
- Returns the highlight theme of the component.
- Parameters:
component - Component.componentState - Component state.
- Returns:
- Component highlight theme.
getHighlightAlpha
public static float getHighlightAlpha(java.awt.Component component,
ComponentState componentState)
- Returns the alpha channel of the highlight theme of the component.
- Parameters:
component - Component.componentState - Component state.
- Returns:
- Highlight theme alpha channel.
getConstantTheme
public static SubstanceTheme getConstantTheme(SubstanceTheme theme)