@Component
public class HighchartSeriesUtil
extends java.lang.Object
| Constructor and Description |
|---|
HighchartSeriesUtil() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
convertDateTimeToMilliseconds(java.util.Date date)
Convert date to long keeping the timezone valued date.
|
java.lang.Long |
convertDateToMilliseconds(java.util.Date date)
Convert date to long keeping the timezone valued date.
|
java.lang.Object |
convertValue(MolgenisFieldTypes.FieldTypeEnum fieldTypeEnum,
java.lang.Object value)
Convert values to match the Highcharts demand when using json
|
Series |
parseBoxPlotSerieToSeries(BoxPlotSerie boxPlotSerie)
Parse the boxPlotSerie to a Series object computable with the Highcharts box plot series standard
|
java.util.List<Series> |
parseToBoxPlotSeriesList(java.util.List<BoxPlotSerie> boxPlotSeries)
Parse the boxPlotSeries objects list to a Series objects list.
|
java.util.List<Series> |
parseToXYDataSeriesList(java.util.List<XYDataSerie> xYDataSeries)
Parse the xyDataSeries objects list to a Series objects list.
|
Series |
parsexYDataSerieToSeries(XYDataSerie xYDataSerie)
Parse the xYDataSerie to a Series object computable with the Highcharts xy series standard.
|
java.util.List<java.lang.Object> |
parseXYDataToList(java.util.List<XYData> xydata,
MolgenisFieldTypes.FieldTypeEnum xValueFieldTypeEnum,
MolgenisFieldTypes.FieldTypeEnum yValueFieldTypeEnum)
Parse the x and y data-objects to object computable with the Highcharts scatter plot standard.
|
public java.util.List<Series> parseToXYDataSeriesList(java.util.List<XYDataSerie> xYDataSeries)
xYDataSeries - public java.util.List<Series> parseToBoxPlotSeriesList(java.util.List<BoxPlotSerie> boxPlotSeries)
boxPlotSeries - public Series parsexYDataSerieToSeries(XYDataSerie xYDataSerie)
xYDataSerie - public Series parseBoxPlotSerieToSeries(BoxPlotSerie boxPlotSerie)
boxPlotSerie - public java.util.List<java.lang.Object> parseXYDataToList(java.util.List<XYData> xydata, MolgenisFieldTypes.FieldTypeEnum xValueFieldTypeEnum, MolgenisFieldTypes.FieldTypeEnum yValueFieldTypeEnum)
xydata - xValueFieldTypeEnum - yValueFieldTypeEnum - public java.lang.Object convertValue(MolgenisFieldTypes.FieldTypeEnum fieldTypeEnum, java.lang.Object value)
fieldTypeEnum - value - public java.lang.Long convertDateToMilliseconds(java.util.Date date)
public java.lang.Long convertDateTimeToMilliseconds(java.util.Date date)
Copyright © 2014. All Rights Reserved.