|
|
|
@ -7,6 +7,7 @@ package com.fr.design.mainframe;
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fr.base.chart.BaseChartCollection; |
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
import com.fr.chart.charttypes.ChartTypeManager; |
|
|
|
|
import com.fr.chartx.attr.ChartProvider; |
|
|
|
|
import com.fr.design.ChartTypeInterfaceManager; |
|
|
|
|
import com.fr.design.designer.TargetComponent; |
|
|
|
@ -14,9 +15,12 @@ import com.fr.design.gui.chart.BaseChartPropertyPane;
|
|
|
|
|
import com.fr.design.gui.chart.ChartEditPaneProvider; |
|
|
|
|
import com.fr.design.gui.frpane.UITitlePanel; |
|
|
|
|
import com.fr.design.mainframe.chart.ChartEditPane; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.Icon; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
|
|
public class ChartPropertyPane extends BaseChartPropertyPane { |
|
|
|
|
|
|
|
|
@ -91,10 +95,16 @@ public class ChartPropertyPane extends BaseChartPropertyPane {
|
|
|
|
|
* @param ePane 面板 |
|
|
|
|
*/ |
|
|
|
|
public void populateChartPropertyPane(ChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
|
String chartID = collection.getSelectedChartProvider(ChartProvider.class).getID(); |
|
|
|
|
updateChartEditPane(collection.getSelectedChartProvider(ChartProvider.class).getID()); |
|
|
|
|
setSupportCellData(true); |
|
|
|
|
this.container.setEPane(ePane); |
|
|
|
|
|
|
|
|
|
if (ChartTypeManager.getInstance().chartExit(chartID)) { |
|
|
|
|
chartEditPane.populate(collection); |
|
|
|
|
} else { |
|
|
|
|
GUICoreUtils.setEnabled(chartEditPane, false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|