public void setup() {  
	
	this.inputFile = this.args[0];
		
	//this.screenHeight = displayHeight;
	//this.screenWidth = displayWidth;
	this.screenHeight = 700;
	this.screenWidth = 1250;	
	this.borderWidth = 30; //Width of the query de-selection area
	
	size(this.screenWidth,this.screenHeight); 
	
	 if (frame != null) { //Make sketch re-sizeable when running as a java application (not applet)
		 frame.setResizable(true);
     }	
      
	this.graph = new ForceDirectedGraph(this,inputFile);
    
	//For creating/changing the force directed layout
	this.g = new GraphGenerator(this,graph.timelineLabels.size());
	//this.g = new GraphGenerator(this,6);
    //g.process("Van_saved",this.screenWidth,this.screenHeight);
	
	this.recording = false;	
	this.clickedBorder = false;
	this.t = 0;	
    this.timeSlider = new Slider(this,graph.timelineLabels,70,650,550);  
    this.selectedNode = -1;
    this.selectedEdge = -1;   
    //this.toggleLocalPersistence = 0;
    this.globalViewButton = new Button(this,100,40,650,625,"Global View",700,650,16);
    this.editModeButton = new Button(this,100,40,890,625,"Edit Mode",940,650,16);   
    this.aggregateButton = new Button(this,100,40,770,625,"Aggregate",820,650,16); 
    this.saveButton = new Button(this,140,50,1010,620,"Save Layout",1080,652,18); 
    this.newLayoutButton = new Button(this,100,40,470,625,"New Layout",520,650,16); 
    this.aggregateButton.clickedBorderColour = getColours.MintGreen;
    this.aggregateButton.clickedColour = getColours.MintGreen;
    
    //Input parameters for changing the force directed layout
    this.cp5 = new ControlP5(this);
    PFont f = createFont("Sans-Serif",10);
   
    attractionInput = cp5.addTextfield("Attraction (default 0.75)").setPosition(100,635).setFont(f).setSize(70,20).setColor(255)
    		.setColorBackground(getColours.Ink.getRGB()).setColorForeground(getColours.Ink.getRGB())
    		.setColorActive(getColours.LightSlate2.getRGB()).setColorCaptionLabel(getColours.Ink.getRGB()).hide();
    
    repulsionInput = cp5.addTextfield("Repulsion (default 0.75)").setPosition(220,635).setFont(f).setSize(70,20).setColor(255)
    		.setColorBackground(getColours.Ink.getRGB()).setColorForeground(getColours.Ink.getRGB())
    		.setColorActive(getColours.LightSlate2.getRGB()).setColorCaptionLabel(getColours.Ink.getRGB()).hide();
    
    numIterationsInput = cp5.addTextfield("Max Iterations (default 1000)").setPosition(340,635).setFont(f).setSize(70,20).setColor(255)
    		.setColorBackground(getColours.Ink.getRGB()).setColorForeground(getColours.Ink.getRGB())
    		.setColorActive(getColours.LightSlate2.getRGB()).setColorCaptionLabel(getColours.Ink.getRGB()).hide();   
  }