From e6324597ddee828fde4a782ddbca0fe160fd3e0d Mon Sep 17 00:00:00 2001 From: fr_shine Date: Fri, 11 Nov 2016 15:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E9=93=BE=E6=82=AC=E6=B5=AE=E7=AA=97?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E4=B8=8D=E6=94=AF=E6=8C=81=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=A0=BC=E6=95=B0=E6=8D=AE=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/mainframe/chart/ChartEditPane.java | 6 +++++- .../mainframe/chart/ChartHyperEditPane.java | 7 +++++++ .../mainframe/chart/gui/ChartDataPane.java | 20 ++++++++++++------- 3 files changed, 25 insertions(+), 8 deletions(-) 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 f19c49d66..052fee20d 100644 --- a/designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java +++ b/designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java @@ -153,7 +153,7 @@ public class ChartEditPane extends BasicPane implements AttributeChange,Prepare4 paneList.add(otherPane); this.isDefaultPane = true; }else{ - ChartDataPane chartDataPane = ChartTypeInterfaceManager.getInstance().getChartDataPane(plotID, listener); + ChartDataPane chartDataPane = createChartDataPane(plotID); paneList.add(chartDataPane); AbstractChartAttrPane[] otherPaneList = ChartTypeInterfaceManager.getInstance().getAttrPaneArray(plotID, listener); for(int i = 0; i < otherPaneList.length; i++){ @@ -167,6 +167,10 @@ public class ChartEditPane extends BasicPane implements AttributeChange,Prepare4 } } + protected ChartDataPane createChartDataPane(String plotID) { + return ChartTypeInterfaceManager.getInstance().getChartDataPane(plotID, listener); + } + protected void addTypePane() { paneList.add(typePane); } diff --git a/designer_chart/src/com/fr/design/mainframe/chart/ChartHyperEditPane.java b/designer_chart/src/com/fr/design/mainframe/chart/ChartHyperEditPane.java index 99c6875a3..bb7d63b99 100644 --- a/designer_chart/src/com/fr/design/mainframe/chart/ChartHyperEditPane.java +++ b/designer_chart/src/com/fr/design/mainframe/chart/ChartHyperEditPane.java @@ -2,6 +2,7 @@ package com.fr.design.mainframe.chart; import com.fr.chart.chartattr.ChartCollection; import com.fr.chart.web.ChartHyperPoplink; +import com.fr.design.ChartTypeInterfaceManager; import com.fr.design.chart.gui.ChartComponent; import com.fr.design.chart.series.SeriesCondition.impl.ChartHyperPopAttrPane; import com.fr.design.editor.ValueEditorPane; @@ -38,6 +39,12 @@ public class ChartHyperEditPane extends ChartEditPane { createTabsPane(); } + @Override + protected ChartDataPane createChartDataPane(String plotID) { + ChartDataPane dataPane = ChartTypeInterfaceManager.getInstance().getChartDataPane(plotID, listener); + dataPane.setSupportCellData(false); + return dataPane; + } protected void addTypePane() { paneList.add(attrPane); diff --git a/designer_chart/src/com/fr/design/mainframe/chart/gui/ChartDataPane.java b/designer_chart/src/com/fr/design/mainframe/chart/gui/ChartDataPane.java index 7c8589fb2..7fc3c79d9 100644 --- a/designer_chart/src/com/fr/design/mainframe/chart/gui/ChartDataPane.java +++ b/designer_chart/src/com/fr/design/mainframe/chart/gui/ChartDataPane.java @@ -1,20 +1,19 @@ package com.fr.design.mainframe.chart.gui; -import java.awt.BorderLayout; - -import javax.swing.JPanel; - -import com.fr.design.chart.report.GisMapDataPane; -import com.fr.design.chart.report.MapDataPane; import com.fr.chart.chartattr.ChartCollection; import com.fr.chart.chartattr.GisMapPlot; import com.fr.chart.chartattr.MapPlot; +import com.fr.design.chart.report.GisMapDataPane; +import com.fr.design.chart.report.MapDataPane; import com.fr.design.gui.frpane.AttributeChangeListener; import com.fr.design.mainframe.chart.AbstractChartAttrPane; import com.fr.design.mainframe.chart.PaneTitleConstants; import com.fr.design.mainframe.chart.gui.data.DataContentsPane; import com.fr.design.mainframe.chart.gui.data.NormalChartDataPane; +import javax.swing.*; +import java.awt.*; + public class ChartDataPane extends AbstractChartAttrPane { protected DataContentsPane contentsPane; @@ -68,12 +67,19 @@ public class ChartDataPane extends AbstractChartAttrPane { contentsPane.setSupportCellData(supportCellData); } } - + + public boolean isSupportCellData() { + return supportCellData; + } + /** * 设置数据界面是否支持单元格 */ public void setSupportCellData(boolean supportCellData) { this.supportCellData = supportCellData; + if(contentsPane != null) { + contentsPane.setSupportCellData(supportCellData); + } } /**