Package com.odb.view.dashboard.client

Examples of com.odb.view.dashboard.client.TimeSeriesDataVO


    ArrayList<DataVO> dataSetList = new ArrayList<DataVO>();
    int rowNum = seriesCount * seriesSetCount;

    List<DataSourceSeries> series = odbCore.getLatestSeriesData(dataSourceId, rowNum);
    for (int i = 0; i < series.size(); i += seriesCount) {
      TimeSeriesDataVO dataSet = new TimeSeriesDataVO(series.get(i).getDateTime());
      for (int j = 0; j < seriesCount; j++) {
        int idx = i+j;
        dataSet.put(series.get(idx).getSeriesIndex(), series.get(idx).getSeriesIndexSeqVal());
      }
      dataSetList.add(dataSet);
    }
    return dataSetList;
    // throw new GraphNotAvailableException();
View Full Code Here


    return series;
  }

  @Override
  public void updateChartData(DataVO data, Label errorLabel) {
    TimeSeriesDataVO ts = (TimeSeriesDataVO)data;
    chart.getStore().remove(0);
    chart.getStore().add(ts);
    timeAxis.setStartDate(chart.getStore().get(0).getKey());
    timeAxis.setEndDate(chart.getStore().get(chart.getStore().size()-1).getKey());
    chart.redrawChart();
View Full Code Here

    return series;
  }

  @Override
  public void updateChartData(DataVO data, Label errorLabel) {
    TimeSeriesDataVO ts = (TimeSeriesDataVO)data;
    chart.getStore().remove(0);
    chart.getStore().add(ts);
    timeAxis.setStartDate(chart.getStore().get(0).getKey());
    timeAxis.setEndDate(chart.getStore().get(chart.getStore().size()-1).getKey());
    chart.redrawChart();
View Full Code Here

TOP

Related Classes of com.odb.view.dashboard.client.TimeSeriesDataVO

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.