//KONG Pui Cheong Ass7
import java.awt.*;

public class BilliardTable
{
    private Color tc;
    private int tx, ty, tw, th;
    public BilliardTable (Color tc, int tx, int ty, int tw, int th)
	{
	this.tc=tc;
	this.tx=tx;
	this.ty=ty;
	this.tw=tw;
	this.th=th;
	}
    public void draw (Graphics g)
	{
	g.setColor(Color.black);
	g.fillRoundRect(getTablex (),getTabley (),getTablew (),getTableh (),10,10);
	g.setColor(getTableColor ());
	g.fillRoundRect(getTablex ()+10,getTabley ()+10,getTablew ()-20,getTableh ()-20,10,10);
	}
    public Color getTableColor ()
	{
	return tc;
	}
    public int getTablex ()
	{
	return tx;
	}
    public int getTabley ()
	{
	return ty;
	}
    public int getTablew ()
	{
	return tw;
	}
    public int getTableh ()
	{
	return th;
	}
    public Color getTablec ()
	{
	return tc;
	}
} 
