From 92ea24eab39d5e664a0f217855e5a3a3d7aeb3d2 Mon Sep 17 00:00:00 2001 From: Fangjie Hu Date: Wed, 10 Aug 2016 11:35:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8F=98=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_chart/src/com/fr/design/image/ImageListener.java | 7 +++++++ .../src/com/fr/design/mainframe/chart/ChartEditPane.java | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 designer_chart/src/com/fr/design/image/ImageListener.java diff --git a/designer_chart/src/com/fr/design/image/ImageListener.java b/designer_chart/src/com/fr/design/image/ImageListener.java new file mode 100644 index 0000000000..b24bc5f941 --- /dev/null +++ b/designer_chart/src/com/fr/design/image/ImageListener.java @@ -0,0 +1,7 @@ +package com.fr.design.image; + +/** + * Created by hufan on 2016/8/10. + */ +public interface ImageListener { +} diff --git a/designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java b/designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java index 8495eedf34..c39aca7bd8 100644 --- a/designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java +++ b/designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java @@ -115,6 +115,11 @@ public class ChartEditPane extends BasicPane implements AttributeChange,Prepare4 AbstractChartAttrPane selectedPane = paneList.get(tabsHeaderIconPane.getSelectedIndex()); selectedPane.update(collection); if (!ComparatorUtils.equals(collection, lastCollection)) { + + //此处画图 + Chart chart = collection.getSelectedChart(); + chart.demoImgEvent(true); + try { lastCollection = (ChartCollection) collection.clone(); } catch (CloneNotSupportedException e) { @@ -125,8 +130,6 @@ public class ChartEditPane extends BasicPane implements AttributeChange,Prepare4 } fire(); - - collection.getSelectedChart().getPlot().setAttrChange(true); } } };