com.github.abel533.echarts.json
类 OptionUtil

java.lang.Object
  继承者 com.github.abel533.echarts.json.OptionUtil

public class OptionUtil
extends Object

Description: 提供浏览器查看图标的功能 - 必须能够联网

作者:
liuzh

方法摘要
static String browse(Option option)
          在浏览器中查看Option效果
static void browse(String url)
          打开浏览器
static String exportToHtml(Option option)
          导出到html(tmp文件夹)
static String exportToHtml(Option option, String folderPath)
          导出到指定文件夹,文件名随机
static String exportToHtml(Option option, String folderPath, String fileName)
          导出到指定文件
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

exportToHtml

public static String exportToHtml(Option option)
导出到html(tmp文件夹)

参数:
option -
返回:
返回html路径

exportToHtml

public static String exportToHtml(Option option,
                                  String folderPath)
导出到指定文件夹,文件名随机

参数:
option -
folderPath -
返回:
返回html路径

exportToHtml

public static String exportToHtml(Option option,
                                  String folderPath,
                                  String fileName)
导出到指定文件

参数:
option -
folderPath -
fileName -
返回:
返回html路径

browse

public static String browse(Option option)
在浏览器中查看Option效果

参数:
option -

browse

public static void browse(String url)
                   throws Exception
打开浏览器

参数:
url -
抛出:
Exception


Copyright © 2014. All rights reserved.