|
|
@ -12,8 +12,6 @@ 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.data.VanBoxTableDefinition; |
|
|
|
import com.fr.plugin.chart.box.data.VanBoxTableDefinition; |
|
|
|
import com.fr.plugin.chart.box.data.VanBoxTableDefinitionHelper; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.box.data.VanBoxTableResultDefinition; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
@ -31,6 +29,7 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
private BoxPlotTableSeriesTypeUsePane seriesTypeComboxPane; |
|
|
|
private BoxPlotTableSeriesTypeUsePane seriesTypeComboxPane; |
|
|
|
private BoxPlotTableResultDataSeriesPane resultDataSeriesPane; |
|
|
|
private BoxPlotTableResultDataSeriesPane resultDataSeriesPane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private JPanel filterPane; |
|
|
|
private ChartDataFilterPane dataScreeningPane; |
|
|
|
private ChartDataFilterPane dataScreeningPane; |
|
|
|
|
|
|
|
|
|
|
|
private ChartDataPane parent; |
|
|
|
private ChartDataPane parent; |
|
|
@ -88,10 +87,10 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
dataScreeningPane = new ChartDataFilterPane(initplot, parent, false); |
|
|
|
dataScreeningPane = new ChartDataFilterPane(initplot, parent, false); |
|
|
|
dataScreeningPane.setBorder(BorderFactory.createEmptyBorder(10, 24, 10, 15)); |
|
|
|
dataScreeningPane.setBorder(BorderFactory.createEmptyBorder(10, 24, 10, 15)); |
|
|
|
|
|
|
|
|
|
|
|
JPanel panel = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Chart_Data_Filter"), 290, 24, dataScreeningPane); |
|
|
|
filterPane = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Chart_Data_Filter"), 290, 24, dataScreeningPane); |
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5)); |
|
|
|
filterPane.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5)); |
|
|
|
|
|
|
|
|
|
|
|
return panel; |
|
|
|
return filterPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initDataTypeListener() { |
|
|
|
private void initDataTypeListener() { |
|
|
@ -109,6 +108,10 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
if (resultDataSeriesPane != null) { |
|
|
|
if (resultDataSeriesPane != null) { |
|
|
|
resultDataSeriesPane.setVisible(dataType.getSelectedIndex() == 1); |
|
|
|
resultDataSeriesPane.setVisible(dataType.getSelectedIndex() == 1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (filterPane != null) { |
|
|
|
|
|
|
|
filterPane.setVisible(dataType.getSelectedIndex() == 0); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void checkBoxUse(boolean hasUse) { |
|
|
|
public void checkBoxUse(boolean hasUse) { |
|
|
@ -144,7 +147,7 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
public void updateBean(ChartCollection collection) { |
|
|
|
public void updateBean(ChartCollection collection) { |
|
|
|
checkChartCollection(collection); |
|
|
|
checkChartCollection(collection); |
|
|
|
|
|
|
|
|
|
|
|
VanBoxTableDefinition table = VanBoxTableDefinitionHelper.getBoxTableDefinition(collection); |
|
|
|
VanBoxTableDefinition table = BoxTableDefinitionHelper.getBoxTableDefinition(collection); |
|
|
|
|
|
|
|
|
|
|
|
if (table != null) { |
|
|
|
if (table != null) { |
|
|
|
table.setDetailed(dataType.getSelectedIndex() == 0); |
|
|
|
table.setDetailed(dataType.getSelectedIndex() == 0); |
|
|
@ -164,7 +167,7 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
checkChartCollection(collection); |
|
|
|
checkChartCollection(collection); |
|
|
|
|
|
|
|
|
|
|
|
if (dataType != null) { |
|
|
|
if (dataType != null) { |
|
|
|
dataType.setSelectedIndex(VanBoxTableDefinitionHelper.isDetailedTableDataType(collection) ? 0 : 1); |
|
|
|
dataType.setSelectedIndex(BoxTableDefinitionHelper.isDetailedTableDataType(collection) ? 0 : 1); |
|
|
|
} |
|
|
|
} |
|
|
|
if (seriesTypeComboxPane != null) { |
|
|
|
if (seriesTypeComboxPane != null) { |
|
|
|
seriesTypeComboxPane.populateBean(collection); |
|
|
|
seriesTypeComboxPane.populateBean(collection); |
|
|
@ -180,7 +183,7 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void checkChartCollection(ChartCollection collection) { |
|
|
|
private void checkChartCollection(ChartCollection collection) { |
|
|
|
VanBoxTableDefinition table = VanBoxTableDefinitionHelper.getBoxTableDefinition(collection); |
|
|
|
VanBoxTableDefinition table = BoxTableDefinitionHelper.getBoxTableDefinition(collection); |
|
|
|
|
|
|
|
|
|
|
|
if (table == null) { |
|
|
|
if (table == null) { |
|
|
|
collection.getSelectedChart().setFilterDefinition(new VanBoxTableDefinition()); |
|
|
|
collection.getSelectedChart().setFilterDefinition(new VanBoxTableDefinition()); |
|
|
@ -188,26 +191,18 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void populateDataScreeningPane(ChartDataFilterPane dataScreeningPane, ChartCollection collection) { |
|
|
|
private void populateDataScreeningPane(ChartDataFilterPane dataScreeningPane, ChartCollection collection) { |
|
|
|
NormalTableDataDefinition detailedDefinition = VanBoxTableDefinitionHelper.getBoxTableDetailedDefinition(collection); |
|
|
|
NormalTableDataDefinition detailedDefinition = BoxTableDefinitionHelper.getBoxTableDetailedDefinition(collection); |
|
|
|
VanBoxTableResultDefinition resultDefinition = VanBoxTableDefinitionHelper.getBoxTableResultDefinition(collection); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (detailedDefinition != null) { |
|
|
|
if (detailedDefinition != null) { |
|
|
|
dataScreeningPane.populateDefinition(detailedDefinition, false); |
|
|
|
dataScreeningPane.populateDefinition(detailedDefinition, false); |
|
|
|
} else if (resultDefinition != null) { |
|
|
|
|
|
|
|
dataScreeningPane.populateDefinition(resultDefinition, false); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void updateDataScreeningPane(ChartDataFilterPane dataScreeningPane, ChartCollection collection) { |
|
|
|
private void updateDataScreeningPane(ChartDataFilterPane dataScreeningPane, ChartCollection collection) { |
|
|
|
NormalTableDataDefinition detailedDefinition = VanBoxTableDefinitionHelper.getBoxTableDetailedDefinition(collection); |
|
|
|
NormalTableDataDefinition detailedDefinition = BoxTableDefinitionHelper.getBoxTableDetailedDefinition(collection); |
|
|
|
VanBoxTableResultDefinition resultDefinition = VanBoxTableDefinitionHelper.getBoxTableResultDefinition(collection); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (detailedDefinition != null) { |
|
|
|
if (detailedDefinition != null) { |
|
|
|
dataScreeningPane.updateDefinition(detailedDefinition); |
|
|
|
dataScreeningPane.updateDefinition(detailedDefinition); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (resultDefinition != null) { |
|
|
|
|
|
|
|
dataScreeningPane.updateDefinition(resultDefinition); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |