Browse Source

bug90361:3d圆环图系列界面

master
fr_shine 9 years ago
parent
commit
5b782967bc
  1. 5
      designer_chart/src/com/fr/design/chartinterface/DonutIndependentChartInterface.java
  2. 24
      designer_chart/src/com/fr/design/mainframe/chart/gui/style/series/Donut3DSeriesPane.java

5
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<Plot> 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();
}

24
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;
}
}
Loading…
Cancel
Save