|
|
@ -34,7 +34,7 @@ import java.awt.image.BufferedImage; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class ChartColorAdjustPane extends JPanel implements UIObserver { |
|
|
|
public class ChartColorAdjustPane extends JPanel implements UIObserver { |
|
|
|
|
|
|
|
|
|
|
|
public static final Color[] defaultColors = { |
|
|
|
public static final Color[] DEFAULT_COLORS = { |
|
|
|
new Color(99, 178, 238), |
|
|
|
new Color(99, 178, 238), |
|
|
|
new Color(118, 218, 145), |
|
|
|
new Color(118, 218, 145), |
|
|
|
new Color(248, 203, 127), |
|
|
|
new Color(248, 203, 127), |
|
|
@ -61,7 +61,7 @@ public class ChartColorAdjustPane extends JPanel implements UIObserver { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ChartColorAdjustPane() { |
|
|
|
public ChartColorAdjustPane() { |
|
|
|
this(defaultColors); |
|
|
|
this(DEFAULT_COLORS); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ChartColorAdjustPane(Color[] colors) { |
|
|
|
public ChartColorAdjustPane(Color[] colors) { |
|
|
@ -71,7 +71,7 @@ public class ChartColorAdjustPane extends JPanel implements UIObserver { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void updateColor() { |
|
|
|
public void updateColor() { |
|
|
|
updateColor(defaultColors); |
|
|
|
updateColor(DEFAULT_COLORS); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void updateColor(Color[] colors) { |
|
|
|
public void updateColor(Color[] colors) { |
|
|
|