package plots;

import java.awt.*;

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

	public boolean mouseDown(Event e, int x, int y) {
		if (cbg == PRESSED) { return(true); }
		else return(super.mouseDown(e, x, y));
	}

	public boolean mouseUp(Event e, int x, int y) {
		return(true);
	}
}
