From 120cd6f28c0a22531ef4bcd9e8cd2036a16c23f8 Mon Sep 17 00:00:00 2001 From: Qin Xiaofu Date: Mon, 28 Aug 2017 13:36:25 +0800 Subject: [PATCH] =?UTF-8?q?CHART-1212=20=E5=87=BD=E6=95=B0=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E6=9B=B4=E6=94=B9=E4=BA=86=EF=BC=8C=E8=BF=99=E9=87=8C?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=90=8C=E6=AD=A5=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainframe/chart/gui/ChangeConfigPane.java | 13 ++++++++----- .../com/fr/plugin/chart/DownloadSourcesEvent.java | 7 +++++++ 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 designer_chart/src/com/fr/plugin/chart/DownloadSourcesEvent.java diff --git a/designer_chart/src/com/fr/design/mainframe/chart/gui/ChangeConfigPane.java b/designer_chart/src/com/fr/design/mainframe/chart/gui/ChangeConfigPane.java index 23135b0764..1fd20bc504 100644 --- a/designer_chart/src/com/fr/design/mainframe/chart/gui/ChangeConfigPane.java +++ b/designer_chart/src/com/fr/design/mainframe/chart/gui/ChangeConfigPane.java @@ -30,6 +30,9 @@ public class ChangeConfigPane extends BasicBeanPane { private static final int WIDTH = 100; private static final int MIN_TIME = 0; private static final int MAX_TIME = Integer.MAX_VALUE; + private static final int CONSTANT_TEN = 10; + private static final int CONSTANT_THIRTY = 30; + private static final int CONSTANT_ZERO = 0; private JPanel contentPane; //配置方式按钮 private UIButtonGroup configStyleButton; @@ -50,7 +53,7 @@ public class ChangeConfigPane extends BasicBeanPane { initButtonGroup(); configPane = createConfigPane(); contentPane = createContentPane(); - contentPane.setBorder(BorderFactory.createEmptyBorder(10, 30, 10, 30)); + contentPane.setBorder(BorderFactory.createEmptyBorder(CONSTANT_TEN, CONSTANT_THIRTY, CONSTANT_TEN, CONSTANT_THIRTY)); this.add(contentPane, BorderLayout.CENTER); } @@ -74,7 +77,7 @@ public class ChangeConfigPane extends BasicBeanPane { JPanel panel = new JPanel(new CardLayout()){ @Override public Dimension getPreferredSize() { - if(configStyleButton.getSelectedIndex() == 0){ + if (configStyleButton.getSelectedIndex() == 0){ return buttonConfigPane.getPreferredSize(); } else{ return carouselConfigPane.getPreferredSize(); @@ -85,7 +88,7 @@ public class ChangeConfigPane extends BasicBeanPane { panel.add(buttonConfigPane, "button"); panel.add(carouselConfigPane, "carousel"); - panel.setBorder(BorderFactory.createEmptyBorder(0,10,0,0)); + panel.setBorder(BorderFactory.createEmptyBorder(CONSTANT_ZERO, CONSTANT_TEN, CONSTANT_ZERO, CONSTANT_ZERO)); return panel; } @@ -104,7 +107,7 @@ public class ChangeConfigPane extends BasicBeanPane { new Component[] {new UILabel(Inter.getLocText("Plugin-ChartF_Arrow_Style")), arrowCheckbox} }; - return TableLayout4VanChartHelper.createGapTableLayoutPane(components,rowSize,columnSize); + return TableLayout4VanChartHelper.createGapTableLayoutPane(components, rowSize, columnSize); } private JPanel createTitleStylePane(){ @@ -136,7 +139,7 @@ public class ChangeConfigPane extends BasicBeanPane { new Component[]{createButtonBackgroundColorPane(),null}, }; - return TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize); + return TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize); } private void initButtonGroup() { diff --git a/designer_chart/src/com/fr/plugin/chart/DownloadSourcesEvent.java b/designer_chart/src/com/fr/plugin/chart/DownloadSourcesEvent.java new file mode 100644 index 0000000000..88ac95a6fb --- /dev/null +++ b/designer_chart/src/com/fr/plugin/chart/DownloadSourcesEvent.java @@ -0,0 +1,7 @@ +package com.fr.plugin.chart; + +/** + * Created by Napoleon on 2017/8/25. + */ +public interface DownloadSourcesEvent { +}