@ -1,5 +1,6 @@
package com.fr.design.mainframe.theme.edit.chart ;
package com.fr.design.mainframe.theme.edit.chart ;
import com.fr.base.FineColor ;
import com.fr.base.theme.settings.ThemedChartStyle ;
import com.fr.base.theme.settings.ThemedChartStyle ;
import com.fr.design.gui.ibutton.UIButtonGroup ;
import com.fr.design.gui.ibutton.UIButtonGroup ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.gui.ilable.UILabel ;
@ -7,12 +8,12 @@ import com.fr.design.i18n.Toolkit;
import com.fr.design.mainframe.theme.dialog.TemplateThemeProfileDialog ;
import com.fr.design.mainframe.theme.dialog.TemplateThemeProfileDialog ;
import com.fr.design.style.background.gradient.FixedGradientBar ;
import com.fr.design.style.background.gradient.FixedGradientBar ;
import java.util.List ;
import java.awt.Color ;
import java.awt.Color ;
import java.awt.Component ;
import java.awt.Component ;
import java.awt.Dimension ;
import java.awt.Dimension ;
import java.awt.event.ActionEvent ;
import java.awt.event.ActionEvent ;
import java.awt.event.ActionListener ;
import java.awt.event.ActionListener ;
import java.util.List ;
/ * *
/ * *
* @author Bjorn
* @author Bjorn
@ -66,7 +67,7 @@ public class ChartSeriesStylePane extends AbstractChartStylePane {
if ( chartStyle . getThemedChartSeriesColor ( ) . isCombineColor ( ) ) {
if ( chartStyle . getThemedChartSeriesColor ( ) . isCombineColor ( ) ) {
List < Color > editingColorScheme = TemplateThemeProfileDialog . getEditingColorScheme ( ) ;
List < Color > editingColorScheme = TemplateThemeProfileDialog . getEditingColorScheme ( ) ;
colorTypeButton . setSelectedIndex ( 0 ) ;
colorTypeButton . setSelectedIndex ( 0 ) ;
gradientBar . updateColor ( editingColorScheme . get ( 0 ) , editingColorScheme . get ( 1 ) ) ;
gradientBar . updateColor ( new FineColor ( 0 , 0 , editingColorScheme . get ( 0 ) ) , new FineColor ( 1 , 0 , editingColorScheme . get ( 1 ) ) ) ;
} else {
} else {
colorTypeButton . setSelectedIndex ( 1 ) ;
colorTypeButton . setSelectedIndex ( 1 ) ;
gradientBar . updateColor ( chartStyle . getThemedChartSeriesColor ( ) . getBeginColor ( ) , chartStyle . getThemedChartSeriesColor ( ) . getEndColor ( ) ) ;
gradientBar . updateColor ( chartStyle . getThemedChartSeriesColor ( ) . getBeginColor ( ) , chartStyle . getThemedChartSeriesColor ( ) . getEndColor ( ) ) ;