package edu.calpoly.csc480.Corral.Tile;

import java.awt.*;
import javax.swing.*;

abstract public class BaseTileView extends JComponent {
	public BaseTileView() {
		bounds = new Rectangle();
	}
	
	final public BaseTile getDocument()				{return tile;}

	public void setDocument(BaseTile tile)	{
		this.tile = tile;
	}
	
	public void setBounds(int x, int y, int width, int height) {
		super.setBounds(x, y, width, height);
		
		bounds.x = x;
		bounds.y = y;
		bounds.width  = width;
		bounds.height = height;
	}
	
	protected BaseTile tile;
	protected Rectangle bounds;
}