Files
Upsilon/apps/statistics/histogram_banner_view.cpp
Émilie Feral 6e9528103b [apps] Factorize banner view implementation.
Change-Id: Iedc4350d2bed0f1b1c597c2492e028293f58d5f2
2017-01-09 15:08:56 +01:00

25 lines
493 B
C++

#include "histogram_banner_view.h"
#include "../constant.h"
#include <assert.h>
#include <poincare.h>
namespace Statistics {
HistogramBannerView::HistogramBannerView() :
m_intervalView(0.5f, 0.5f),
m_sizeView(0.5f, 0.5f),
m_frequencyView(0.5f, 0.5f)
{
}
int HistogramBannerView::numberOfSubviews() const {
return 3;
}
TextView * HistogramBannerView::textViewAtIndex(int i) {
TextView * textViews[3] = {&m_intervalView, &m_sizeView, &m_frequencyView};
return textViews[i];
}
}