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; + } +}