
com.github.abel533.echarts.json.OptionExtender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ECharts Show documentation
Show all versions of ECharts Show documentation
这是一个针对ECharts2.0版本的Java类库,实现了所有ECharts中的Json结构对应的Java对象,并且可以很方便的创建Option,Series等
package com.github.abel533.echarts.json;
import com.github.abel533.echarts.Option;
/**
* Option扩展类,目前实现了使用fastjson做生成json字符串
* @author zhangjunhui [email protected]
*/
public class OptionExtender {
/**
* 在浏览器中查看
*/
public void view() {
OptionUtil.browse(option);
}
private Option option;
/**
* 获取option.
*
* @return the option
* @since JDK 1.7
*/
public Option getOption() {
return option;
}
/**
* 设置option.
*
* @param option the option to set
* @since JDK 1.7
*/
public void setOption(Option option) {
this.option = option;
}
@Override
public String toString() {
return FastJsonUtil.format(option);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy