lecho.lib.hellocharts.renderer.ComboLineColumnChartRenderer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hellocharts-library Show documentation
Show all versions of hellocharts-library Show documentation
Charting library for Android compatible with API 8+(Android 2.2).
The newest version!
package lecho.lib.hellocharts.renderer;
import android.content.Context;
import lecho.lib.hellocharts.provider.ColumnChartDataProvider;
import lecho.lib.hellocharts.provider.LineChartDataProvider;
import lecho.lib.hellocharts.view.Chart;
public class ComboLineColumnChartRenderer extends ComboChartRenderer {
private ColumnChartRenderer columnChartRenderer;
private LineChartRenderer lineChartRenderer;
public ComboLineColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider columnChartDataProvider,
LineChartDataProvider lineChartDataProvider) {
this(context, chart, new ColumnChartRenderer(context, chart, columnChartDataProvider),
new LineChartRenderer(context, chart, lineChartDataProvider));
}
public ComboLineColumnChartRenderer(Context context, Chart chart, ColumnChartRenderer columnChartRenderer,
LineChartDataProvider lineChartDataProvider) {
this(context, chart, columnChartRenderer, new LineChartRenderer(context, chart, lineChartDataProvider));
}
public ComboLineColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider columnChartDataProvider,
LineChartRenderer lineChartRenderer) {
this(context, chart, new ColumnChartRenderer(context, chart, columnChartDataProvider), lineChartRenderer);
}
public ComboLineColumnChartRenderer(Context context, Chart chart, ColumnChartRenderer columnChartRenderer,
LineChartRenderer lineChartRenderer) {
super(context, chart);
this.columnChartRenderer = columnChartRenderer;
this.lineChartRenderer = lineChartRenderer;
renderers.add(this.columnChartRenderer);
renderers.add(this.lineChartRenderer);
}
}