From 6a97acb7bb99ac0448aeb13762648752d4a55b84 Mon Sep 17 00:00:00 2001 From: zhouping Date: Mon, 8 Aug 2016 11:30:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/designer/creator/XBorderStyleWidgetCreator.java | 2 ++ .../src/com/fr/design/designer/creator/XChartEditor.java | 2 +- .../src/com/fr/design/designer/creator/XElementCase.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java b/designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java index a09b61424a..61bd612ad6 100644 --- a/designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java +++ b/designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java @@ -30,6 +30,8 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{ private int cornerSize = 15; private int noneSize = 0; + protected static final Dimension BORDER_PREFERRED_SIZE = new Dimension(250, 150); + public XBorderStyleWidgetCreator(Widget widget, Dimension initSize) { super(widget, initSize); } diff --git a/designer_form/src/com/fr/design/designer/creator/XChartEditor.java b/designer_form/src/com/fr/design/designer/creator/XChartEditor.java index fe05d9e8d9..49d193199e 100644 --- a/designer_form/src/com/fr/design/designer/creator/XChartEditor.java +++ b/designer_form/src/com/fr/design/designer/creator/XChartEditor.java @@ -187,7 +187,7 @@ public class XChartEditor extends XBorderStyleWidgetCreator { * @return 返回大小. */ public Dimension initEditorSize() { - return new Dimension(250, 150); + return BORDER_PREFERRED_SIZE; } /** diff --git a/designer_form/src/com/fr/design/designer/creator/XElementCase.java b/designer_form/src/com/fr/design/designer/creator/XElementCase.java index 041e9a2dc9..474acfbb91 100644 --- a/designer_form/src/com/fr/design/designer/creator/XElementCase.java +++ b/designer_form/src/com/fr/design/designer/creator/XElementCase.java @@ -182,7 +182,7 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme * @return 尺寸 */ public Dimension initEditorSize() { - return new Dimension(250, 150); + return BORDER_PREFERRED_SIZE; } /**