5 changed files with 107 additions and 9 deletions
@ -1,25 +1,23 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||||
<plugin> |
<plugin> |
||||||
<id>com.fr.plugin.export.xml</id> |
<id>com.fr.plugin.chart.echarts</id> |
||||||
<name><![CDATA[导出XML]]></name> |
<name><![CDATA[ECharts图表]]></name> |
||||||
<active>yes</active> |
<active>yes</active> |
||||||
<version>1.2</version> |
<version>1.2</version> |
||||||
<env-version>8.0</env-version> |
<env-version>8.0</env-version> |
||||||
<jartime>2016-01-21</jartime> |
<jartime>2016-01-21</jartime> |
||||||
<vendor>洪七公</vendor> |
<vendor>洪七公</vendor> |
||||||
<description><![CDATA[将报表导出为XML文件]]></description> |
<description><![CDATA[在FineReport中支持ECharts的图表(仅支持预览)]]></description> |
||||||
<change-notes><![CDATA[ |
<change-notes><![CDATA[ |
||||||
<p>[2016-01-19]例子</p> |
<p>[2016-01-19]例子</p> |
||||||
]]></change-notes> |
]]></change-notes> |
||||||
<extra-core> |
<extra-core> |
||||||
<LocaleFinder class="com.fr.plugin.export.xml.XmlLocaleFinder"/> |
|
||||||
</extra-core> |
</extra-core> |
||||||
<extra-report> |
<extra-report> |
||||||
<ExtensionButtonProvider class="com.fr.plugin.export.xml.core.XmlExtensionButton"/> |
|
||||||
<ExportOperateProvider class="com.fr.plugin.export.xml.core.XmlExport"/> |
|
||||||
<JavaScriptFileHandler class="com.fr.plugin.export.xml.XmlFileHandler"/> |
|
||||||
</extra-report> |
</extra-report> |
||||||
<extra-designer> |
<extra-designer> |
||||||
<ToolbarItemProvider class="com.fr.plugin.export.xml.ui.XmlExportToolbarUI"/> |
|
||||||
</extra-designer> |
</extra-designer> |
||||||
</plugin> |
</plugin> |
@ -0,0 +1,50 @@ |
|||||||
|
package com.fr.plugin.chart.echarts; |
||||||
|
|
||||||
|
import com.fr.chart.chartattr.Chart; |
||||||
|
import com.fr.chart.fun.impl.AbstractIndependentChartProvider; |
||||||
|
import com.fr.general.Inter; |
||||||
|
import com.fr.plugin.chart.echarts.web.EChartsBarPlot; |
||||||
|
|
||||||
|
|
||||||
|
public class EChartsBar extends AbstractIndependentChartProvider { |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getChartName() { |
||||||
|
return "Plugin-ECharts_Bar"; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getChartUseName() { |
||||||
|
return Inter.getLocText("Plugin-ECharts_Bar"); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Chart[] getChartTypes() { |
||||||
|
Chart[] charts = new Chart[1]; |
||||||
|
EChartsBarPlot plot = new EChartsBarPlot(); |
||||||
|
Chart barChart = new Chart(plot); |
||||||
|
barChart.setWrapperName(getWrapperName()); |
||||||
|
charts[0] = barChart; |
||||||
|
barChart.setRequiredJs(getRequiredJS()); |
||||||
|
barChart.setChartImagePath(this.getChartImagePath()); |
||||||
|
return charts; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getChartImagePath() { |
||||||
|
return "com/fr/plugin/chart/echarts/images/bar256.png"; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String[] getRequiredJS() { |
||||||
|
return new String[]{ |
||||||
|
"/com/fr/plugin/chart/echarts/web/echarts-all.js?encode=utf8", |
||||||
|
"/com/fr/plugin/chart/echarts/web/wrapper.js" |
||||||
|
}; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getWrapperName() { |
||||||
|
return "EChartsBarFactory"; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,36 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<module type="JAVA_MODULE" version="4"> |
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="false"> |
||||||
|
<output url="file://$USER_HOME$/Documents/finereport/env/8.0/WebReport/WEB-INF/classes" /> |
||||||
|
<content url="file://$MODULE_DIR$/../../../../../.."> |
||||||
|
<sourceFolder url="file://$MODULE_DIR$/../../../../.." isTestSource="false" /> |
||||||
|
</content> |
||||||
|
<orderEntry type="inheritedJdk" /> |
||||||
|
<orderEntry type="sourceFolder" forTests="false" /> |
||||||
|
<orderEntry type="library" name="lib" level="project" /> |
||||||
|
<orderEntry type="module" module-name="base" /> |
||||||
|
<orderEntry type="module" module-name="base-basic" /> |
||||||
|
<orderEntry type="module" module-name="base-calculate" /> |
||||||
|
<orderEntry type="module" module-name="base-data" /> |
||||||
|
<orderEntry type="module" module-name="base-file" /> |
||||||
|
<orderEntry type="module" module-name="base-performance" /> |
||||||
|
<orderEntry type="module" module-name="base-stable" /> |
||||||
|
<orderEntry type="module" module-name="chart-base" /> |
||||||
|
<orderEntry type="module" module-name="chart-chartattr" /> |
||||||
|
<orderEntry type="module" module-name="chart-chartdata" /> |
||||||
|
<orderEntry type="module" module-name="chart-chartglyph" /> |
||||||
|
<orderEntry type="module" module-name="chart-web" /> |
||||||
|
<orderEntry type="module" module-name="designer" /> |
||||||
|
<orderEntry type="module" module-name="designer_base" /> |
||||||
|
<orderEntry type="module" module-name="designer_chart" /> |
||||||
|
<orderEntry type="module" module-name="designer_feedback" /> |
||||||
|
<orderEntry type="module" module-name="designer_form" /> |
||||||
|
<orderEntry type="module" module-name="engine" /> |
||||||
|
<orderEntry type="module" module-name="engine-page" /> |
||||||
|
<orderEntry type="module" module-name="engine-remote" /> |
||||||
|
<orderEntry type="module" module-name="engine-view" /> |
||||||
|
<orderEntry type="module" module-name="engine-write" /> |
||||||
|
<orderEntry type="module" module-name="fmobile" /> |
||||||
|
<orderEntry type="module" module-name="form" /> |
||||||
|
</component> |
||||||
|
</module> |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue