From 5b782967bce2a0758d579efaa8d95b7714be0c27 Mon Sep 17 00:00:00 2001 From: fr_shine Date: Tue, 5 Apr 2016 11:01:56 +0800 Subject: [PATCH] =?UTF-8?q?bug90361=EF=BC=9A3d=E5=9C=86=E7=8E=AF=E5=9B=BE?= =?UTF-8?q?=E7=B3=BB=E5=88=97=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DonutIndependentChartInterface.java | 5 ++-- .../gui/style/series/Donut3DSeriesPane.java | 24 +++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 designer_chart/src/com/fr/design/mainframe/chart/gui/style/series/Donut3DSeriesPane.java diff --git a/designer_chart/src/com/fr/design/chartinterface/DonutIndependentChartInterface.java b/designer_chart/src/com/fr/design/chartinterface/DonutIndependentChartInterface.java index fa9d537c6c..96235ed20f 100644 --- a/designer_chart/src/com/fr/design/chartinterface/DonutIndependentChartInterface.java +++ b/designer_chart/src/com/fr/design/chartinterface/DonutIndependentChartInterface.java @@ -13,6 +13,7 @@ import com.fr.design.mainframe.chart.gui.data.report.CategoryPlotReportDataConte import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane; import com.fr.design.mainframe.chart.gui.data.table.CategoryPlotTableDataContentPane; import com.fr.design.mainframe.chart.gui.style.series.Donut2DSeriesPane; +import com.fr.design.mainframe.chart.gui.style.series.Donut3DSeriesPane; import com.fr.design.mainframe.chart.gui.type.AbstractChartTypePane; import com.fr.design.mainframe.chart.gui.type.DonutPlotPane; @@ -34,9 +35,9 @@ public class DonutIndependentChartInterface extends AbstractIndependentChartUIWi } public BasicBeanPane getPlotSeriesPane(ChartStylePane parent, Plot plot){ - return plot.isSupport3D() ? null : new Donut2DSeriesPane(parent, plot); + return plot.isSupport3D() ? new Donut3DSeriesPane(parent, plot) : new Donut2DSeriesPane(parent, plot); } - + public ConditionAttributesPane getPlotConditionPane(Plot plot){ return plot.isSupport3D() ? new DataSeriesConditionPane() : new Donut2DPlotDataSeriesConditionPane(); } diff --git a/designer_chart/src/com/fr/design/mainframe/chart/gui/style/series/Donut3DSeriesPane.java b/designer_chart/src/com/fr/design/mainframe/chart/gui/style/series/Donut3DSeriesPane.java new file mode 100644 index 0000000000..184bdc2d31 --- /dev/null +++ b/designer_chart/src/com/fr/design/mainframe/chart/gui/style/series/Donut3DSeriesPane.java @@ -0,0 +1,24 @@ +package com.fr.design.mainframe.chart.gui.style.series; + +import com.fr.chart.chartattr.Plot; +import com.fr.design.mainframe.chart.gui.ChartStylePane; + +import javax.swing.*; + +/** + * Created by Mitisky on 16/4/5. + */ +public class Donut3DSeriesPane extends AbstractPlotSeriesPane { + public Donut3DSeriesPane(ChartStylePane parent, Plot plot) { + super(parent, plot); + } + + + /** + * 在每个不同类型Plot, 得到不同类型的属性. 比如: 柱形的风格, 折线的线型曲线. + */ + @Override + protected JPanel getContentInPlotType() { + return null; + } +}