APISonar


com.sonyericsson.chkbugreport.chart.Data.time

> com > sonyericsson > chkbugreport > chart > Data > time
com APIs sonyericsson APIs chkbugreport APIs chart APIs Data APIs time APIs

Example 1
private void fill(DataSet ds, ChartGenerator chart) {
        if (ds.getDataCount() == 0) {
            return;
        }
        // It could be dangerous the guess the previous state
        Data first = ds.getData(0);
        mFirstTs = first.time;
        // ds.insertData(new Data(mFirstTs, first.value == 0 ? 1 : 0));
        Data last = ds.getData(ds.getDataCount() - 1);
        mLastTs = last.time;
        ds.addData(new Data(mLastTs, last.value));
    }