Re: Plotting waveform with applets in Java
- From: "Andrew T." <andrewthommo@xxxxxxxxx>
- Date: 11 Jul 2006 00:11:42 -0700
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.
.
- Prev by Date: Re: ask user before closing application...
- Next by Date: Re: ServerSocket in GUI
- Previous by thread: transparent window
- Next by thread: Re: Plotting waveform with applets in Java
- Index(es):
Relevant Pages
|
|