문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top