From 24675ad8a1cbb75c0588ec32304030c571785c8a Mon Sep 17 00:00:00 2001 From: mengao <283296419@qq.com> Date: Fri, 11 Aug 2017 14:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E6=8E=89=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/layout/TableLayoutHelper.java | 13 ------------- .../chart/designer/TableLayout4VanChartHelper.java | 4 ---- 2 files changed, 17 deletions(-) diff --git a/designer_base/src/com/fr/design/layout/TableLayoutHelper.java b/designer_base/src/com/fr/design/layout/TableLayoutHelper.java index 5950a6d1dc..36c3a93b54 100644 --- a/designer_base/src/com/fr/design/layout/TableLayoutHelper.java +++ b/designer_base/src/com/fr/design/layout/TableLayoutHelper.java @@ -262,19 +262,6 @@ public class TableLayoutHelper { return createTableLayoutPane(comp, row, column); } - public static JPanel createTableLayoutPane4ChartWithoutTitle(Component[][] components, double[] rowSize, double[] columnSize){ - JPanel secondMenu = createTableLayoutPane(components, rowSize, columnSize); - double p = TableLayout.PREFERRED; - double f = TableLayout.FILL; - double[] column = {LayoutConstants.CHART_ATTR_TOMARGIN, f}; - double[] row = { p,p}; - Component[][] comp = new Component[][]{ - new Component[]{null, secondMenu}, - }; - return createTableLayoutPane(comp, row, column); - } - - public static void main (String[] args) { JFrame jf = new JFrame("test"); jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); diff --git a/designer_chart/src/com/fr/plugin/chart/designer/TableLayout4VanChartHelper.java b/designer_chart/src/com/fr/plugin/chart/designer/TableLayout4VanChartHelper.java index 1b500ece87..cda309aaa8 100644 --- a/designer_chart/src/com/fr/plugin/chart/designer/TableLayout4VanChartHelper.java +++ b/designer_chart/src/com/fr/plugin/chart/designer/TableLayout4VanChartHelper.java @@ -23,10 +23,6 @@ public class TableLayout4VanChartHelper { public static JPanel createExpandablePaneWithTitle(String title, JPanel panel) { return new UIExpandablePane(title, EXPANDABLE_PANE_WIDTH, EXPANDABLE_PANE_HIGHT, panel); } - public static JPanel createExpandablePaneWithTitle(String title, Component component) { - JPanel panel = (JPanel) component; - return new UIExpandablePane(title, EXPANDABLE_PANE_WIDTH, EXPANDABLE_PANE_HIGHT, panel); - } public static JPanel createGapTableLayoutPane(String title, Component component) { double p = TableLayout.PREFERRED;