Re: Plotting waveform with applets in Java



<andrewthommo@xxxxxxxxx> wrote in message news:1152617077.540111.289520@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MTP wrote:
> shibu.chandran@xxxxxxxxx a écrit :
...
> > I can plot only upto 500 points. After
> > that the applet plots outside the visible area.
[...]
> without being an expert, i think you could draw your points in a
> backbuffer (BufferedImage) and then scale the image to fit the applet
> size and draw it.

Use a buffered image if you need double buffering, but even if you are,

it is more efficient to make the BI the same size as the applet and
scale the points to fit the BI as they are being drawn.

The point is to increase the apparent resolution. It's a trick that's common used in video games: http://en.wikipedia.org/wiki/FSAA

However, if this is a line plot, I imagine it'd be more efficient to scale the data itself, as Andrew mentioned in another branch of this thread, and simply enable anti-aliasing when drawing your lines.

- Oliver

.



Relevant Pages

  • Re: Plotting waveform with applets in Java
    ... I can plot only upto 500 points. ... that the applet plots outside the visible area. ... backbuffer (BufferedImage) and then scale the image to fit the applet ... scale the points to fit the BI as they are being drawn. ...
    (comp.lang.java.gui)
  • Re: Unusual Y Axis Scale Question
    ... creatinine values (a measure of kidney function) over time. ... Although it would be easy to plot these data on a graph with standard Y-axis ... So, it's not the data that is complex, it's just the scale of the Y-axis. ...
    (microsoft.public.excel.charting)
  • Re: randomized white noise = white noise?
    ... You can draw lines on a Bode plot that are ... have a look at the relationships in your filter to see why you get ... The way around this is to scale "white" down, ... the safe scaling would be 0.408. ...
    (sci.electronics.design)
  • Re: Save an Image to a file
    ... No wait I can't use the File parameter. ... which I hope to take in a bufferedimage and upload a jpg to my server ... java package if I wanted the applet to convert the BufferedImage? ... They will however have to have a modern version of the Java Runtime ...
    (comp.lang.java.programmer)
  • Re: Save an Image to a file
    ... which I hope to take in a bufferedimage and upload a jpg to my server ... java package if I wanted the applet to convert the BufferedImage? ... They will however have to have a modern version of the Java Runtime ... Is your Applet going to be some sort of drawing program or? ...
    (comp.lang.java.programmer)