Browse Source

继承接口。

master
mengao 8 years ago
parent
commit
3d78a5a8aa
  1. 56
      designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI4Custom.java

56
designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI4Custom.java

@ -23,72 +23,46 @@ public abstract class AbstractIndependentChartUI4Custom implements IndependentCh
int CURRENT_API_LEVEL = 3; int CURRENT_API_LEVEL = 3;
@Override @Override
public AbstractTableDataContentPane getTableDataSourcePane(Plot plot, ChartDataPane parent) { public AbstractTableDataContentPane getTableDataSourcePane(Plot plot, ChartDataPane parent) {
return new PiePlotTableDataContentPane(parent); return null;
} }
@Override @Override
public AbstractReportDataContentPane getReportDataSourcePane(Plot plot, ChartDataPane parent) { public AbstractReportDataContentPane getReportDataSourcePane(Plot plot, ChartDataPane parent) {
return new PiePlotReportDataContentPane(parent); return null;
} }
@Override
public ConditionAttributesPane getPlotConditionPane(Plot plot){
return new DataSeriesConditionPane();
}
@Override
public BasicBeanPane<Plot> getPlotSeriesPane(ChartStylePane parent, Plot plot){ public BasicBeanPane<Plot> getPlotSeriesPane(ChartStylePane parent, Plot plot){
return getPlotSeriesPane(); return getPlotSeriesPane();
} }
// @Override public BasicBeanPane<Plot> getPlotSeriesPane(){
// public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener) { return null;
// return null; }
// }
public boolean equals(Object obj) {
return obj != null && ComparatorUtils.equals(obj.getClass(), this.getClass());
}
// public abstract BasicBeanPane getChartConfigPane(); public ConditionAttributesPane getPlotConditionPane(Plot plot){
return new DataSeriesConditionPane();
}
@Override @Override
public ChartDataPane getChartDataPane(AttributeChangeListener listener) { public ChartDataPane getChartDataPane(AttributeChangeListener listener) {
return new ChartDataPane(listener); return new ChartDataPane(listener);
} }
public BasicBeanPane<Plot> getPlotSeriesPane(){
return new BasicBeanPane<Plot>() {
@Override
public void populateBean(Plot ob) {
}
@Override
public Plot updateBean() {
return null;
}
@Override
protected String title4PopupWindow() {
return null;
}
};
}
@Override @Override
public boolean isUseDefaultPane(){ public boolean isUseDefaultPane(){
return false; return false;
} }
public boolean equals(Object obj) {
return obj != null && ComparatorUtils.equals(obj.getClass(), this.getClass());
}
@Override @Override
public String getIconPath() { public String getIconPath() {
return "com/fr/design/images/form/toolbar/ChartF-Pie.png"; return "com/fr/solution/plugin/chart/echarts/pie/images/pie.png";
} }
@Override @Override
@ -105,10 +79,6 @@ public abstract class AbstractIndependentChartUI4Custom implements IndependentCh
return CURRENT_API_LEVEL; return CURRENT_API_LEVEL;
} }
} }
/**
* 是否使用默认的界面为了避免界面来回切换
* @return 是否使用默认的界面
*/

Loading…
Cancel
Save