class Applicant { int id; float reviewScore; float scienceGPA; float cumGPA; float interviewScore; float pcHours; String appStatus; color fillColor; boolean display; public Applicant(int id, float reviewScore, float scienceGPA, float cumGPA, float interviewScore, float pcHours, String appStatus) { this.id = id; this.reviewScore = reviewScore; this.scienceGPA = scienceGPA; this.cumGPA = cumGPA; this.interviewScore = interviewScore; this.pcHours = pcHours; this.appStatus = appStatus; this.fillColor = (Integer) statusColors.get(appStatus); this.display = true; } void draw() { if (display) { int xx = (int) TX(pcHours); int yy = (int) TY(scienceGPA); noStroke(); fill(fillColor); rect(xx, yy, ELLIPSE_SIZE, ELLIPSE_SIZE); // display mouse hover details if (dist(mouseX, mouseY, xx, yy) < ELLIPSE_SIZE / 2) { String appInfo = "Id = " + id + ", Cumulative GPA = " + cumGPA + ", Science GPA = " + scienceGPA + ", Patient Care Hours = " + pcHours + ", Review Score = " + reviewScore + ", Interview Score = " + interviewScore; textAlign(LEFT, CENTER); text(appInfo, 225, 650); } } } void filter(String filterStatus) { if (appStatus.equals(filterStatus)) { display = !display; } } }