ChartHelper.java 文件源码

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

项目:boohee_v5.6 作者:
private Line getTargetLine() {
    if (!needDrawTargetLine()) {
        return null;
    }
    PointValue lastRecordPoint = (PointValue) this.mPointValues.get(this.mPointValues.size()
            - 1);
    PointValue targetPoint = new PointValue(((AxisValue) this.mAxisValues.get(this
            .mAxisValues.size() - 1)).getValue(), this.mTargetWeight);
    List<PointValue> points = new ArrayList();
    points.add(lastRecordPoint);
    points.add(targetPoint);
    Line line = new Line(points);
    line.setColor(this.resources.getColor(R.color.da));
    line.setPathEffect(new DashPathEffect(new float[]{15.0f, 15.0f, 15.0f, 15.0f}, 0.0f));
    line.setHasLabels(false);
    if (this.mTypeMode > 0) {
        line.setHasPoints(false);
        return line;
    }
    line.setHasPoints(true);
    return line;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号