Browse Source

CHART-11610 饼图、多指针仪表盘 在组合图中 没有分类配置项

research/11.0
shine 5 years ago
parent
commit
f8031e97cb
  1. 8
      designer-chart/src/main/java/com/fr/design/chartx/CustomChartDataPane.java
  2. 35
      designer-chart/src/main/java/com/fr/design/chartx/fields/diff/SeriesValueCellDataFieldsPane.java
  3. 35
      designer-chart/src/main/java/com/fr/design/chartx/fields/diff/SeriesValueDataSetFieldsPane.java

8
designer-chart/src/main/java/com/fr/design/chartx/CustomChartDataPane.java

@ -9,6 +9,8 @@ import com.fr.design.chartx.fields.diff.MultiCategoryCellDataFieldsPane;
import com.fr.design.chartx.fields.diff.MultiCategoryDataSetFieldsPane; import com.fr.design.chartx.fields.diff.MultiCategoryDataSetFieldsPane;
import com.fr.design.chartx.fields.diff.ScatterCellDataFieldsPane; import com.fr.design.chartx.fields.diff.ScatterCellDataFieldsPane;
import com.fr.design.chartx.fields.diff.ScatterDataSetFieldsPane; import com.fr.design.chartx.fields.diff.ScatterDataSetFieldsPane;
import com.fr.design.chartx.fields.diff.SeriesValueCellDataFieldsPane;
import com.fr.design.chartx.fields.diff.SeriesValueDataSetFieldsPane;
import com.fr.design.chartx.fields.diff.SingleCategoryCellDataFieldsPane; import com.fr.design.chartx.fields.diff.SingleCategoryCellDataFieldsPane;
import com.fr.design.chartx.fields.diff.SingleCategoryDataSetFieldsPane; import com.fr.design.chartx.fields.diff.SingleCategoryDataSetFieldsPane;
import com.fr.design.chartx.single.SingleDataPane; import com.fr.design.chartx.single.SingleDataPane;
@ -92,6 +94,12 @@ public class CustomChartDataPane extends ChartDataPane {
case SCATTER: case SCATTER:
case BUBBLE: case BUBBLE:
return new SingleDataPane(new ScatterDataSetFieldsPane(), new ScatterCellDataFieldsPane()); return new SingleDataPane(new ScatterDataSetFieldsPane(), new ScatterCellDataFieldsPane());
case PIE:
case SAME_PIE:
case DIFFERENT_PIE:
case POINTER_180:
case POINTER_360:
return new SingleDataPane(new SeriesValueDataSetFieldsPane(), new SeriesValueCellDataFieldsPane());
default: default:
return StringUtils.equals(CustomStyle.CUSTOM.toString(), plot.getCustomType()) ? return StringUtils.equals(CustomStyle.CUSTOM.toString(), plot.getCustomType()) ?
new SingleDataPane(new SingleCategoryDataSetFieldsPane(), new SingleCategoryCellDataFieldsPane()) : new SingleDataPane(new SingleCategoryDataSetFieldsPane(), new SingleCategoryCellDataFieldsPane()) :

35
designer-chart/src/main/java/com/fr/design/chartx/fields/diff/SeriesValueCellDataFieldsPane.java

@ -0,0 +1,35 @@
package com.fr.design.chartx.fields.diff;
import com.fr.chartx.data.field.diff.ColumnFieldCollectionWithSeriesValue;
import com.fr.design.formula.TinyFormulaPane;
/**
* @author shine
* @version 10.0
* Created by shine on 2019/11/28
* <p>
* 饼图多指针仪表盘 在组合图中 没有分类配置项
*/
public class SeriesValueCellDataFieldsPane extends AbstractCellDataFieldsWithSeriesValuePane<ColumnFieldCollectionWithSeriesValue> {
@Override
protected String[] fieldLabels() {
return new String[0];
}
@Override
protected TinyFormulaPane[] formulaPanes() {
return new TinyFormulaPane[0];
}
@Override
public void populateBean(ColumnFieldCollectionWithSeriesValue ob) {
populateSeriesValuePane(ob);
}
@Override
public ColumnFieldCollectionWithSeriesValue updateBean() {
ColumnFieldCollectionWithSeriesValue columnFieldCollectionWithSeriesValue = new ColumnFieldCollectionWithSeriesValue();
updateSeriesValuePane(columnFieldCollectionWithSeriesValue);
return columnFieldCollectionWithSeriesValue;
}
}

35
designer-chart/src/main/java/com/fr/design/chartx/fields/diff/SeriesValueDataSetFieldsPane.java

@ -0,0 +1,35 @@
package com.fr.design.chartx.fields.diff;
import com.fr.chartx.data.field.diff.ColumnFieldCollectionWithSeriesValue;
import com.fr.design.gui.icombobox.UIComboBox;
/**
* @author shine
* @version 10.0
* Created by shine on 2019/11/28
* <p>
* 饼图多指针仪表盘 在组合图中 没有分类配置项
*/
public class SeriesValueDataSetFieldsPane extends AbstractDataSetFieldsWithSeriesValuePane<ColumnFieldCollectionWithSeriesValue> {
@Override
protected String[] fieldLabels() {
return new String[0];
}
@Override
protected UIComboBox[] filedComboBoxes() {
return new UIComboBox[0];
}
@Override
public void populateBean(ColumnFieldCollectionWithSeriesValue ob) {
populateSeriesValuePane(ob);
}
@Override
public ColumnFieldCollectionWithSeriesValue updateBean() {
ColumnFieldCollectionWithSeriesValue columnFieldCollectionWithSeriesValue = new ColumnFieldCollectionWithSeriesValue();
updateSeriesValuePane(columnFieldCollectionWithSeriesValue);
return columnFieldCollectionWithSeriesValue;
}
}
Loading…
Cancel
Save