com.supermap.chart.conversion
类 DataExportChart

java.lang.Object
  继承者 com.supermap.chart.conversion.DataExportChart

public class DataExportChart
extends java.lang.Object

海图数据导出类。通过该类可以将数据导出为标准海图数据(*.000等格式文件)。

示例:
以下示范代码实现如何导出 SuperMap 格式数据,并返回 SuperMap 格式数据导出结果对象。
   
  public void exportS57(){
                      //获取名称为GB_Chart的数据源。
                Datasource datasource = m_workspace.getDatasources().get("GB_Chart");
                // 设置需要导出数据以及文件类型、路径。
                ExportSettingChartS57 exportSettingChartS57 = new ExportSettingChartS57();
                exportSettingChartS57.setSourceData(datasource.getRootGroup().getChildGroups().get(0));
                exportSettingChartS57.setTargetFilePath("SampleData\\GB4X1111.000");
                   exportSettingChartS57.setTargetFileTypeChart(FileTypeChart.S57);

                 // 构建 SuperMap格式数据导出对象(DataExportChart),并设置导出设置信息类对象。
                DataExportChart dataExportChart = new DataExportChart();
                ExportSettingCharts exportSettingCharts = dataExportChart.getExportSettingCharts();
                exportSettingCharts.add(exportSettingChartS57);

                   // 执行数据的导出,得到SuperMap 格式数据导出结果对象。
                ExportResultChart exportResultChart = dataExportChart.run();                    

                   // 释放 DataExportChart 对象所占用的资源。
                dataExportChart.dispose();
         }
  

构造方法摘要
DataExportChart()
          构造一个新的 DataExportChart对象。
 
方法摘要
 void addExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
          添加一个用于接收海图数据导出进度事件ExportChartSteppedListener的监听器。
 void dispose()
          释放该对象所占用的资源。
 ExportSettingCharts getExportSettingCharts()
          返回ExportSettingCharts对象,用于多个导出任务的设置。
 void removeExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
          移除一个用于接收海图数据导出进度事件ExportChartSteppedListener的监听器。
 ExportResultChart run()
          执行导出数据集的操作,返回海图数据导出结果 ExportResultChart
 void setExportSettingCharts(ExportSettingCharts exportSettings)
          设置ExportSettingCharts对象,用于多个导出任务的设置。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DataExportChart

public DataExportChart()
构造一个新的 DataExportChart对象。

方法详细信息

run

public ExportResultChart run()
执行导出数据集的操作,返回海图数据导出结果 ExportResultChart

返回:
数据集导出结果,包含成功和失败的任务对应的ExportSettingChart集合。

getExportSettingCharts

public ExportSettingCharts getExportSettingCharts()
返回ExportSettingCharts对象,用于多个导出任务的设置。

返回:
SuperMap 格式数据导出设置信息集合对象。

setExportSettingCharts

public void setExportSettingCharts(ExportSettingCharts exportSettings)
设置ExportSettingCharts对象,用于多个导出任务的设置。

参数:
exportSettings - SuperMap 格式数据导出设置信息集合对象,用于多个导出任务的设置。

>默认值为一个 ExportSettingCharts对象,该对象用来存储ExportSettingChart 对象,默认的 ExportSettingChart 对象个数为0。


dispose

public void dispose()
释放该对象所占用的资源。


addExportSteppedListener

public void addExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
添加一个用于接收海图数据导出进度事件ExportChartSteppedListener的监听器。

参数:
exportChartSteppedListener - 一个用于接收接收海图数据导出进度事件的监听器。

removeExportSteppedListener

public void removeExportSteppedListener(ExportChartSteppedListener exportChartSteppedListener)
移除一个用于接收海图数据导出进度事件ExportChartSteppedListener的监听器。

参数:
exportChartSteppedListener - 一个用于接收接收海图数据导出进度事件的监听器。