|
|
|
@ -9,6 +9,7 @@ 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.decision.webservice.v10.map.geojson.helper.GEOJSONHelper; |
|
|
|
|
import com.fr.design.ChartTypeInterfaceManager; |
|
|
|
|
import com.fr.design.designer.TargetComponent; |
|
|
|
|
import com.fr.design.gui.chart.BaseChartPropertyPane; |
|
|
|
@ -19,6 +20,7 @@ import com.fr.design.utils.gui.GUICoreUtils;
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.Icon; |
|
|
|
|
import javax.swing.SwingWorker; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
|
@ -95,17 +97,26 @@ public class ChartPropertyPane extends BaseChartPropertyPane {
|
|
|
|
|
* @param ePane 面板 |
|
|
|
|
*/ |
|
|
|
|
public void populateChartPropertyPane(ChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
|
new SwingWorker<Void, Void>() { |
|
|
|
|
@Override |
|
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
|
GEOJSONHelper.getInstance(); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
@Override |
|
|
|
|
protected void done() { |
|
|
|
|
String chartID = collection.getSelectedChartProvider(ChartProvider.class).getID(); |
|
|
|
|
updateChartEditPane(collection.getSelectedChartProvider(ChartProvider.class).getID()); |
|
|
|
|
setSupportCellData(true); |
|
|
|
|
this.container.setEPane(ePane); |
|
|
|
|
|
|
|
|
|
container.setEPane(ePane); |
|
|
|
|
if (ChartTypeManager.getInstance().chartExit(chartID)) { |
|
|
|
|
chartEditPane.populate(collection); |
|
|
|
|
} else { |
|
|
|
|
GUICoreUtils.setEnabled(chartEditPane, false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 感觉ChartCollection加载图表属性界面. |
|
|
|
|