/*
 * Copyright (c) 2006-2008 MiniMe. Code released under The MIT/X Window System
 * License. Full license text can be found in license.txt
 */
package minime;

/**
 * The Rectangle class represents rectangle.
 * 
 * @author aaa
 * 
 */
public class Rectangle
{
    /** the x coordinate of the rectangle */
    public int x;
    /** the y coordinate of the rectangle */
    public int y;
    /** the width of the rectangle */
    public int w;
    /** the height of the rectangle */
    public int h;

    /**
     * Constructs a rectangle instance, the x,y coordinates are 0, the width and
     * height also 0.
     * 
     */
    public Rectangle()
    {
        this(0, 0, 0, 0);
    }

    /**
     * Constructs a rectangle instance with given x, y coordinates, with given
     * width and height.
     * 
     * @param x
     *            the x coordinate of the rectangle
     * @param y
     *            the y coordinate of the rectangle
     * @param w
     *            the width of the rectangle
     * @param h
     *            the height of the rectangle
     * 
     */
    public Rectangle(int x, int y, int w, int h)
    {
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
    }
}
