@@ -0,0 +1,1021 @@
+package com.annimon.jecp.android;%0D%0A%0D%0Aimport android.graphics.Canvas;%0D%0Aimport android.graphics.Paint;%0D%0A%0D%0A/**%0D%0A *%0D%0A * @author aNNiMON%0D%0A */%0D%0Apublic class JecpGraphics implements com.annimon.jecp.JecpGraphics %7B%0D%0A    %0D%0A    private final Paint mPaint;%0D%0A    private Canvas mCanvas;%0D%0A%0D%0A    public JecpGraphics(Paint paint) %7B%0D%0A        mPaint = paint;%0D%0A    %7D%0D%0A    %0D%0A    public void setCanvas(Canvas mCanvas) %7B%0D%0A        this.mCanvas = mCanvas;%0D%0A    %7D%0D%0A    %0D%0A    public void drawLine(int x1, int y1, int x2, int y2) %7B%0D%0A        mCanvas.drawLine(x1, y1, x2, y2, mPaint);%0D%0A    %7D%0D%0A%0D%0A    public void drawRect(int x, int y, int width, int height) %7B%0D%0A        mPaint.setStyle(Paint.Style.STROKE);%0D%0A        mCanvas.drawRect(x, y, x + width, y + height, mPaint);%0D%0A    %7D%0D%0A%0D%0A    public void fillRect(int x, int y, int width, int height) %7B%0D%0A        mPaint.setStyle(Paint.Style.FILL);%0D%0A        mCanvas.drawRect(x, y, x + width, y + height, mPaint);%0D%0A    %7D%0D%0A%0D%0A    public void setColor(int color) %7B%0D%0A        mPaint.setColor(color);%0D%0A    %7D%0D%0A    %0D%0A%7D%0D%0A

Add JecpGraphics Android