|
|
@ -12,6 +12,7 @@ import com.fr.design.style.background.gradient.FixedGradientBar; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.CardLayout; |
|
|
|
import java.awt.CardLayout; |
|
|
@ -25,6 +26,7 @@ import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 预定义的图表配色界面. |
|
|
|
* 预定义的图表配色界面. |
|
|
|
|
|
|
|
* |
|
|
|
* @author kunsnat E-mail:kunsnat@gmail.com |
|
|
|
* @author kunsnat E-mail:kunsnat@gmail.com |
|
|
|
* @version 创建时间:2013-8-21 下午03:16:27 |
|
|
|
* @version 创建时间:2013-8-21 下午03:16:27 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -131,6 +133,11 @@ public class ChartPreFillStylePane extends BasicBeanPane<ChartColorMatching> { |
|
|
|
|
|
|
|
|
|
|
|
if (colorList.size() > 0) { |
|
|
|
if (colorList.size() > 0) { |
|
|
|
colorAdjustPane.updateColor(colorList.toArray(new Color[colorList.size()])); |
|
|
|
colorAdjustPane.updateColor(colorList.toArray(new Color[colorList.size()])); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
List<Color> resultList = new ArrayList<>(); |
|
|
|
|
|
|
|
Collections.addAll(resultList, ChartColorAdjustPane.DEFAULT_COLORS); |
|
|
|
|
|
|
|
condition.setColorList(resultList); |
|
|
|
|
|
|
|
colorAdjustPane.updateColor(ChartColorAdjustPane.DEFAULT_COLORS); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|