

import java.awt.*;


public class ColorSelectionRectangle extends Object {
	
	Rectangle rect;
	Color c;
	int x,y,w,h;
	Color interfaceColor = new Color(30,30,90);

	boolean chosen = false;

	ColorSelectionRectangle(Color c, int x, int y, int w, int h) {

		this.rect = new Rectangle(x,y,w,h);
		this.c = c;
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;

	}

	void drawColorSelectionRectangle(Graphics g) {
		
		g.setColor(c);
		g.fillRect(x+6, y+2, 4, h-4);

		if (chosen) g.setColor(interfaceColor);
		else g.setColor(Color.white);
	
		g.drawRect(x+4, y+2, 8, h-4);
	}


}

