Package br.com.digilabs.jqplot.chart.data

Source Code of br.com.digilabs.jqplot.chart.data.LinedData

package br.com.digilabs.jqplot.chart.data;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import br.com.digilabs.jqplot.json.JSONArray;


/**
*
* @author bernardo.moura
*/
public class LinedData<T extends Number> extends AbstractCollectionData<T> {
   
    private List<T> data = new ArrayList<T>();

    public LinedData() {
    }
   
    public LinedData(T... values) {
        addValues(values);
    }   

    public Collection<T> getData() {
        return data;
    }

    public String toJsonString() {
        JSONArray jsonArray = new JSONArray();
        jsonArray.put(data);
        return jsonArray.toString();
    }   

   
}
TOP

Related Classes of br.com.digilabs.jqplot.chart.data.LinedData

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.