//public class Button { // int x, y; // int xsize; // int ysize; // boolean over = false; // boolean pressed = false; // PImage up = loadImage("up.jpg"); // PImage down = loadImage("down.jpg"); // String mammal_but = "view mammals"; // String bird_but = "view birds"; // String reptile_but = "view reptiles"; // String amphibian_but = "view amphibians"; // String fish_but = "view fish"; // String invertebrate_but = "view invertebrates"; // // color noroll= color(155); // color roll= color(255); // // Button(int xp, int yp, int xs, int ys) { // x = xp; // y = yp; // xsize = xs; // ysize = ys; // } // // // //Updates the feild every frame // void update() { // if ((mouseX >= x) && (mouseX <= x+xsize) && (mouseY >= y) && (mouseY <= y+ysize)) { // over = true; // } // else { // over = false; // } // } // // boolean press() { // if (over == true) { // pressed = true; // return true; // } // else { // return false; // } // } // // void release() { // pressed = false; //set to false when the mouse is released // } // // void display(String a) { // if (a == "date1") { // if (over == true){ // image(down, x, y+1, 10, 10); // fill(roll); // textAlign(LEFT, TOP); // text(mammal_but, x+16, y); // } // else { // image(up, x, y+1, 10, 10); // fill(noroll); // textAlign(LEFT, TOP); // text(mammal_but, x+16, y); // } // } // else if (a == "date2") { // if (over == true){ // image(down, x, y+1, 10, 10); // fill(roll); // textAlign(LEFT, TOP); // text(bird_but, x+16, y); // } // else { // image(up, x, y+1, 10, 10); // fill(noroll); // textAlign(LEFT, TOP); // text(bird_but, x+16, y); // } // } // else if (a == "date3") { // if (over == true){ // image(down, x, y+1, 10, 10); // fill(roll); // textAlign(LEFT, TOP); // text(reptile_but, x+16, y); // } // else { // image(up, x, y+1, 10, 10); // fill(noroll); // textAlign(LEFT, TOP); // text(reptile_but, x+16, y); // } // } // else if (a == "date4") { // if (over == true){ // image(down, x, y+1, 10, 10); // fill(roll); // textAlign(LEFT, TOP); // text(amphibian_but, x+16, y); // } // else { // image(up, x, y+1, 10, 10); // fill(noroll); // textAlign(LEFT, TOP); // text(amphibian_but, x+16, y); // } // } // else if (a == "date5") { // if (over == true){ // image(down, x, y+1, 10, 10); // fill(roll); // textAlign(LEFT, TOP); // text(fish_but, x+14, y); // } // else { // image(up, x, y+1, 10, 10); // fill(noroll); // textAlign(LEFT, TOP); // text(fish_but, x+14, y); // } // } // else if (a == "date6") { // if (over == true){ // image(down, x, y+1, 10, 10); // fill(roll); // textAlign(LEFT, TOP); // text(invertebrate_but, x+14, y); // } // else { // image(up, x, y+1, 10, 10); // fill(noroll); // textAlign(LEFT, TOP); // text(invertebrate_but, x+14, y); // } // // } // } // //}