tags:

views:

16

answers:

0

Hello,

I have to animate plotting of ECG signal in Java. I have signal in two forms, BINARY and TEXTUAL file. Right now i have buffer with specified capacity that holds finite amount of values read from file. If I read new value in Java program from buffer, buffer has one space empty and it reads next value from file..and so on, till it reads all values from file.

Now what I have to do is to plot signal in my view (with referent coordinate system) coming from right side and moving left in periodic intervals. These periodic updates are not problem. I have timers ready as triggers for action of moving whole signal. The problem is, how to effectively do the plotting, so it looks realistic as on ECG instruments in hospitals. The speed of GUI refreshing is very important. How would you approach this with Java Swing? Is there a well known pattern, best practice or anything?

Signal is discrete time signal , each dot is pair of values (time, Amplitude). Also, is there any charts plotting library for Swing you could highly recommend based on your experience.

Regards.