zoom in and out functionality by using Draw2d
-
05-06-2021 - |
Question
Is there any way for implementing Zoom in and Zoom out by using Draw2d? I dont want to use GEF framework. Is it possible to implement by using Draw2d,request you to give some examples or links. A Small change I am adding here. I can use ZoomManager. Butis there any examples avaialbel?
Solution
If you put everything in a ScalableLayeredPane
(or ScalableFreeformLayeredPane
if you use freeform figures) you can set the zoom by calling setScale(double newZoom)
on it. ZoomManager
calls the same method.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow