Re: Plotting waveform with applets in Java



shibu.chandran@xxxxxxxxx wrote:
hi,

For plotting a waveform I was using drawLine method of graphics class
[drawLine(int x1, int y1, int x2, int y2) ]. I dont want to use third
party utilities like jfreecharts, since my requirement was simple. I am
facing a problem while plotting. I can plot only upto 500 points. After
that the applet plots outside the visible area. Basically I want to
increase the resolution of the applet so that I can accomodate as many
points as I want(Around 10000-12000).

I am not sure if I understand you correctly.

If the applet is 500 pixels wide, the maximum resolution it
has at its disposal is 500.

You can scale your 10-12000 points so that the highest point falls
on the 500th pixel, but there is no way 'increase the resolution' of
an applet that is a constant size.

Note: Follow-Ups set to c.l.j.gui only

Andrew T.

.



Relevant Pages

  • Screen Resolution
    ... applet interacts with xorg.conf and the X-Server. ... this up as a supported resolution). ... However, two of my other images won't support a 1280x1024 mode, even ...
    (GNOME)
  • Screen Resolution
    ... applet interacts with xorg.conf and the X-Server. ... this up as a supported resolution). ... However, two of my other images won't support a 1280x1024 mode, even ...
    (GNOME)
  • Re: Paint - resolution
    ... > the applet to change that. ... The DPI is irrelevant. ... The resolution is what he asked for, ...
    (microsoft.public.windowsxp.general)
  • Resolution of time scale in a figure
    ... Plotting a data with a time scale of this type: ... I can't understand why the resolution of time scale in the ... In the plot I lose resolution. ... Prev by Date: ...
    (comp.soft-sys.matlab)