• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Zooming in java applet

 
chirayu joshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ,

I am newbie to the java....working on a piece of applet code...............
First it reads all parameters from HTML tags and stores in global variables. Then it sends query to CGI to read graph data. Then it converts data for plotting and draws graph. There is a option for user to select 1-24 hours. Based on the selection graph will be plotted by plotting only selected data. Every 30 sec it sends query to CGI for collecting data.

I need to enchance it by implementing zoom in zoom out feature with x-y axis granuality changing with zoom.

Please help me out.
 
chirayu joshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Attaching current graph ...
untitled.JPG
[Thumbnail for untitled.JPG]
Graph image
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, but 2254 lines of code is about 2200 too many.

post *something* you can zoom (perhaps an image), the process is likely to be the same.

post what you try, but keep it < 100 lines
 
chirayu joshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just wanted class involved which may zoom the above graph and maintain granuality and shall support the above code....
Probably i want at this piece of code once user scroll the mouse on any part of graph then it should zoom or any such class that takes the max and min values of x and y axis and zoom accordingly on mouse scroll....currently values at x and y axis are static.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seriously, what do you expect us to do with that?
 
chirayu joshi
Greenhorn
Posts: 10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:seriously, what do you expect us to do with that?


Tell me the class that can be helpful in zooming the graph and that maintains the x-y axis granuality.

The code uses java 1.5 environment and that cannot be changed.

I need to enchance it by implementing zoom in zoom out feature with x-y axis granuality changing with zoom in .
My worry is how to do that?I know its Frustrating question ...but i am here to get suggestion from the java experts so that I can quickly learn and implement this stuff.

Please help me out.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic