So I have little experience with graphical drawing in java so my first question is essentially: what tutorials shall I view in order to draw a graph in java?
The second question is my main task. I would like to be able to draw a graph in java that is updating in realtime (or every 10 seconds) with new data taken from a file i.e: I will pipe a file to the program and every so often it will check the file for new data, and update the visual graph with the new data, but this has to be in real time meaning the graph keeps all previous data already drawn and will be seen to be moving left to right (upon the reaching the edge of the screen the X-axis will then start moving left with higher numbers.
Are there any already written algorithms that do this? or if I have to accomplish this myself could anyone give me a pointer on where to begin?
Thanks,
Euden
Why not use JFreeChart ? It’s a widely used charting library. It claims not to be suitable for realtime use, but for the frequencies you’re talking about (every 10s) it should be perfectly suitable.
This answer links to some example code.