public void drawTargetCaloryLine(Canvas drawCanvas) {
if (this.targetCalory > 0) {
float currentLeft = 0.0f;
float currentRight = 0.0f;
int target = this.targetCalory;
Viewport currentViewport = this.computator.getCurrentViewport();
if (currentViewport != null) {
currentLeft = currentViewport.left;
currentRight = currentViewport.right;
}
float rawX1 = this.computator.computeRawX(currentLeft);
float rawX2 = this.computator.computeRawX(currentRight);
float y = this.computator.computeRawY((float) target);
Path path1 = new Path();
path1.moveTo(rawX1, y);
path1.lineTo(rawX2, y);
drawCanvas.drawPath(path1, this.caloryLinePaint);
}
}
ColumnChartRenderer.java 文件源码
java
阅读 83
收藏 0
点赞 0
评论 0
项目:boohee_v5.6
作者:
评论列表
文章目录