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: IMoveable.java
13   * Created: 2007-00-00
14   * Author: cast
15   * $Id: IMoveable.java 2770 2009-04-21 19:17:34Z kpietak $
16   */
17  
18  package pl.edu.agh.cast.model.visual.backward;
19  
20  import org.eclipse.draw2d.geometry.Point;
21  
22  /**
23   * Interface of a movable {@link IDiagram} element.
24   *
25   * @author AGH CAST Team
26   */
27  public interface IMoveable {
28  
29  	/**
30  	 * Sets new location of movable element.
31  	 *
32  	 * @param newLocation
33  	 *            new location point
34  	 */
35  	public void setLocation(Point newLocation);
36  
37  	/**
38  	 * Returns current location of movable element.
39  	 *
40  	 * @return current element location
41  	 */
42  	public Point getLocation();
43  
44  	/**
45  	 * Returns label of movable element.
46  	 *
47  	 * @return element label
48  	 */
49  	public String getLabel();
50  
51  }