public class ChartToJsonConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DATE_FORMAT |
static java.lang.String |
DEFAULT_DATE_TIME_FORMAT |
static java.lang.String |
DEFAULT_TIME_FORMAT |
Constructor and Description |
---|
ChartToJsonConverter() |
ChartToJsonConverter(java.lang.String resultFileName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertPieChart(PieChartDescription description,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data) |
java.lang.String |
convertSerialChart(SerialChartDescription description,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data) |
static com.google.gson.GsonBuilder |
createGsonBuilder()
Returns default GSON builder for configuration serializer.
|
static com.google.gson.Gson |
getSharedGson() |
public static final java.lang.String DEFAULT_DATE_FORMAT
public static final java.lang.String DEFAULT_TIME_FORMAT
public static final java.lang.String DEFAULT_DATE_TIME_FORMAT
public ChartToJsonConverter()
public ChartToJsonConverter(java.lang.String resultFileName)
public static com.google.gson.Gson getSharedGson()
public static com.google.gson.GsonBuilder createGsonBuilder()
public java.lang.String convertSerialChart(SerialChartDescription description, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data)
public java.lang.String convertPieChart(PieChartDescription description, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data)