1 package jp.sfjp.gokigen.a01c.liveview.gridframe;
3 import android.graphics.Canvas;
4 import android.graphics.Color;
5 import android.graphics.Paint;
6 import android.graphics.RectF;
11 class GridFrameDrawer0 implements IGridFrameDrawer
18 public void drawFramingGrid(Canvas canvas, RectF rect, Paint paint)
20 float w = (rect.right - rect.left) / 3.0f;
21 float h = (rect.bottom - rect.top) / 3.0f;
23 canvas.drawLine(rect.left + w, rect.top, rect.left + w, rect.bottom, paint);
24 canvas.drawLine(rect.left + 2.0f * w, rect.top, rect.left + 2.0f * w, rect.bottom, paint);
25 canvas.drawLine(rect.left, rect.top + h, rect.right, rect.top + h, paint);
26 canvas.drawLine(rect.left, rect.top + 2.0f * h, rect.right, rect.top + 2.0f * h, paint);
27 canvas.drawRect(rect, paint);
31 public int getDrawColor()
33 return (Color.argb(210,245,245,245));