java - can we zoom in zoom out the drawing we draw on the Canvas? -


We have an old (more than 10yrs old) Java swing applicationatin, which has many mandal and connection between those circles (line ) On the basis of laboratory data, on a JACANVAS (a sub-class of the generic).

Since the data became larger and larger, we can no longer display the entire drawing. We have put Jeswans in JSL, but this feature does not have the ability to scroll.

Can we add zoom-out zoom for this? if so, how? I know that we can zoom the image but drawing on canvas is an image?

Edit:

Edit:

We appeal to those circles and with the graphics Paint Component (Graphics G) in line method

You have a scaling paint component near the method Graphics2D transform the object how you can learn it in Java 2D.


Comments