-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathList.pde
More file actions
26 lines (23 loc) · 859 Bytes
/
Copy pathList.pde
File metadata and controls
26 lines (23 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class List{
ArrayList<DataPoint> dps;
PFont arial;
List(ArrayList<DataPoint> dps){
this.dps = dps;
arial = loadFont("ArialMT-15.vlw");
}
void draw(){
background(255);
int x = 0; int y = 20;
for(DataPoint dp : dps){ // in final version dps would be an arraylist excluding the rows filtered out in main screen
if (SCREENY>y){
textFont(arial);
fill(0);
text(dp.flightDate + ": " + dp.marketingCarrier + dp.marketingCarrierFlightNum + " from " + dp.originAirport + ", " + dp.originCity + " to " + dp.destinationAirport + ", " + dp.destinationCity, x ,y); //may change to excel like grids
y +=20;
}
//else
//add widget "next page" that changes screen to see the next part of the list
//add widget "previous page" possibly
}
}
}