|
|
@ -6,6 +6,7 @@ import com.fr.base.chart.chartdata.model.NormalDataModel; |
|
|
|
import com.fr.chart.base.AttrAlpha; |
|
|
|
import com.fr.chart.base.AttrAlpha; |
|
|
|
import com.fr.chart.base.AttrBorder; |
|
|
|
import com.fr.chart.base.AttrBorder; |
|
|
|
import com.fr.chart.base.ChartConstants; |
|
|
|
import com.fr.chart.base.ChartConstants; |
|
|
|
|
|
|
|
import com.fr.chart.base.GradientStyle; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
import com.fr.design.gui.frpane.UINumberDragPane; |
|
|
|
import com.fr.design.gui.frpane.UINumberDragPane; |
|
|
@ -22,6 +23,7 @@ import com.fr.plugin.chart.base.AttrLabel; |
|
|
|
import com.fr.plugin.chart.base.VanChartAttrLine; |
|
|
|
import com.fr.plugin.chart.base.VanChartAttrLine; |
|
|
|
import com.fr.plugin.chart.base.VanChartAttrMarker; |
|
|
|
import com.fr.plugin.chart.base.VanChartAttrMarker; |
|
|
|
import com.fr.plugin.chart.base.VanChartAttrTrendLine; |
|
|
|
import com.fr.plugin.chart.base.VanChartAttrTrendLine; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.type.GradientType; |
|
|
|
import com.fr.van.chart.custom.style.VanChartCustomStylePane; |
|
|
|
import com.fr.van.chart.custom.style.VanChartCustomStylePane; |
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
import com.fr.van.chart.designer.component.VanChartAreaSeriesFillColorPane; |
|
|
|
import com.fr.van.chart.designer.component.VanChartAreaSeriesFillColorPane; |
|
|
@ -114,7 +116,7 @@ public abstract class VanChartAbstractPlotSeriesPane extends AbstractPlotSeriesP |
|
|
|
stylePane = createStylePane(); |
|
|
|
stylePane = createStylePane(); |
|
|
|
vanChartFillStylePane = getVanChartFillStylePane(); |
|
|
|
vanChartFillStylePane = getVanChartFillStylePane(); |
|
|
|
if (vanChartFillStylePane != null) { |
|
|
|
if (vanChartFillStylePane != null) { |
|
|
|
panel.add(vanChartFillStylePane, BorderLayout.NORTH); |
|
|
|
panel.add(vanChartFillStylePane, BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
|
setColorPaneContent(panel); |
|
|
|
setColorPaneContent(panel); |
|
|
|
JPanel colorPane = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Design_Chart_Color"), panel); |
|
|
|
JPanel colorPane = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Design_Chart_Color"), panel); |
|
|
@ -122,10 +124,16 @@ public abstract class VanChartAbstractPlotSeriesPane extends AbstractPlotSeriesP |
|
|
|
return panel.getComponentCount() == 0 ? null : colorPane; |
|
|
|
return panel.getComponentCount() == 0 ? null : colorPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//设置色彩面板内容
|
|
|
|
//设置色彩面板内容: 风格居上,配色居中,不透明度居下
|
|
|
|
protected void setColorPaneContent(JPanel panel) { |
|
|
|
protected void setColorPaneContent(JPanel panel) { |
|
|
|
if (stylePane != null) { |
|
|
|
if (stylePane != null) { |
|
|
|
panel.add(stylePane, BorderLayout.CENTER); |
|
|
|
panel.add(stylePane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void checkFillStylePane(GradientStyle gradientStyle) { |
|
|
|
|
|
|
|
if (vanChartFillStylePane != null) { |
|
|
|
|
|
|
|
vanChartFillStylePane.setVisible(gradientStyle.getGradientType() != GradientType.CUSTOM); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -276,7 +284,9 @@ public abstract class VanChartAbstractPlotSeriesPane extends AbstractPlotSeriesP |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (stylePane != null) {//风格
|
|
|
|
if (stylePane != null) {//风格
|
|
|
|
stylePane.populateBean(((VanChartPlot)plot).getGradientStyle()); |
|
|
|
GradientStyle gradientStyle = ((VanChartPlot) plot).getGradientStyle(); |
|
|
|
|
|
|
|
stylePane.populateBean(gradientStyle); |
|
|
|
|
|
|
|
checkFillStylePane(gradientStyle); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//大数据模式 恢复用注释。下面3行删除。
|
|
|
|
//大数据模式 恢复用注释。下面3行删除。
|
|
|
@ -335,7 +345,9 @@ public abstract class VanChartAbstractPlotSeriesPane extends AbstractPlotSeriesP |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (stylePane != null) {//风格
|
|
|
|
if (stylePane != null) {//风格
|
|
|
|
((VanChartPlot)plot).setGradientStyle(stylePane.updateBean()); |
|
|
|
GradientStyle gradientStyle = stylePane.updateBean(); |
|
|
|
|
|
|
|
((VanChartPlot) plot).setGradientStyle(gradientStyle); |
|
|
|
|
|
|
|
checkFillStylePane(gradientStyle); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//大数据模式 恢复用注释。下面3行删除。
|
|
|
|
//大数据模式 恢复用注释。下面3行删除。
|
|
|
|