Browse Source

初始化

pull/1/head
richie 9 years ago
parent
commit
301d37bd49
  1. 34
      plugin.xml
  2. 50
      src/com/fr/plugin/chart/echarts/core/EChartsBar.java
  3. 36
      src/com/fr/plugin/chart/echarts/plugin-echarts.iml
  4. 15
      src/com/fr/solution/plugin/chart/echarts/EChartsFileLoader.java
  5. 13
      src/com/fr/solution/plugin/chart/echarts/EChartsLocaleFinder.java
  6. 0
      src/com/fr/solution/plugin/chart/echarts/locale/echarts.properties
  7. 0
      src/com/fr/solution/plugin/chart/echarts/locale/echarts_zh_CN.properties
  8. 33
      src/com/fr/solution/plugin/chart/echarts/ui/map/ChinaMapChartUI.java
  9. 0
      src/com/fr/solution/plugin/chart/echarts/web/lib/echarts.min.js

34
plugin.xml

@ -1,23 +1,27 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plugin>
<id>com.fr.plugin.chart.echarts</id>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><plugin>
<id>com.fr.plugin.solution.chart.echarts</id>
<name><![CDATA[ECharts图表]]></name>
<active>yes</active>
<version>1.2</version>
<version>1.1</version>
<env-version>8.0</env-version>
<jartime>2016-01-21</jartime>
<vendor>洪七公</vendor>
<description><![CDATA[在FineReport中支持ECharts图表(仅支持预览)]]></description>
<jartime>2016-01-11</jartime>
<vendor>solution</vendor>
<description><![CDATA[ECharts图表]]></description>
<change-notes><![CDATA[
<p>[2016-01-19]例子</p>
<p>[2016-01-01]中国地图</p>
]]></change-notes>
<extra-core>
<LocaleFinder class="com.fr.solution.plugin.chart.echarts.EChartsFileLoader"/>
<JavaScriptFileHandler class="com.fr.solution.plugin.chart.echarts.EChartsFileLoader"/>
</extra-core>
<extra-report>
</extra-report>
<extra-designer>
</extra-designer>
<extra-report/>
<extra-designer/>
<extra-platform/>
<extra-chart>
<IndependentChartProvider class="com.fr.solution.plugin.chart.echarts.ui.map.ChinaMapChartUI" plotID="ChineseMapPlot"/>
</extra-chart>
<extra-chart-designer>
<IndependentChartUIProvider class="com.fr.solution.plugin.chart.chinesemap.ChineseMapUI" plotID="ChineseMapPlot"/>
</extra-chart-designer>
</plugin>

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

@ -1,50 +0,0 @@
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

@ -1,36 +0,0 @@
<?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>

15
src/com/fr/solution/plugin/chart/echarts/EChartsFileLoader.java

@ -0,0 +1,15 @@
package com.fr.solution.plugin.chart.echarts;
import com.fr.stable.fun.impl.AbstractJavaScriptFileHandler;
/**
* Created by richie on 16/1/29.
*/
public class EChartsFileLoader extends AbstractJavaScriptFileHandler {
@Override
public String[] pathsForFiles() {
return new String[]{
"/com/fr/solution/plugin/chart/echarts/web/lib/echarts.min.js"
};
}
}

13
src/com/fr/solution/plugin/chart/echarts/EChartsLocaleFinder.java

@ -0,0 +1,13 @@
package com.fr.solution.plugin.chart.echarts;
import com.fr.stable.fun.impl.AbstractLocaleFinder;
/**
* Created by richie on 16/1/29.
*/
public class EChartsLocaleFinder extends AbstractLocaleFinder {
@Override
public String find() {
return "/com/fr/solution/plugin/chart/echarts/locale/echarts";
}
}

0
src/com/fr/solution/plugin/chart/echarts/locale/echarts.properties

0
src/com/fr/solution/plugin/chart/echarts/locale/echarts_zh_CN.properties

33
src/com/fr/solution/plugin/chart/echarts/ui/map/ChinaMapChartUI.java

@ -0,0 +1,33 @@
package com.fr.solution.plugin.chart.echarts.ui.map;
import com.fr.chart.chartattr.Plot;
import com.fr.design.chart.fun.impl.AbstractIndependentChartUI;
import com.fr.design.mainframe.chart.gui.ChartDataPane;
import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPane;
import com.fr.design.mainframe.chart.gui.data.table.AbstractTableDataContentPane;
import com.fr.design.mainframe.chart.gui.type.AbstractChartTypePane;
/**
* Created by richie on 16/1/29.
*/
public class ChinaMapChartUI extends AbstractIndependentChartUI {
@Override
public AbstractChartTypePane getPlotTypePane() {
return null;
}
@Override
public AbstractTableDataContentPane getTableDataSourcePane(Plot plot, ChartDataPane parent) {
return null;
}
@Override
public AbstractReportDataContentPane getReportDataSourcePane(Plot plot, ChartDataPane parent) {
return null;
}
@Override
public String getIconPath() {
return null;
}
}

0
src/com/fr/plugin/chart/echarts/web/lib/echarts.min.js → src/com/fr/solution/plugin/chart/echarts/web/lib/echarts.min.js vendored

Loading…
Cancel
Save