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);
}
ColumnChartRenderer.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:boohee_v5.6
作者:
评论列表
文章目录