Browse Source

工程编码整体改为UTF8

pull/1/head
richie 9 years ago
parent
commit
43505e1991
  1. 6
      src/com/fr/solution/plugin/chart/echarts/base/NewChart.java
  2. 8
      src/com/fr/solution/plugin/chart/echarts/base/NewGlyph.java
  3. 4
      src/com/fr/solution/plugin/chart/echarts/base/NewTitleGlyph.java
  4. 10
      src/com/fr/solution/plugin/chart/echarts/ui/map/ChineseChartTypePane.java
  5. 4
      src/com/fr/solution/plugin/chart/echarts/ui/map/ChineseMapTableDataContentPane.java
  6. 4
      src/com/fr/solution/plugin/chart/echarts/web/echarts.bridge.js

6
src/com/fr/solution/plugin/chart/echarts/base/NewChart.java

@ -38,9 +38,9 @@ public class NewChart extends Chart {
} }
/** /**
* 判断图表类型是否是obClass * 判断图表类型是否是obClass
* @param obClass 传入对象 * @param obClass 传入对象
* @return 是否是obClass对象 * @return 是否是obClass对象
*/ */
public boolean accept(Class<? extends Chart> obClass){ public boolean accept(Class<? extends Chart> obClass){
return ComparatorUtils.equals(NewChart.class, obClass); return ComparatorUtils.equals(NewChart.class, obClass);

8
src/com/fr/solution/plugin/chart/echarts/base/NewGlyph.java

@ -62,7 +62,7 @@ public class NewGlyph extends ChartGlyph {
.put("max", 2500) .put("max", 2500)
.put("x", "left") .put("x", "left")
.put("y", "bottom") .put("y", "bottom")
.put("text", JSONArray.create().put("高").put("低")); .put("text", JSONArray.create().put("高").put("低"));
} }
private JSONArray createSeries(Repository repo) throws JSONException { private JSONArray createSeries(Repository repo) throws JSONException {
@ -73,7 +73,7 @@ public class NewGlyph extends ChartGlyph {
.put("type", "map") .put("type", "map")
.put("mapType", "china") .put("mapType", "china")
.put("itemStyle", createItemStyle(repo)) .put("itemStyle", createItemStyle(repo))
.put("data", JSONArray.create().put(JSONObject.create().put("name", "北京").put("value", 20))) .put("data", JSONArray.create().put(JSONObject.create().put("name", "北京").put("value", 20)))
); );
series.put(JSONObject.create() series.put(JSONObject.create()
@ -81,7 +81,7 @@ public class NewGlyph extends ChartGlyph {
.put("type", "map") .put("type", "map")
.put("mapType", "china") .put("mapType", "china")
.put("itemStyle", createItemStyle(repo)) .put("itemStyle", createItemStyle(repo))
.put("data", JSONArray.create().put(JSONObject.create().put("name", "江苏").put("value", 20))) .put("data", JSONArray.create().put(JSONObject.create().put("name", "江苏").put("value", 20)))
); );
series.put(JSONObject.create() series.put(JSONObject.create()
@ -89,7 +89,7 @@ public class NewGlyph extends ChartGlyph {
.put("type", "map") .put("type", "map")
.put("mapType", "china") .put("mapType", "china")
.put("itemStyle", createItemStyle(repo)) .put("itemStyle", createItemStyle(repo))
.put("data", JSONArray.create().put(JSONObject.create().put("name", "四川").put("value", 20))) .put("data", JSONArray.create().put(JSONObject.create().put("name", "四川").put("value", 20)))
); );
return series; return series;

4
src/com/fr/solution/plugin/chart/echarts/base/NewTitleGlyph.java

@ -22,8 +22,8 @@ public class NewTitleGlyph extends ChartGlyph {
private JSONObject createTitle(Repository repo) throws JSONException { private JSONObject createTitle(Repository repo) throws JSONException {
return JSONObject.create() return JSONObject.create()
.put("text", "iPhoneマ愠ソ") .put("text", "iPhone销量")
.put("subtext", "エソハ<EFBFBD>鮖ケ") .put("subtext", "纯属虚构")
.put("x", "center"); .put("x", "center");
} }

10
src/com/fr/solution/plugin/chart/echarts/ui/map/ChineseChartTypePane.java

@ -11,9 +11,9 @@ import com.fr.solution.plugin.chart.echarts.core.map.ChineseMapPlot;
*/ */
public class ChineseChartTypePane extends UserDefinedChartTypePane { public class ChineseChartTypePane extends UserDefinedChartTypePane {
/** /**
* 弹出框的标题 * 弹出框的标题
* *
* @return 弹出框的标题 * @return 弹出框的标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return Inter.getLocText("Plugin-ECharts_Chinese_Map"); return Inter.getLocText("Plugin-ECharts_Chinese_Map");
@ -26,9 +26,9 @@ public class ChineseChartTypePane extends UserDefinedChartTypePane {
} }
/** /**
* 界面是否接受 * 界面是否接受
* @param ob 对象是否为chart * @param ob 对象是否为chart
* @return 界面是否接受对象 * @return 界面是否接受对象
*/ */
public boolean accept(Object ob) { public boolean accept(Object ob) {
return (ob instanceof Chart)&&((Chart) ob).getPlot().accept(ChineseMapPlot.class); return (ob instanceof Chart)&&((Chart) ob).getPlot().accept(ChineseMapPlot.class);

4
src/com/fr/solution/plugin/chart/echarts/ui/map/ChineseMapTableDataContentPane.java

@ -21,10 +21,10 @@ public class ChineseMapTableDataContentPane extends AbstractTableDataContentPane
public ChineseMapTableDataContentPane(ChartDataPane parent) { public ChineseMapTableDataContentPane(ChartDataPane parent) {
setLayout(new BorderLayout()); setLayout(new BorderLayout());
UILabel label = new UILabel("测试布局"); UILabel label = new UILabel("测试布局");
setBorder(BorderFactory.createLineBorder(Color.RED)); setBorder(BorderFactory.createLineBorder(Color.RED));
add(label, BorderLayout.NORTH); add(label, BorderLayout.NORTH);
correlationPane = new UICorrelationPane("区域名", "区域值"); correlationPane = new UICorrelationPane("区域名", "区域值");
add(correlationPane, BorderLayout.CENTER); add(correlationPane, BorderLayout.CENTER);
} }

4
src/com/fr/solution/plugin/chart/echarts/web/echarts.bridge.js

@ -7,7 +7,7 @@ EChartsFactory = function(options, $dom) {
this.chartID = options.chartID; this.chartID = options.chartID;
this.autoRefreshTime = options.autoRefreshTime || 0; this.autoRefreshTime = options.autoRefreshTime || 0;
this.width = options.width || $dom.width();// 补充从dom获取. this.width = options.width || $dom.width();// 补充从dom获取.
this.height = options.height || $dom.height(); this.height = options.height || $dom.height();
this.sheetIndex = options.sheetIndex || 0; this.sheetIndex = options.sheetIndex || 0;
this.ecName = options.ecName || ''; this.ecName = options.ecName || '';
@ -35,7 +35,7 @@ EChartsFactory.prototype = {
}, },
//数据监控的刷新方式 //数据监控的刷新方式
setData:function(options, aimation){ setData:function(options, aimation){
} }

Loading…
Cancel
Save