/** * Returns the main active 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 active color scheme for this skin. * @see #getColorScheme(Component, ComponentState) */ public final SubstanceColorScheme getActiveColorScheme( DecorationAreaType decorationAreaType) { if (this.colorSchemeBundleMap.containsKey(decorationAreaType)) return this.colorSchemeBundleMap.get(decorationAreaType) .getActiveColorScheme(); return this.colorSchemeBundleMap.get(DecorationAreaType.NONE) .getActiveColorScheme(); }
/** * Returns the main active 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 active color scheme for this skin. * @see #getColorScheme(Component, ComponentState) */ public final SubstanceColorScheme getActiveColorScheme( DecorationAreaType decorationAreaType) { if (this.colorSchemeBundleMap.containsKey(decorationAreaType)) return this.colorSchemeBundleMap.get(decorationAreaType) .getActiveColorScheme(); return this.colorSchemeBundleMap.get(DecorationAreaType.NONE) .getActiveColorScheme(); }