/** * Returns the main disabled color scheme for the specific decoration area * type. Custom painting code that needs to consult the colors of the * specific component should use * {@link #getColorScheme(Component, ComponentState)} method and various * {@link SubstanceColorScheme} methods. * * @param decorationAreaType * Decoration area type. * @return The main disabled color scheme for this skin. * @see #getColorScheme(Component, ComponentState) */ public final SubstanceColorScheme getDisabledColorScheme( DecorationAreaType decorationAreaType) { if (this.colorSchemeBundleMap.containsKey(decorationAreaType)) return this.colorSchemeBundleMap.get(decorationAreaType) .getDisabledColorScheme(); return this.colorSchemeBundleMap.get(DecorationAreaType.NONE) .getDisabledColorScheme(); }
/** * Returns the main disabled color scheme for the specific decoration area * type. Custom painting code that needs to consult the colors of the * specific component should use * {@link #getColorScheme(Component, ComponentState)} method and various * {@link SubstanceColorScheme} methods. * * @param decorationAreaType * Decoration area type. * @return The main disabled color scheme for this skin. * @see #getColorScheme(Component, ComponentState) */ public final SubstanceColorScheme getDisabledColorScheme( DecorationAreaType decorationAreaType) { if (this.colorSchemeBundleMap.containsKey(decorationAreaType)) return this.colorSchemeBundleMap.get(decorationAreaType) .getDisabledColorScheme(); return this.colorSchemeBundleMap.get(DecorationAreaType.NONE) .getDisabledColorScheme(); }