public class SubstanceColorSchemeUtilities extends Object
Modifier and Type | Field | 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 | Description |
---|---|
SubstanceColorSchemeUtilities() |
Modifier and Type | Method | Description |
---|---|---|
static SubstanceColorScheme |
getActiveColorScheme(Component component,
ComponentState componentState) |
Returns the color scheme of the component.
|
static float |
getAlpha(Component component,
ComponentState componentState) |
Returns the alpha channel of the color scheme of the component.
|
static SchemeBaseColors |
getBaseColorScheme(InputStream is) |
|
static SubstanceColorScheme |
getColorScheme(Component component,
ColorSchemeAssociationKind associationKind,
ComponentState componentState) |
Returns the color scheme of the component.
|
static SubstanceColorScheme |
getColorScheme(Component component,
ComponentState componentState) |
Returns the color scheme of the specified component.
|
static SubstanceColorScheme |
getColorScheme(JTabbedPane jtp,
int tabIndex,
ColorSchemeAssociationKind associationKind,
ComponentState componentState) |
Returns the color scheme of the specified tabbed pane tab.
|
static SubstanceSkin.ColorSchemes |
getColorSchemes(URL url) |
|
static SubstanceColorScheme |
getDarkColorScheme(String name,
Color[] colors) |
|
static float |
getHighlightAlpha(Component component,
ComponentState componentState) |
Returns the alpha channel of the highlight color scheme of the component.
|
static SubstanceColorScheme |
getLightColorScheme(String name,
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(JTabbedPane jtp, int tabIndex, ColorSchemeAssociationKind associationKind, ComponentState componentState)
jtp
- Tabbed pane.tabIndex
- Tab index.componentState
- Tab component state.public static SubstanceColorScheme getColorScheme(Component component, ComponentState componentState)
component
- Component.componentState
- Component state.public static SubstanceColorScheme getColorScheme(Component component, ColorSchemeAssociationKind associationKind, ComponentState componentState)
component
- Component.associationKind
- Association kind.componentState
- Component state.public static SubstanceColorScheme getActiveColorScheme(Component component, ComponentState componentState)
component
- Component.componentState
- Component state.public static float getHighlightAlpha(Component component, ComponentState componentState)
component
- Component.componentState
- Component state.public static float getAlpha(Component component, ComponentState componentState)
component
- Component.componentState
- Component state.public static SchemeBaseColors getBaseColorScheme(InputStream is)
public static SubstanceColorScheme getLightColorScheme(String name, Color[] colors)
public static SubstanceColorScheme getDarkColorScheme(String name, Color[] colors)
public static SubstanceSkin.ColorSchemes getColorSchemes(URL url)