Package org.timepedia.chronoscope.client.io

Examples of org.timepedia.chronoscope.client.io.DatasetReader


        timespanButton.setVisible(true);

        // feed chronoscope ...
        final Datasets<Tuple2D> datasets = new Datasets<Tuple2D>();
        DatasetReader datasetReader = ChronoscopeFactory.getInstance().getDatasetReader();
        JSOModel jsoModel = JSOModel.fromJson(chartData);

        if(chartData.startsWith("["))
        {
            for(int i=0; i<jsoModel.length(); i++)
            {
                datasets.add(datasetReader.createDatasetFromJson(
                        new GwtJsonDataset(jsoModel.get(i)))
                );
            }
        }
        else
        {
            datasets.add(datasetReader.createDatasetFromJson(
                    new GwtJsonDataset(jsoModel))
            );
        }

View Full Code Here

TOP

Related Classes of org.timepedia.chronoscope.client.io.DatasetReader

Copyright © 2018 www.massapicom. 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.