class Doc { void dibujarforma() { //strokeWeight(8); setfecha_doc=height-40-(fecha_doc*(height-80))/(y-forigen); docx= width-130+(mes_doc*10); fill(c2); rectMode(CENTER); rect(docx,setfecha_doc, 6, 6); strokeWeight(1); if(ref_roca.equals (rocaSelect)==true) { stroke(120, 80); float mediapoint=dist(setposx, setposy,docx, setfecha_doc); curve(setposx+mediapoint/3, setposy+mediapoint/3,setposx, setposy, docx, setfecha_doc , docx + mediapoint/3, setfecha_doc + mediapoint/3); textoslabel_his(); } if(overRect_doc() == true) { textoslabel_his(); setfecha2=setfecha_doc; setdocy=screenY(docx, setfecha_doc, 0); setdocx=screenX(docx, setfecha_doc, 0); transp_docover=255; transy=height/2+transy-setposy2; transx=width/2+transx-setposx2; //////////como parece l aimagen del documento float mediapoint2=dist(setposx2, setposy2 , setdocx, setdocy); b = loadImage(img_doc); noTint(); image(b, mediapoint2+15,setfecha2-30); /// fin imagen del documento /* if (mousePressed==true){ if(url_doc.equals(id_doc) == true) { println("nolink"); } else{ goURL(url_doc, "_new"); println(url_doc); } }*/ } } void textoslabel_his() { label2line0=titulo_doc; label2line1=autor_doc; label2line2=grupo_doc; label2line3=fecha_doc + forigen; label2line4=url_doc; setfecha2=setfecha_doc; docSelect=ref_roca; set_ctxt=ctxt; } boolean overRect_doc() { rango=4; equis=docx; ye=setfecha_doc; if(mouseX >= equis-rango && mouseX <= equis+rango && mouseY >= ye-rango && mouseY <= ye+rango){ return true; } else { return false; } } } void nivelhistorico() { //scala_linea de tiempo pushMatrix(); textFont(futura30,12); textAlign(LEFT); fill(125); stroke(100); line(width-ancho_nivelhis, 40, width-ancho_nivelhis, height-50); text(y, width-ancho_nivelhis-40, 30); text(forigen, width-ancho_nivelhis-40, height-40); fill(190); text("JAN / MAY / SEP / DEC", width-ancho_nivelhis, 30); translate(width-ancho_nivelhis-5, height-270); rotate(radians(-90)); textFont(futura30, 12); text("HISTORICAL LEVEL", 90, 0); popMatrix(); }