You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.8 KiB
96 lines
2.8 KiB
package com.fr.extended.chart; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
import com.fr.design.beans.BasicBeanPane; |
|
import com.fr.design.chart.fun.IndependentChartUIProvider; |
|
import com.fr.design.condition.ConditionAttributesPane; |
|
import com.fr.design.gui.frpane.AttributeChangeListener; |
|
import com.fr.design.mainframe.chart.AbstractChartAttrPane; |
|
import com.fr.design.mainframe.chart.ChartEditPane; |
|
import com.fr.design.mainframe.chart.ChartsConfigPane; |
|
import com.fr.design.mainframe.chart.gui.ChartDataPane; |
|
import com.fr.design.mainframe.chart.gui.ChartStylePane; |
|
import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPane; |
|
import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane; |
|
import com.fr.design.mainframe.chart.gui.type.AbstractChartTypePane; |
|
import com.fr.stable.StringUtils; |
|
import com.fr.stable.fun.impl.AbstractProvider; |
|
|
|
/** |
|
* Created by shine on 2018/3/2. |
|
*/ |
|
public abstract class AbstractExtendedChartUIProvider extends AbstractProvider implements IndependentChartUIProvider { |
|
|
|
protected abstract AbstractExtendedChartTableDataPane getTableDataSourcePane(); |
|
|
|
protected abstract AbstractReportDataContentPane getReportDataSourcePane(); |
|
|
|
@Override |
|
public boolean needChartChangePane() { |
|
return false; |
|
} |
|
|
|
@Override |
|
public AbstractChartTypePane getPlotTypePane() { |
|
return new ExtendedTypePane(); |
|
} |
|
|
|
@Override |
|
public ChartDataPane getChartDataPane(AttributeChangeListener listener) { |
|
return new ChartDataPane(listener); |
|
} |
|
|
|
@Override |
|
public AbstractTableDataContentPane getTableDataSourcePane(Plot plot, ChartDataPane parent) { |
|
return getTableDataSourcePane(); |
|
} |
|
|
|
@Override |
|
public AbstractReportDataContentPane getReportDataSourcePane(Plot plot, ChartDataPane parent) { |
|
return getReportDataSourcePane(); |
|
} |
|
|
|
@Override |
|
public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener) { |
|
return new AbstractChartAttrPane[0]; |
|
} |
|
|
|
@Override |
|
public boolean isUseDefaultPane() { |
|
return false; |
|
} |
|
|
|
@Override |
|
public int currentAPILevel() { |
|
return CURRENT_API_LEVEL; |
|
} |
|
|
|
@Override |
|
public String mark4Provider() { |
|
return getClass().getName(); |
|
} |
|
|
|
@Override |
|
public ChartEditPane getChartEditPane(String plotID) { |
|
return new ChartEditPane(); |
|
} |
|
|
|
@Override |
|
public ConditionAttributesPane getPlotConditionPane(Plot plot) { |
|
return null; |
|
} |
|
|
|
@Override |
|
public BasicBeanPane<Plot> getPlotSeriesPane(ChartStylePane parent, Plot plot) { |
|
return null; |
|
} |
|
|
|
public String getPlotTypeTitle4PopupWindow(){ |
|
return StringUtils.EMPTY; |
|
} |
|
|
|
@Override |
|
public ChartsConfigPane getChartConfigPane(String plotID) { |
|
return null; |
|
} |
|
}
|
|
|