Browse Source

初始化

pull/1/head
richie 9 years ago
parent
commit
263e3ccde3
  1. 2
      build.xml
  2. 14
      plugin.xml
  3. 50
      src/com/fr/plugin/chart/echarts/core/EChartsBar.java
  4. 36
      src/com/fr/plugin/chart/echarts/plugin-echarts.iml
  5. 14
      src/com/fr/plugin/chart/echarts/web/lib/echarts.min.js

2
build.xml

@ -13,7 +13,7 @@
<!-- 插件版本-->
<property name="plugin-version" value="${current-version}"/>
<!-- 插件名字-->
<property name="plugin-name" value="xml-export"/>
<property name="plugin-name" value="echarts"/>
<property name="plugin-jar" value="fr-plugin-${plugin-name}-${plugin-version}.jar"/>
<target name="prepare">

14
plugin.xml

@ -1,25 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plugin>
<id>com.fr.plugin.export.xml</id>
<name><![CDATA[导出XML]]></name>
<id>com.fr.plugin.chart.echarts</id>
<name><![CDATA[ECharts图表]]></name>
<active>yes</active>
<version>1.2</version>
<env-version>8.0</env-version>
<jartime>2016-01-21</jartime>
<vendor>洪七公</vendor>
<description><![CDATA[将报表导出为XML文件]]></description>
<description><![CDATA[在FineReport中支持ECharts的图表(仅支持预览)]]></description>
<change-notes><![CDATA[
<p>[2016-01-19]例子</p>
]]></change-notes>
<extra-core>
<LocaleFinder class="com.fr.plugin.export.xml.XmlLocaleFinder"/>
</extra-core>
<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-designer>
<ToolbarItemProvider class="com.fr.plugin.export.xml.ui.XmlExportToolbarUI"/>
</extra-designer>
</plugin>

50
src/com/fr/plugin/chart/echarts/core/EChartsBar.java

@ -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";
}
}

36
src/com/fr/plugin/chart/echarts/plugin-echarts.iml

@ -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>

14
src/com/fr/plugin/chart/echarts/web/lib/echarts.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save