Browse Source

为大数据提供创建条件属性面板的接口

master
xiaohu 9 years ago
parent
commit
fd07ca6ae0
  1. 5
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java
  2. 8
      designer_chart/src/com/fr/design/chart/fun/IndependentChartUIProvider.java
  3. 5
      designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java

5
designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

@ -159,6 +159,11 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
return chartTypeInterfaces.get(plot.getPlotID()).getPlotConditionPane(plot); return chartTypeInterfaces.get(plot.getPlotID()).getPlotConditionPane(plot);
} }
//大数据需要通过chart判断
public ConditionAttributesPane getPlotConditionPane(Chart chart) {
return chartTypeInterfaces.get(chart.getPlot().getPlotID()).getPlotConditionPane(chart);
}
public BasicBeanPane<Plot> getPlotSeriesPane(ChartStylePane parent, Plot plot) { public BasicBeanPane<Plot> getPlotSeriesPane(ChartStylePane parent, Plot plot) {
return chartTypeInterfaces.get(plot.getPlotID()).getPlotSeriesPane(parent, plot); return chartTypeInterfaces.get(plot.getPlotID()).getPlotSeriesPane(parent, plot);
} }

8
designer_chart/src/com/fr/design/chart/fun/IndependentChartUIProvider.java

@ -1,5 +1,6 @@
package com.fr.design.chart.fun; package com.fr.design.chart.fun;
import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.condition.ConditionAttributesPane; import com.fr.design.condition.ConditionAttributesPane;
@ -53,6 +54,13 @@ public interface IndependentChartUIProvider extends Level {
*/ */
ConditionAttributesPane getPlotConditionPane(Plot plot); ConditionAttributesPane getPlotConditionPane(Plot plot);
/**
* 条件属性界面
*
* @return 条件属性界面
*/
ConditionAttributesPane getPlotConditionPane(Chart chart);
/** /**
* 系列界面 * 系列界面
* *

5
designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java

@ -1,5 +1,6 @@
package com.fr.design.chart.fun.impl; package com.fr.design.chart.fun.impl;
import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.chart.fun.IndependentChartUIProvider; import com.fr.design.chart.fun.IndependentChartUIProvider;
@ -46,4 +47,8 @@ public abstract class AbstractIndependentChartUIWithAPILevel implements Independ
public ConditionAttributesPane getPlotConditionPane(Plot plot){ public ConditionAttributesPane getPlotConditionPane(Plot plot){
return new DataSeriesConditionPane(); return new DataSeriesConditionPane();
} }
public ConditionAttributesPane getPlotConditionPane(Chart chart){
return null;
}
} }

Loading…
Cancel
Save