1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package pl.edu.agh.cast.editpart;
19
20 import org.eclipse.draw2d.ScalableFigure;
21 import org.eclipse.draw2d.Viewport;
22 import org.eclipse.gef.editparts.ScalableFreeformRootEditPart;
23 import org.eclipse.gef.editparts.ZoomManager;
24
25
26
27
28
29 public class ZoomableScalableFreeformRootEditPart extends ScalableFreeformRootEditPart {
30 private ZoomManager zoomManager;
31
32
33
34
35 public ZoomableScalableFreeformRootEditPart() {
36 zoomManager = new RectangleZoomManager((ScalableFigure)getScaledLayers(), (Viewport)getFigure());
37 }
38
39
40 public ZoomManager getZoomManager() {
41 return this.zoomManager;
42 }
43
44 }