public class SubstanceColorSchemeUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SubstanceColorScheme |
GREEN
Used as reference to the green color scheme.
|
static SubstanceSkin |
METALLIC_SKIN
Metallic skin.
|
static SubstanceColorScheme |
ORANGE
Used as reference in attention-drawing animations.
|
static SubstanceColorScheme |
YELLOW
Used as reference in attention-drawing animations.
|
Constructor and Description |
---|
SubstanceColorSchemeUtilities() |
Modifier and Type | Method and Description |
---|---|
static float |
getAlpha(java.awt.Component component,
ComponentState componentState)
Returns the alpha channel of the color scheme of the component.
|
static SchemeBaseColors |
getBaseColorScheme(java.io.InputStream is) |
static SubstanceColorScheme |
getColorScheme(java.awt.Component component,
ColorSchemeAssociationKind associationKind,
ComponentState componentState)
Returns the color scheme of the component.
|
static SubstanceColorScheme |
getColorScheme(java.awt.Component component,
ComponentState componentState)
Returns the color scheme of the specified component.
|
static SubstanceColorScheme |
getColorScheme(javax.swing.JTabbedPane jtp,
int tabIndex,
ColorSchemeAssociationKind associationKind,
ComponentState componentState)
Returns the color scheme of the specified tabbed pane tab.
|
static SubstanceColorScheme |
getColorScheme(java.net.URL url) |
static SubstanceSkin.ColorSchemes |
getColorSchemes(java.net.URL url) |
static SubstanceColorScheme |
getDarkColorScheme(java.lang.String name,
java.awt.Color[] colors) |
static float |
getHighlightAlpha(java.awt.Component component,
ComponentState componentState)
Returns the alpha channel of the highlight color scheme of the component.
|
static SubstanceColorScheme |
getLightColorScheme(java.lang.String name,
java.awt.Color[] colors) |
public static final SubstanceSkin METALLIC_SKIN
public static final SubstanceColorScheme YELLOW
public static final SubstanceColorScheme ORANGE
public static final SubstanceColorScheme GREEN
public static SubstanceColorScheme getColorScheme(javax.swing.JTabbedPane jtp, int tabIndex, ColorSchemeAssociationKind associationKind, ComponentState componentState)
jtp
- Tabbed pane.tabIndex
- Tab index.componentState
- Tab component state.public static SubstanceColorScheme getColorScheme(java.awt.Component component, ComponentState componentState)
component
- Component.componentState
- Component state.public static SubstanceColorScheme getColorScheme(java.awt.Component component, ColorSchemeAssociationKind associationKind, ComponentState componentState)
component
- Component.componentState
- Component state.public static float getHighlightAlpha(java.awt.Component component, ComponentState componentState)
component
- Component.componentState
- Component state.public static float getAlpha(java.awt.Component component, ComponentState componentState)
component
- Component.componentState
- Component state.public static SubstanceColorScheme getColorScheme(java.net.URL url)
public static SchemeBaseColors getBaseColorScheme(java.io.InputStream is)
public static SubstanceColorScheme getLightColorScheme(java.lang.String name, java.awt.Color[] colors)
public static SubstanceColorScheme getDarkColorScheme(java.lang.String name, java.awt.Color[] colors)
public static SubstanceSkin.ColorSchemes getColorSchemes(java.net.URL url)