|
|
|
@ -100,24 +100,30 @@ public class SeriesTypeUseComboxPane extends BasicBeanPane<ChartCollection> {
|
|
|
|
|
protected void initLayout() { |
|
|
|
|
this.setLayout(new BorderLayout(4, LayoutConstants.VGAP_MEDIUM)); |
|
|
|
|
JPanel northPane = new JPanel(new BorderLayout(4, 0)); |
|
|
|
|
UILabel label1 = new UILabel(Toolkit.i18nText("Fine-Design_Chart_Series_Name_From")); |
|
|
|
|
label1.setPreferredSize(new Dimension(ChartDataPane.LABEL_WIDTH, ChartDataPane.LABEL_HEIGHT)); |
|
|
|
|
JPanel borderLayoutPane = GUICoreUtils.createBorderLayoutPane(new Component[]{content, null, null, label1, null}); |
|
|
|
|
|
|
|
|
|
//使用系列名/系列值选项面板
|
|
|
|
|
UILabel seriesLabel = new UILabel(Toolkit.i18nText("Fine-Design_Chart_Series_Name_From")); |
|
|
|
|
seriesLabel.setPreferredSize(new Dimension(ChartDataPane.LABEL_WIDTH, ChartDataPane.LABEL_HEIGHT)); |
|
|
|
|
JPanel borderLayoutPane = GUICoreUtils.createBorderLayoutPane(new Component[]{content, null, null, seriesLabel, null}); |
|
|
|
|
northPane.add(borderLayoutPane); |
|
|
|
|
northPane.setBorder(BorderFactory.createEmptyBorder(10, 24, 0, 15)); |
|
|
|
|
cardPane.setBorder(BorderFactory.createEmptyBorder(0, 24, 0, 15)); |
|
|
|
|
northPane.setBorder(BorderFactory.createEmptyBorder(10, 24, 0, 16)); |
|
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
//系列名/系列值配置面板
|
|
|
|
|
cardPane.setBorder(BorderFactory.createEmptyBorder(0, 24, 0, 15)); |
|
|
|
|
this.add(cardPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
//数据筛选
|
|
|
|
|
dataScreeningPane = new ChartDataFilterPane(this.initplot, parent); |
|
|
|
|
JPanel panel = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Chart_Data_Filter"), 250, 24, dataScreeningPane); |
|
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 15)); |
|
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 15)); |
|
|
|
|
dataScreeningPane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
this.add(panel, BorderLayout.SOUTH); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Dimension getPreferredSize() { |
|
|
|
|
Dimension preferredSize = super.getPreferredSize(); |
|
|
|
|
return new Dimension(260, (int) preferredSize.getHeight()); |
|
|
|
|
return new Dimension(246, (int) preferredSize.getHeight()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|