/* ** ======================================================== ** MAT259 Visualizaing Data | Winter 2011 | George Legrady ** ======================================================= ** Project 2 : Top 100 Most Checked Out Items from 2005 to 2010 ** ============================================================== ** Nichole Stockman ** ================ ** ** ** ===================================================================== ** For information on how the data was parsed, how the application works ** and some key notes and observations, please see the README file.` ** Thank you! ** ===================================================================== */ public class Panel { int leftEdge; int topEdge; int rightEdge; int bottomEdge; int bColor; Panel(int l, int t, int r, int b){ leftEdge = l; topEdge = t; rightEdge = r; bottomEdge = b; bColor = bkgdColor; } Panel(int l, int t, int r, int b, int col){ leftEdge = l; topEdge = t; rightEdge = r; bottomEdge = b; bColor = col; } public void draw(){ noStroke(); fill(bColor); quad(leftEdge, topEdge, rightEdge, topEdge, rightEdge, bottomEdge, leftEdge, bottomEdge); // quad(0, Global.hOffset, Global.wOffset, Global.hOffset, Global.wOffset, Global.Height, 0, Global.graphHeight); } }