package plots;

import java.awt.*;

public class UnstickyButton extends ButtonCanvas {
	
	public UnstickyButton(String text, int w, int h) {
		super(text, w, h);
	}
	
	public UnstickyButton(String text, int w, int h, Color down, Color up) {
		super(text, w, h, down, up);
	}
	
	public UnstickyButton(int w, int h, Image img0, Image img1) {
		super(w, h, img0, img1);
	}

	public boolean mouseDown(Event e, int x, int y) {
		cbg = PRESSED;
		update(gfx);
		return(super.mouseDown(e, x, y));
	}
	
	public boolean mouseUp(Event e, int x, int y) {
		cbg = UNPRESSED;
		update(gfx);
		return(super.mouseUp(e, x, y));
	}
}
