|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
package com.fr.van.chart.gauge; |
|
|
|
|
|
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.chartx.AbstractVanSingleDataPane; |
|
|
|
@ -22,7 +21,6 @@ import com.fr.design.mainframe.chart.gui.data.table.CategoryPlotTableDataContent
|
|
|
|
|
import com.fr.design.mainframe.chart.gui.data.table.MeterPlotTableDataContentPane; |
|
|
|
|
import com.fr.design.mainframe.chart.gui.type.AbstractChartTypePane; |
|
|
|
|
import com.fr.plugin.chart.gauge.VanChartGaugePlot; |
|
|
|
|
import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
|
import com.fr.van.chart.custom.component.CategoryCustomPlotTableDataContentPane; |
|
|
|
|
import com.fr.van.chart.custom.component.MeterCustomPlotReportDataContentPane; |
|
|
|
|
import com.fr.van.chart.custom.component.MeterCustomPlotTableDataContentPane; |
|
|
|
@ -104,6 +102,7 @@ public class GaugeIndependentVanChartInterface extends AbstractIndependentVanCha
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 图表的属性界面数组 |
|
|
|
|
* |
|
|
|
|
* @return 属性界面 |
|
|
|
|
*/ |
|
|
|
|
public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener) { |
|
|
|
@ -119,25 +118,12 @@ public class GaugeIndependentVanChartInterface extends AbstractIndependentVanCha
|
|
|
|
|
@Override |
|
|
|
|
public ChartDataPane getChartDataPane(AttributeChangeListener listener) { |
|
|
|
|
return new AbstractVanSingleDataPane(listener) { |
|
|
|
|
|
|
|
|
|
private VanChartGaugePlot gaugePlot; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void populate(ChartCollection collection) { |
|
|
|
|
if (collection == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
VanChart chart = collection.getSelectedChartProvider(VanChart.class); |
|
|
|
|
if (chart == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
gaugePlot = chart.getPlot(); |
|
|
|
|
|
|
|
|
|
super.populate(collection); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected SingleDataPane createSingleDataPane() { |
|
|
|
|
VanChartGaugePlot gaugePlot = null; |
|
|
|
|
if (getVanChart() != null) { |
|
|
|
|
gaugePlot = getVanChart().getPlot(); |
|
|
|
|
} |
|
|
|
|
if (gaugePlot != null && !gaugePlot.isMultiPointer()) { |
|
|
|
|
return new SingleDataPane(new GaugeDataSetFieldsPane(), new GaugeCellDataFieldsPane()); |
|
|
|
|
} |
|
|
|
|