use of com.android.tools.adtui.model.DefaultDataSeries in project android by JetBrains.
the class StateChartVisualTest method createComponentsList.
@Override
protected List<Animatable> createComponentsList() {
long nowUs = TimeUnit.NANOSECONDS.toMicros(System.nanoTime());
mTimeGlobalRangeUs = new Range(nowUs, nowUs + TimeUnit.SECONDS.toMicros(60));
mAnimatedTimeRange = new AnimatedTimeRange(mTimeGlobalRangeUs, 0);
DefaultDataSeries<MockFruitState> networkSeries = new DefaultDataSeries<>();
DefaultDataSeries<MockStrengthState> radioSeries = new DefaultDataSeries<>();
RangedSeries<MockFruitState> networkData = new RangedSeries<>(mTimeGlobalRangeUs, networkSeries);
RangedSeries<MockStrengthState> radioData = new RangedSeries<>(mTimeGlobalRangeUs, radioSeries);
mNetworkStatusChart = new StateChart<>(getFruitStateColor());
mNetworkStatusChart.addSeries(networkData);
mNetworkDataEntries.add(networkSeries);
mRadioStateChart = new StateChart<>(getStrengthColor());
mRadioStateChart.addSeries(radioData);
mRadioDataEntries.add(radioSeries);
return Arrays.asList(mAnimatedTimeRange, mNetworkStatusChart, mRadioStateChart);
}
Aggregations