aspose file tools*
The moose likes Applets and the fly likes Zooming in java applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Zooming in java applet" Watch "Zooming in java applet" New topic
Author

Zooming in java applet

chirayu joshi
Greenhorn

Joined: Aug 01, 2012
Posts: 10
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

Joined: Aug 01, 2012
Posts: 10
Attaching current graph ...



[Thumbnail for untitled.JPG]

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Aug 01, 2012
Posts: 10
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

Joined: Jun 09, 2003
Posts: 4632
seriously, what do you expect us to do with that?
chirayu joshi
Greenhorn

Joined: Aug 01, 2012
Posts: 10
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.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Zooming in java applet
 
Similar Threads
Servlet to Applet
Zoom effect to Applet
2d arrays
2d arrays
mouse event