Class SubstanceColorSchemeUtilities
java.lang.Object
org.pushingpixels.substance.internal.utils.SubstanceColorSchemeUtilities
Utilities related to color schemes. This class is for internal use only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SubstanceColorSchemeUsed as reference to the green color scheme.static final SubstanceSkinMetallic skin.static final SubstanceColorSchemeUsed as reference in attention-drawing animations.static final SubstanceColorSchemeUsed as reference in attention-drawing animations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubstanceColorSchemegetActiveColorScheme(Component component, ComponentState componentState) Returns the color scheme of the component.static floatgetAlpha(Component component, ComponentState componentState) Returns the alpha channel of the color scheme of the component.static SchemeBaseColorsstatic SubstanceColorSchemegetColorScheme(Component component, ColorSchemeAssociationKind associationKind, ComponentState componentState) Returns the color scheme of the component.static SubstanceColorSchemegetColorScheme(Component component, ComponentState componentState) Returns the color scheme of the specified component.static SubstanceColorSchemegetColorScheme(JTabbedPane jtp, int tabIndex, ColorSchemeAssociationKind associationKind, ComponentState componentState) Returns the color scheme of the specified tabbed pane tab.static SubstanceSkin.ColorSchemesgetColorSchemes(URL url) static SubstanceColorSchemegetDarkColorScheme(String name, Color[] colors) static floatgetHighlightAlpha(Component component, ComponentState componentState) Returns the alpha channel of the highlight color scheme of the component.static SubstanceColorSchemegetLightColorScheme(String name, Color[] colors)
-
Field Details
-
METALLIC_SKIN
Metallic skin. -
YELLOW
Used as reference in attention-drawing animations. This field is for internal use only. -
ORANGE
Used as reference in attention-drawing animations. This field is for internal use only. -
GREEN
Used as reference to the green color scheme. This field is for internal use only.
-
-
Constructor Details
-
SubstanceColorSchemeUtilities
public SubstanceColorSchemeUtilities()
-
-
Method Details
-
getColorScheme
public static SubstanceColorScheme getColorScheme(JTabbedPane jtp, int tabIndex, ColorSchemeAssociationKind associationKind, ComponentState componentState) Returns the color scheme of the specified tabbed pane tab.- Parameters:
jtp- Tabbed pane.tabIndex- Tab index.componentState- Tab component state.- Returns:
- The color scheme of the specified tabbed pane tab.
-
getColorScheme
public static SubstanceColorScheme getColorScheme(Component component, ComponentState componentState) Returns the color scheme of the specified component.- Parameters:
component- Component.componentState- Component state.- Returns:
- Component color scheme.
-
getColorScheme
public static SubstanceColorScheme getColorScheme(Component component, ColorSchemeAssociationKind associationKind, ComponentState componentState) Returns the color scheme of the component.- Parameters:
component- Component.associationKind- Association kind.componentState- Component state.- Returns:
- Component color scheme.
-
getActiveColorScheme
public static SubstanceColorScheme getActiveColorScheme(Component component, ComponentState componentState) Returns the color scheme of the component.- Parameters:
component- Component.componentState- Component state.- Returns:
- Component color scheme.
-
getHighlightAlpha
Returns the alpha channel of the highlight color scheme of the component.- Parameters:
component- Component.componentState- Component state.- Returns:
- Highlight color scheme alpha channel.
-
getAlpha
Returns the alpha channel of the color scheme of the component.- Parameters:
component- Component.componentState- Component state.- Returns:
- Color scheme alpha channel.
-
getBaseColorScheme
-
getLightColorScheme
-
getDarkColorScheme
-
getColorSchemes
-