class BUTTON { //Initalize variables int x, xOrginal; float y, yOrginal; float buttonHeight, buttonLength; int clickedMouseX, clickedMouseY; String string; color mouseOut, mouseOver; boolean buttonMoved; //Attributes BUTTON (int xTEMP, float yTEMP, String stringTEMP, float buttonLengthTEMP) { //Assign attributes xOrginal = xTEMP; yOrginal = yTEMP; string = stringTEMP; buttonLength = buttonLengthTEMP; buttonHeight = textAscent()+textDescent()+6; //Assign other variables x = xOrginal; y = yOrginal; buttonMoved = false; } //Methods //Position the boxes void position(){ clickedMouseX = mouseX; clickedMouseY = mouseY; //if the mouse is in the box, animate the box if (((mouseX>x)&&(mouseX=y)&&(mouseYxOrginal)&&(clickedMouseX=yOrginal)&&(clickedMouseYxOrginal)&&(mouseX=yOrginal)&&(mouseYxOrginal)&&(mouseX=yOrginal)&&(mouseY