You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.4 KiB
55 lines
1.4 KiB
/* |
|
* Copyright (c) 2001-2014,FineReport Inc, All Rights Reserved. |
|
*/ |
|
|
|
package com.fr.design.mainframe.chart; |
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
import com.fr.design.mainframe.chart.gui.*; |
|
|
|
import java.util.ArrayList; |
|
|
|
/** |
|
* Created by IntelliJ IDEA. |
|
* Author : daisy |
|
* Version: 6.5.6 |
|
* Date: 14-10-15 |
|
* Time: 下午5:47 |
|
*/ |
|
public class ChartDesignEditPane extends ChartEditPane { |
|
|
|
private static ChartDesignEditPane instance; |
|
|
|
private boolean isFromToolBar = false; |
|
|
|
public synchronized static ChartEditPane getInstance() { |
|
if (instance == null) { |
|
instance = new ChartDesignEditPane(); |
|
} |
|
return instance; |
|
} |
|
|
|
public ChartDesignEditPane() { |
|
paneList = new ArrayList<AbstractChartAttrPane>(); |
|
dataPane4SupportCell = new ChartDesignerDataPane(listener); |
|
paneList.add(dataPane4SupportCell); |
|
paneList.add(new StylePane4Chart(listener, false)); |
|
paneList.add(new ChartDesignerOtherPane()); |
|
createTabsPane(); |
|
} |
|
|
|
protected void dealWithStyleChange(){ |
|
if(!isFromToolBar){ |
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().styleChange(); |
|
} |
|
} |
|
|
|
/** |
|
*主要用于图表设计器,判断样式改变是否来自工具栏的全局样式按钮 |
|
* @param isFromToolBar 是否来自工具栏 |
|
*/ |
|
public void styleChange(boolean isFromToolBar){ |
|
this.isFromToolBar = isFromToolBar; |
|
} |
|
|
|
} |