AbstractChartRenderer.java 文件源码

java
阅读 44 收藏 0 点赞 0 评论 0

项目:boohee_v5.6 作者:
public AbstractChartRenderer(Context context, Chart chart) {
    this.context = context;
    this.density = context.getResources().getDisplayMetrics().density;
    this.scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;
    this.chart = chart;
    this.computator = chart.getChartComputator();
    this.resources = context.getResources();
    this.labelMargin = ChartUtils.dp2px(this.density, this.DEFAULT_LABEL_MARGIN_DP);
    this.labelOffset = this.labelMargin;
    this.labelPaint.setAntiAlias(true);
    this.labelPaint.setStyle(Style.FILL);
    this.labelPaint.setTextAlign(Align.LEFT);
    this.labelPaint.setTypeface(Typeface.defaultFromStyle(1));
    this.labelPaint.setColor(-1);
    this.labelBackgroundPaint.setAntiAlias(true);
    this.labelBackgroundPaint.setStyle(Style.FILL);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号