Moving things all up in here mid post
I couldn't figure out why I couldn't reply there.
It seems that your data has a static state should you don't even need to have a running loop. Basically you would have view style one for example your graph that would draw it self at the start of the program as say a graph and then have the program re render itself to reflect the state change to a map. The logic would be something like.
-----------------------------------------------------------------------
draw(){
if(map){
render your ellipses;
noloop; #this will stop the program from re drawing
}
if (graph){
render you graph bars;
noloop;
}
}
mouseClicked(){
if (mouseX==graphButtonX && mouseY==graphButtonY){#check to see if button is clicked
graph==true; #set the graph to draw
redraw(); #run your draw function again to update changes
}
if (mouseX==mapButtonX && mouseY==mapButtonY){
map==true; #set the map to draw
redraw(); #run your draw function again to update changes
}
}
--------------------------------------------------------------------------
your classes should reflect the handling and parsing of your input for that some silly guy wrote this book. I read it when I started, ok I skimmed it but it was a solid skim. Its something that is worth buying ...........Can you believe those terrible people who Just pirate books. (most people can't even give proper credit)
http://www.google.com/products/catalog?q=ben+fry+visualizing+data&oe=utf-8&clien...