本文整理汇总了Java中lecho.lib.hellocharts.provider.ColumnChartDataProvider类的典型用法代码示例。如果您正苦于以下问题:Java ColumnChartDataProvider类的具体用法?Java ColumnChartDataProvider怎么用?Java ColumnChartDataProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ColumnChartDataProvider类属于lecho.lib.hellocharts.provider包,在下文中一共展示了ColumnChartDataProvider类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ColumnChartRenderer
import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public ColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider dataProvider) {
super(context, chart);
this.dataProvider = dataProvider;
this.subcolumnSpacing = ChartUtils.dp2px(this.density, 1);
this.touchAdditionalWidth = ChartUtils.dp2px(this.density, 4);
this.columnPaint.setAntiAlias(true);
this.columnPaint.setStyle(Style.FILL);
this.columnPaint.setStrokeCap(Cap.SQUARE);
this.caloryLinePaint.setAntiAlias(true);
this.caloryLinePaint.setStyle(Style.STROKE);
this.caloryLinePaint.setStrokeWidth((float) ChartUtils.dp2px(this.density, 1));
this.caloryLinePaint.setColor(ChartUtils.DEFAULT_TARGET_COLOR);
this.caloryTextPaint.setAntiAlias(true);
this.caloryTextPaint.setStyle(Style.FILL);
this.caloryTextPaint.setTextSize((float) ChartUtils.dp2px(this.density, 12));
this.caloryTextPaint.setColor(ChartUtils.COLOR_BACKGROUND);
}
示例2: ColumnChartRenderer
import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public ColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider dataProvider) {
super(context, chart);
this.dataProvider = dataProvider;
subcolumnSpacing = ChartUtils.dp2px(density, DEFAULT_SUBCOLUMN_SPACING_DP);
touchAdditionalWidth = ChartUtils.dp2px(density, DEFAULT_COLUMN_TOUCH_ADDITIONAL_WIDTH_DP);
columnPaint.setAntiAlias(true);
columnPaint.setStyle(Paint.Style.FILL);
columnPaint.setStrokeCap(Cap.SQUARE);
}
示例3: ComboLineColumnChartRenderer
import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public ComboLineColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider columnChartDataProvider, LineChartDataProvider lineChartDataProvider) {
super(context, chart);
this.columnChartRenderer = new ColumnChartRenderer(context, chart, columnChartDataProvider);
this.lineChartRenderer = new LineChartRenderer(context, chart, lineChartDataProvider);
this.renderers.add(this.columnChartRenderer);
this.renderers.add(this.lineChartRenderer);
}
示例4: PreviewColumnChartRenderer
import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public PreviewColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider dataProvider) {
super(context, chart, dataProvider);
previewPaint.setAntiAlias(true);
previewPaint.setColor(Color.LTGRAY);
previewPaint.setStrokeWidth(ChartUtils.dp2px(density, DEFAULT_PREVIEW_STROKE_WIDTH_DP));
}
示例5: ComboLineColumnChartRenderer
import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public ComboLineColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider columnChartDataProvider,
LineChartDataProvider lineChartDataProvider) {
this(context, chart, new ColumnChartRenderer(context, chart, columnChartDataProvider),
new LineChartRenderer(context, chart, lineChartDataProvider));
}
示例6: PreviewColumnChartRenderer
import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public PreviewColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider dataProvider) {
super(context, chart, dataProvider);
this.previewPaint.setAntiAlias(true);
this.previewPaint.setColor(-3355444);
this.previewPaint.setStrokeWidth((float) ChartUtils.dp2px(this.density, 2));
}