There is random data generated for the visual to change, and I am using a neat class for object scaling event on mouse over. Please let me know what you think/how this can be improved. Thank you so much.
This is my first time posting a visualization here. This is a scientific one, simulating a process on a network. Some features:
Vertex movement and vertex and edge colour change is multithreaded using Ani
controlP5 controls (in case this is not obvious :) )
dynamic data generation server-side using CGI and R
Runds not so smoothly in applet mode. A little choppy in Safari. I think, this may be due to a large number of simultaneous threads?
Here is the link:
http://incontemplation.com/blog/?p=263 . It also has text description describing what is the visualization about (the scientific question).
I would appreciate comments/feedback for possible improvement.
Thank you everyone for useful comments and help in resolving the numerous issues I encountered during development.
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 10 more
Could anyone point in the right direction on how to solve the problem? Thanks!
I have declared all classes and methods inside classes public (but not all variables declared within classes), and signed the jar's in the applet folder.
This is the last final step separating me from battling the on-server script execution and finally almost being able to put the visualization online! So close but so far at the same time. Would highly appreciate your help.
I have a question as in the subject line. I have developed a visualization that calls a program from command line, and it works fine on my computer. However, there are difficulties putting it in an applet, because I'd need to have my script running server-side.
After searching the forum, I found one solution which involves POSTing to a URL, which invokes a server-side php script, which does what needs to be done. That is one solution, and needs the following amendments in my visualization:
- implement POSTing to the URL
- put the visualization "on hold", and display some sort of progress bar or spinning indicator showing that it is "thinking", because there may be a considerable delay in getting the program finish server-side
- Continuously test whether the output file has been produced by the server-side script, and upon discovering it, unfreeze and proceed with the visualization.
Are there other solutions?
The reason I am asking this question again, is because developing this may need substantial time because exporting to applet, signing it and uploading to website to test an implementation is a VERY tedious task, especially if needed to do it repeatedly (which it probably will, because it is hard to implement this in one shot).
I would highly appreciate the opinions and experiences of the community. Thank you so much.
I have built a visualization which works fine when compiled from Processing IDE, but is extremely slow when in applet mode. It's got some controlP5 controls, and reads small data files from HDD. By slow I mean that animations are moving sort of by fits and starts, controls respond with a delay etc. Very uncomfortable and annoying feeling.
The thing is, that it's even slow when run in applet mode on my own computer.
Please let me know if anyone has experienced this before, and what the problem might be. Thank you so much!
I have recently started using controlP5, and have been mostly happy, except for 2 things:
1. Is there a way to use controlP5 objects within other classes, and still track events?
2. The Radio Button does not really behave like a radio button. By clicking an active radiobutton it is possible to have all radio buttons deactivated. This sort of defies the purpose of radiobuttons - they are supposed to represent a set of mutually exclusive options, one of which must be selected.
Could you please help me solve question 2, and maybe broadly advise on question 1. Thanks!