|
|
@ -22,9 +22,11 @@ import com.fr.design.mainframe.chart.gui.ChartStylePane; |
|
|
|
import com.fr.design.mainframe.chart.gui.ChartTypePane; |
|
|
|
import com.fr.design.mainframe.chart.gui.ChartTypePane; |
|
|
|
import com.fr.design.mainframe.chart.gui.type.AbstractChartTypePane; |
|
|
|
import com.fr.design.mainframe.chart.gui.type.AbstractChartTypePane; |
|
|
|
import com.fr.design.mainframe.chart.info.ChartInfoCollector; |
|
|
|
import com.fr.design.mainframe.chart.info.ChartInfoCollector; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
|
|
|
import com.fr.form.main.Form; |
|
|
|
import com.fr.form.main.Form; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.custom.VanChartCustomPlot; |
|
|
|
import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
@ -334,7 +336,10 @@ public class ChartEditPane extends BasicPane implements AttributeChange, Prepare |
|
|
|
String chartID = chart.getID(); |
|
|
|
String chartID = chart.getID(); |
|
|
|
boolean currentPane = ChartTypeInterfaceManager.getInstance().isUseDefaultPane(chartID); |
|
|
|
boolean currentPane = ChartTypeInterfaceManager.getInstance().isUseDefaultPane(chartID); |
|
|
|
|
|
|
|
|
|
|
|
return (currentPane != isDefaultPane) || (!currentPane && lastIndex != currentIndex); |
|
|
|
boolean duchampCustomChart = ChartEditContext.duchampMode() |
|
|
|
|
|
|
|
&& VanChartCustomPlot.VAN_CHART_CUSTOM_PLOT_ID.equals(chartID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (currentPane != isDefaultPane) || (!currentPane && lastIndex != currentIndex) || duchampCustomChart; |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|