Android Open Source - AnkiStats Rectangle

From Project

Back to project page AnkiStats.


The source code is released under:

GNU General Public License

If you think the Android project AnkiStats listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

//w  w  w.j  ava  2  s.  co m

public class Rectangle {
    Rect rect;
    public int x;
    public int y;
    public int width;
    public int height;
    public Rectangle(int width, int heigth){
        this(new Rect(0,0,width,heigth));
    public Rectangle(Rect rect) {
        this.rect = rect;
        this.height = rect.height();
        this.width = rect.width();
    public int width(){
        return width;
    public int height(){
        return height;
    public Rect getRect(){
        return new Rect(x, y, x+width, y+height);

Java Source Code List