View Javadoc

1   /*
2    * This file is a part of CAST project.
3    * (c) Copyright 2007, AGH University of Science & Technology
4    * https://caribou.iisg.agh.edu.pl/trac/cast
5    *
6    * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7    * You may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    * http://www.eclipse.org/legal/epl-v10.html
10   */
11  /*
12   * File: ExtendedScalableFreeformRootEditPart.java
13   * Created: Aug 19, 2009
14   * Author: Kamil
15   * $Id$
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   * @author AGH CAST Team
28   */
29  public class ZoomableScalableFreeformRootEditPart extends ScalableFreeformRootEditPart {
30  	private ZoomManager zoomManager;
31  
32  	/**
33  	 * Constructor for ScalableFreeformRootEditPart.
34  	 */
35  	public ZoomableScalableFreeformRootEditPart() {
36  		zoomManager = new RectangleZoomManager((ScalableFigure)getScaledLayers(), (Viewport)getFigure());
37  	}
38  
39  	/** {@inheritDoc} */
40  	public ZoomManager getZoomManager() {
41  		return this.zoomManager;
42  	}
43  
44  }