|
|
@ -1,5 +1,8 @@ |
|
|
|
package com.fr.van.chart.box.data.table; |
|
|
|
package com.fr.van.chart.box.data.table; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Column; |
|
|
|
|
|
|
|
import com.fine.theme.utils.FineLayoutBuilder; |
|
|
|
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartdata.NormalTableDataDefinition; |
|
|
|
import com.fr.chart.chartdata.NormalTableDataDefinition; |
|
|
@ -23,6 +26,8 @@ import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.column; |
|
|
|
|
|
|
|
|
|
|
|
public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
|
|
|
|
|
|
|
|
private UIButtonGroup dataType; |
|
|
|
private UIButtonGroup dataType; |
|
|
@ -51,47 +56,30 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createDataTypePane() { |
|
|
|
private JPanel createDataTypePane() { |
|
|
|
JPanel pane = new JPanel(new BorderLayout(4, 0)); |
|
|
|
|
|
|
|
pane.setBorder(BorderFactory.createMatteBorder(0, 0, 6, 1, getBackground())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UILabel label = new UILabel(Toolkit.i18nText("Fine-Design_Chart_Data_Form")); |
|
|
|
UILabel label = new UILabel(Toolkit.i18nText("Fine-Design_Chart_Data_Form")); |
|
|
|
label.setPreferredSize(new Dimension(ChartDataPane.LABEL_WIDTH, ChartDataPane.LABEL_HEIGHT)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String[] names = new String[]{ |
|
|
|
String[] names = new String[]{ |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Detailed_Data"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Detailed_Data"), |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Result_Data") |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Result_Data") |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
dataType = new UIButtonGroup(names); |
|
|
|
dataType = new UIButtonGroup(names); |
|
|
|
dataType.setSelectedIndex(0); |
|
|
|
dataType.setSelectedIndex(0); |
|
|
|
dataType.setPreferredSize(new Dimension(100, 20)); |
|
|
|
return FineLayoutBuilder.createHorizontalLayout(0, new double[]{1.2, 3}, label, dataType); |
|
|
|
|
|
|
|
|
|
|
|
pane.add(GUICoreUtils.createBorderLayoutPane(new Component[]{dataType, null, null, label, null})); |
|
|
|
|
|
|
|
pane.setPreferredSize(new Dimension(246, 30)); |
|
|
|
|
|
|
|
pane.setBorder(BorderFactory.createEmptyBorder(0, 24, 10, 15)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return pane; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createSeriesPane() { |
|
|
|
private JPanel createSeriesPane() { |
|
|
|
seriesTypeComboxPane = new BoxPlotTableSeriesTypeUsePane(); |
|
|
|
seriesTypeComboxPane = new BoxPlotTableSeriesTypeUsePane(); |
|
|
|
resultDataSeriesPane = new BoxPlotTableResultDataSeriesPane(); |
|
|
|
resultDataSeriesPane = new BoxPlotTableResultDataSeriesPane(); |
|
|
|
|
|
|
|
Column column = new Column(); |
|
|
|
JPanel pane = new JPanel(new BorderLayout(4, 0)); |
|
|
|
column.setBorder(new ScaledEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
|
|
|
column.setSpacing(10); |
|
|
|
pane.add(seriesTypeComboxPane, BorderLayout.CENTER); |
|
|
|
column.add(seriesTypeComboxPane); |
|
|
|
pane.add(resultDataSeriesPane, BorderLayout.SOUTH); |
|
|
|
column.add(resultDataSeriesPane); |
|
|
|
|
|
|
|
return column; |
|
|
|
return pane; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createFilterPane() { |
|
|
|
private JPanel createFilterPane() { |
|
|
|
dataScreeningPane = new ChartDataFilterPane(initplot, parent, false); |
|
|
|
dataScreeningPane = new ChartDataFilterPane(initplot, parent, false); |
|
|
|
dataScreeningPane.setBorder(BorderFactory.createEmptyBorder(10, 24, 10, 15)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
filterPane = 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); |
|
|
|
filterPane.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return filterPane; |
|
|
|
return filterPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|