@ -12,11 +12,13 @@ import com.fr.plugin.chart.custom.type.CustomPlotType;
import com.fr.van.chart.custom.component.VanChartCustomPlotTabPane ;
import com.fr.van.chart.custom.component.VanChartCustomPlotTabPane ;
import com.fr.van.chart.custom.component.VanChartDataPane ;
import com.fr.van.chart.custom.component.VanChartDataPane ;
import javax.swing.BorderFactory ;
import javax.swing.JPanel ;
import javax.swing.JPanel ;
import java.util.ArrayList ;
import java.util.ArrayList ;
import java.util.LinkedHashMap ;
import java.util.LinkedHashMap ;
import java.util.List ;
import java.util.List ;
import java.util.Map ;
import java.util.Map ;
import java.awt.BorderLayout ;
/ * *
/ * *
* Created by Fangjie on 2016 / 4 / 29 .
* Created by Fangjie on 2016 / 4 / 29 .
@ -37,6 +39,20 @@ public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTab
this . supportCellData = supportCellData ;
this . supportCellData = supportCellData ;
}
}
@Override
protected void initLayout ( ) {
JPanel tabPanel = new JPanel ( new BorderLayout ( ) ) ;
if ( NameArray . length > 1 ) {
tabPanel . setBorder ( BorderFactory . createMatteBorder ( 10 , 0 , 0 , 0 , getBackground ( ) ) ) ;
} else {
tabPanel . setBorder ( BorderFactory . createMatteBorder ( 0 , 0 , 0 , 0 , getBackground ( ) ) ) ;
}
tabPanel . add ( tabPane , BorderLayout . CENTER ) ;
this . setLayout ( new BorderLayout ( 0 , 0 ) ) ;
this . add ( tabPanel , BorderLayout . NORTH ) ;
this . add ( centerPane , BorderLayout . CENTER ) ;
}
@Override
@Override
protected void initTabTitle ( ) {
protected void initTabTitle ( ) {