org.android.activityminer.app.filter
Class SeriesAdapter

Package class diagram package SeriesAdapter
java.lang.Object
  extended by org.android.activityminer.app.filter.SeriesAdapter

public class SeriesAdapter
extends Object

The time line series type.


Field Summary
private  com.jjoe64.graphview.GraphView.GraphViewData[] data
          The graph view data array
private  com.jjoe64.graphview.GraphViewSeries series
          The adapted graph view series
 
Constructor Summary
SeriesAdapter(String description, com.jjoe64.graphview.GraphViewSeries.GraphViewSeriesStyle style, Double[] values, Long[] timeStamps)
          Constructor
 
Method Summary
 double getMaxTS()
          Getter for the maximum time stamp
 com.jjoe64.graphview.GraphViewSeries getSeries()
          Getter for the series
 int getSize()
          Getter for the size
protected static com.jjoe64.graphview.GraphView.GraphViewData[] toGraphViewData(Double[] values, Long[] timeStamps)
          Method to create the graph view data type from the raw time series data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private final com.jjoe64.graphview.GraphView.GraphViewData[] data
The graph view data array


series

private final com.jjoe64.graphview.GraphViewSeries series
The adapted graph view series

Constructor Detail

SeriesAdapter

public SeriesAdapter(String description,
                     com.jjoe64.graphview.GraphViewSeries.GraphViewSeriesStyle style,
                     Double[] values,
                     Long[] timeStamps)
Constructor

Parameters:
description - the series description
style - the series style
values - the value array
timeStamps - time stamps array
Method Detail

getSize

public int getSize()
Getter for the size

Returns:
the size

toGraphViewData

protected static final com.jjoe64.graphview.GraphView.GraphViewData[] toGraphViewData(Double[] values,
                                                                                      Long[] timeStamps)
Method to create the graph view data type from the raw time series data.

Parameters:
values - the values for the series
timeStamps - the time stamps for the series
Returns:
the graph view data representation for this time series

getMaxTS

public final double getMaxTS()
Getter for the maximum time stamp

Returns:
the maximum time stamp

getSeries

public final com.jjoe64.graphview.GraphViewSeries getSeries()
Getter for the series

Returns:
the series