Back to project page Verlet.
The source code is released under:
Copyright 2013 Devicement http://devicement.com/ Copyright 2013 Sub Protocol and other contributors http://subprotocol.com/ Permission is hereby granted, free of charge, to any person obtaining a co...
If you think the Android project Verlet listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.verletandroid.Graphics; /* w ww . j a va2 s .co m*/ import android.graphics.Canvas; import android.graphics.Paint; import org.verletandroid.VerletCore.Vec2; /** * Created with IntelliJ IDEA. * User: George * Date: 28.04.13 * Time: 15:24 * To change this template use File | Settings | File Templates. */ public interface IGraphics { public IPixmap newPixmap(String fileName, PixmapFormat format); public Paint getPaint(); public Canvas getCanvas(); public void clear(int color); public void setColorPen(int color); public void setStrokeWidth(float width); public void setPenStyle(Paint.Style style); public void drawPixel(int x, int y); public void drawText(String text, float x, float y); public void drawLine(float x, float y, float x2, float y2); public void drawRect(int x, int y, int width, int height); public void drawArc(float x, float y, float radius, float startAngle, float endAngle); public void drawPixmap(IPixmap pixmap, int x, int y, int srcX, int srcY, int srcWidth, int srcHeight); public void drawPixmap(IPixmap pixmap, int x, int y); public int getWidth(); public int getHeight(); void drawCircle(float x, float y, float v); void drawPath(Vec2[] pathPoint); }