@ -1,5 +1,8 @@
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.Plot ;
import com.fr.chart.chartdata.NormalTableDataDefinition ;
@ -23,6 +26,8 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener ;
import java.util.List ;
import static com.fine.swing.ui.layout.Layouts.column ;
public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane {
private UIButtonGroup dataType ;
@ -51,47 +56,30 @@ public class BoxPlotTableDataContentPane extends AbstractTableDataContentPane {
}
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" ) ) ;
label . setPreferredSize ( new Dimension ( ChartDataPane . LABEL_WIDTH , ChartDataPane . LABEL_HEIGHT ) ) ;
String [ ] names = new String [ ] {
Toolkit . i18nText ( "Fine-Design_Chart_Detailed_Data" ) ,
Toolkit . i18nText ( "Fine-Design_Chart_Result_Data" )
} ;
dataType = new UIButtonGroup ( names ) ;
dataType . setSelectedIndex ( 0 ) ;
dataType . setPreferredSize ( new Dimension ( 100 , 20 ) ) ;
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 ;
return FineLayoutBuilder . createHorizontalLayout ( 0 , new double [ ] { 1 . 2 , 3 } , label , dataType ) ;
}
private JPanel createSeriesPane ( ) {
seriesTypeComboxPane = new BoxPlotTableSeriesTypeUsePane ( ) ;
resultDataSeriesPane = new BoxPlotTableResultDataSeriesPane ( ) ;
JPanel pane = new JPanel ( new BorderLayout ( 4 , 0 ) ) ;
pane . add ( seriesTypeComboxPane , BorderLayout . CENTER ) ;
pane . add ( resultDataSeriesPane , BorderLayout . SOUTH ) ;
return pane ;
Column column = new Column ( ) ;
column . setBorder ( new ScaledEmptyBorder ( 10 , 0 , 0 , 0 ) ) ;
column . setSpacing ( 10 ) ;
column . add ( seriesTypeComboxPane ) ;
column . add ( resultDataSeriesPane ) ;
return column ;
}
private JPanel createFilterPane ( ) {
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 . setBorder ( BorderFactory . createEmptyBorder ( 0 , 5 , 0 , 5 ) ) ;
return filterPane ;
}