-2

Is it possible to draw EKG (electrocardiogram) graph and flashing light without using any container, if not what is the alternative?

  • and what is the format of the input data, and what is the output device, and where does the flashing light come in? – bmargulies Jan 11 '10 at 23:58
  • This question is quite vague. To help us answer your question: What kind of system is this (desktop application, web application, embedded device, etc.)? What frameworks are you using (GUI framework, web framework, etc.)? What design do you have in mind? What specifically do you want to know to help with that design? – ZoogieZork Jan 12 '10 at 00:04
  • some context might be helpful – John Boker Jan 12 '10 at 00:08

1 Answers1

1

If the goal is to model a traditional oscilloscope display, I would extend JPanel rather than Container. An instance of Timer is probably adequate for the required frame rate. The trace itself may be modeled with a FIFO Queue of co-ordinates that is shifted with each frame. It would be tempting to use a palette of varying brightness to simulate the trace, but I think using an AlphaComposite offers greater fidelity.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045