Browse Source

echarts基本功能

pull/1/head
richie 9 years ago
parent
commit
3ed2c1d088
  1. 18
      src/com/fr/solution/plugin/chart/echarts/common/ui/AbstractEChartsTypePane.java
  2. 5
      src/com/fr/solution/plugin/chart/echarts/map/ui/ChineseChartTypePane.java
  3. 4
      src/com/fr/solution/plugin/chart/echarts/pie/plot/EChartsPiePlot.java
  4. 15
      src/com/fr/solution/plugin/chart/echarts/pie/ui/EChartsPieChartTypePane.java

18
src/com/fr/solution/plugin/chart/echarts/common/ui/AbstractEChartsTypePane.java

@ -16,11 +16,6 @@ import java.util.List;
public abstract class AbstractEChartsTypePane extends AbstractChartTypePane{
private static final long serialVersionUID = 7743244512351499265L;
@Override
protected List<ChartImagePane> initStyleList() {
return new ArrayList<ChartImagePane>();
}
@Override
protected String[] getTypeLayoutPath() {
return ArrayUtils.EMPTY_STRING_ARRAY;
@ -57,19 +52,6 @@ public abstract class AbstractEChartsTypePane extends AbstractChartTypePane{
*/
public abstract boolean accept(Object ob);
@Override
protected List<ChartImagePane> initDemoList() {
List <ChartImagePane> demoList = new ArrayList<ChartImagePane>();
String[] iconPaths = getTypeIconPath();
String[] names = getNamesOfTypes();
ChartImagePane pane = new ChartImagePane(iconPaths[0], names[0]);
pane.isPressing = true;
demoList.add(pane);
demoList.add(new ChartImagePane(iconPaths[1], names[1]));
demoList.add(new ChartImagePane(iconPaths[2], names[2]));
return demoList;
}
/**
* 保存界面属性
*/

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

@ -25,6 +25,11 @@ public class ChineseChartTypePane extends UserDefinedChartTypePane {
}
}
@Override
protected String getPlotTypeID() {
return null;
}
/**
* 界面是否接受
* @param ob 对象是否为chart

4
src/com/fr/solution/plugin/chart/echarts/pie/plot/EChartsPiePlot.java

@ -19,6 +19,8 @@ import com.fr.stable.xml.XMLableReader;
*/
public class EChartsPiePlot extends EChartsPlot {
public static final String PLOT_ID = "EChartsPiePlot";
private RoseType pieType;
@ -43,7 +45,7 @@ public class EChartsPiePlot extends EChartsPlot {
@Override
public String getPlotID() {
return "EChartsPiePlot";
return PLOT_ID;
}
@Override

15
src/com/fr/solution/plugin/chart/echarts/pie/ui/EChartsPieChartTypePane.java

@ -54,6 +54,21 @@ public class EChartsPieChartTypePane extends AbstractEChartsTypePane {
checkDemosBackground();
}
@Override
protected String getPlotTypeID() {
return EChartsPiePlot.PLOT_ID;
}
@Override
protected String[] getTypeTipName() {
return getNamesOfTypes();
}
@Override
protected String[] getTypeLayoutTipName() {
return getNamesOfTypes();
}
@Override
public Plot getSelectedClonedPlot() {
EChartsPiePlot newPlot = null;

Loading…
Cancel
Save