Browse Source

系列标记点界面

feature/big-screen
Qinghui.Liu 4 years ago
parent
commit
dbcdf85182
  1. 13
      designer-chart/src/main/java/com/fr/van/chart/box/VanChartBoxSeriesPane.java
  2. 6
      designer-chart/src/main/java/com/fr/van/chart/box/data/table/BoxPlotTableDataContentPane.java

13
designer-chart/src/main/java/com/fr/van/chart/box/VanChartBoxSeriesPane.java

@ -18,6 +18,9 @@ import java.awt.Component;
public class VanChartBoxSeriesPane extends VanChartAbstractPlotSeriesPane { public class VanChartBoxSeriesPane extends VanChartAbstractPlotSeriesPane {
private JPanel normalMarker;
private JPanel outlierMarker;
private VanChartMarkerPane normalValuePane; private VanChartMarkerPane normalValuePane;
private VanChartMarkerPane outlierValuePane; private VanChartMarkerPane outlierValuePane;
@ -49,19 +52,21 @@ public class VanChartBoxSeriesPane extends VanChartAbstractPlotSeriesPane {
private JPanel createNormalValuePane() { private JPanel createNormalValuePane() {
normalValuePane = new VanChartMarkerPane(); normalValuePane = new VanChartMarkerPane();
normalMarker = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Engine_Chart_Normal_Value"), normalValuePane);
return TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Engine_Chart_Normal_Value"), normalValuePane); return normalMarker;
} }
private JPanel createOutlierValuePane() { private JPanel createOutlierValuePane() {
outlierValuePane = new VanChartMarkerPane(); outlierValuePane = new VanChartMarkerPane();
outlierMarker = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Engine_Chart_Outlier_Value"), outlierValuePane);
return TableLayout4VanChartHelper.createExpandablePaneWithTitle(Toolkit.i18nText("Fine-Engine_Chart_Outlier_Value"), outlierValuePane); return outlierMarker;
} }
private void checkMarkerPane(boolean isDetailed) { private void checkMarkerPane(boolean isDetailed) {
normalValuePane.setVisible(isDetailed); normalMarker.setVisible(isDetailed);
outlierValuePane.setVisible(isDetailed); outlierMarker.setVisible(isDetailed);
} }
protected void setColorPaneContent(JPanel panel) { protected void setColorPaneContent(JPanel panel) {

6
designer-chart/src/main/java/com/fr/van/chart/box/data/table/BoxPlotTableDataContentPane.java

@ -11,6 +11,7 @@ import com.fr.design.mainframe.chart.gui.ChartDataPane;
import com.fr.design.mainframe.chart.gui.data.ChartDataFilterPane; import com.fr.design.mainframe.chart.gui.data.ChartDataFilterPane;
import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane; import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane;
import com.fr.design.utils.gui.GUICoreUtils; import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.plugin.chart.box.VanChartBoxPlot;
import com.fr.plugin.chart.box.data.VanBoxTableDefinition; import com.fr.plugin.chart.box.data.VanBoxTableDefinition;
import javax.swing.BorderFactory; import javax.swing.BorderFactory;
@ -150,7 +151,10 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane {
VanBoxTableDefinition table = BoxTableDefinitionHelper.getBoxTableDefinition(collection); VanBoxTableDefinition table = BoxTableDefinitionHelper.getBoxTableDefinition(collection);
if (table != null) { if (table != null) {
table.setDetailed(dataType.getSelectedIndex() == 0); boolean isDetailed = dataType.getSelectedIndex() == 0;
table.setDetailed(isDetailed);
((VanChartBoxPlot) initplot).setDetailed(isDetailed);
} }
if (seriesTypeComboxPane != null) { if (seriesTypeComboxPane != null) {
seriesTypeComboxPane.updateBean(collection); seriesTypeComboxPane.updateBean(collection);

Loading…
Cancel
Save