Skip to content

Commit

Permalink
Cosmetic fixing.
Browse files Browse the repository at this point in the history
  • Loading branch information
yccheok committed Jul 22, 2013
1 parent cf17525 commit a484f99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions HoloGraphLibrary/src/com/echo/holographlibrary/BarGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ public void onDraw(Canvas ca) {
r.set((int)((padding*2)*count + padding + barWidth*count), (int)(getHeight()-bottomPadding-(usableHeight*(p.getValue()/maxValue))), (int)((padding*2)*count + padding + barWidth*(count+1)), (int)(getHeight()-bottomPadding));

Path path = new Path();
path.addRect(new RectF(r.left-selectPadding, r.top-selectPadding, r.right+selectPadding, r.bottom+selectPadding), Path.Direction.CW);
p.setPath(path);
p.setRegion(new Region(r.left-selectPadding, r.top-selectPadding, r.right+selectPadding, r.bottom+selectPadding));
path.addRect(new RectF(r.left-selectPadding, r.top-selectPadding, r.right+selectPadding, r.bottom+selectPadding), Path.Direction.CW);
p.setPath(path);
p.setRegion(new Region(r.left-selectPadding, r.top-selectPadding, r.right+selectPadding, r.bottom+selectPadding));

this.p.setColor(p.getColor());
this.p.setAlpha(255);
this.p.setColor(p.getColor());
this.p.setAlpha(255);
canvas.drawRect(r, this.p);
this.p.setTextSize(20);
canvas.drawText(p.getName(), (int)(((r.left+r.right)/2)-(this.p.measureText(p.getName())/2)), getHeight()-5, this.p);
Expand Down

0 comments on commit a484f99

Please sign in to comment.