class OccupationsCsv { ArrayList names; ArrayList codes; ArrayList wages; ArrayList j2010; ArrayList j2020; ArrayList parent; public OccupationsCsv(String filename) { names = new ArrayList(); depth = new ArrayList(); codes = new ArrayList(); wages = new ArrayList(); j2010 = new ArrayList(); j2020 = new ArrayList(); parent = new ArrayList(); String[] data = loadStrings(filename); int[] par = new int[6]; for (int i=1;i 10) { rdraw(depth + 1, root.children.get(i), theta, x, y, dr+drd); drd = -drd; } } } void mouseMove(int mouseX, int mouseY) { colorMode(RGB); fill(255, 255, 255); noStroke(); rect(0, 0, width, 50); fill(0); colorMode(HSB, 100, 100, 100); for (int i=0;i= 0) { t.nodes.get(parent).children.add(i); } t.nodes.put(i, n); } t.draw(); } void draw() { t.mouseMove(mouseX, mouseY); }