|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.design.style.color; |
|
|
|
package com.fr.design.style.color; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
|
|
|
import com.fr.chart.base.ChartConstants; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.event.UIObserver; |
|
|
|
import com.fr.design.event.UIObserver; |
|
|
|
import com.fr.design.event.UIObserverListener; |
|
|
|
import com.fr.design.event.UIObserverListener; |
|
|
@ -12,8 +13,6 @@ import javax.swing.JComponent; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Graphics; |
|
|
|
import java.awt.Graphics; |
|
|
@ -23,6 +22,8 @@ import java.awt.event.MouseEvent; |
|
|
|
import java.awt.event.MouseListener; |
|
|
|
import java.awt.event.MouseListener; |
|
|
|
import java.awt.geom.Rectangle2D; |
|
|
|
import java.awt.geom.Rectangle2D; |
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 配色方案选择组合色之后,可以调整颜色的组件 |
|
|
|
* 配色方案选择组合色之后,可以调整颜色的组件 |
|
|
@ -33,18 +34,7 @@ import java.awt.image.BufferedImage; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class ColorAdjustPane extends JPanel implements UIObserver { |
|
|
|
public class ColorAdjustPane extends JPanel implements UIObserver { |
|
|
|
|
|
|
|
|
|
|
|
public static final Color[] DEFAULT_COLORS = { |
|
|
|
public static final Color[] DEFAULT_COLORS = ChartConstants.NEW_FEATURES; |
|
|
|
new Color(99, 178, 238), |
|
|
|
|
|
|
|
new Color(118, 218, 145), |
|
|
|
|
|
|
|
new Color(248, 203, 127), |
|
|
|
|
|
|
|
new Color(248, 149, 136), |
|
|
|
|
|
|
|
new Color(124, 214, 207), |
|
|
|
|
|
|
|
new Color(145, 146, 171), |
|
|
|
|
|
|
|
new Color(120, 152, 225), |
|
|
|
|
|
|
|
new Color(239, 166, 102), |
|
|
|
|
|
|
|
new Color(237, 221, 134), |
|
|
|
|
|
|
|
new Color(153, 135, 206), |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final int COUNT_OF_ROW = 8; |
|
|
|
private static final int COUNT_OF_ROW = 8; |
|
|
|
|
|
|
|
|
|
|
|