class Text{ int numCountry; Country[]country; float x,y;////////////////////////////////////////////////////////////////////////////////////////////the position of each text int value1,value2,value3;/////////////////////////////////////////////////////////////////////////////the color of each text; String stringdata;//////////////////////////////////////////////////////////////////////////////////the name of each text int c=0; Text(int numberCountry,Country[]c,float xxx,float yyy,int vv1,int vv2,int vv3,String string, int cNumber) { this.c=cNumber; numCountry=numberCountry; country=new Country[numCountry]; for(int i=0;ix && mouseY< distance2 && mouseY>y) { if(mousePressed==true){ if(mouseButton==LEFT){ currentNumber=c; } } } if(currentNumber==c) { textFont(font); fill(v1,v2,v3); textSize(18); pushMatrix(); translate(x, y); rotate(PI/2); textAlign(LEFT); text(stringdata,0,0); popMatrix(); stroke(146,144,145); strokeCap(ROUND); strokeWeight(17); line(nx1,ny,nx2,ny);////////////////////////////////////////////////////////////////////////////////////the timeline fill(95,95,95); noStroke(); triangle(nx1+32,ny-8,nx1+19,ny-26,nx1+46,ny-26); strokeWeight(10); stroke(95,95,95); strokeJoin(ROUND); rect(nx1+6,ny-65,98,43); textFont(font); textAlign(LEFT); fill(255); textSize(14); text(years,nx1+16,ny-38);//////////////////////////////////////////////////////////////////////////when each genre happened for(int i=0;i