1
|
/*******************************************************************************
|
2
|
* Copyright (c) 2000, 2010 IBM Corporation and others.
|
3
|
* All rights reserved. This program and the accompanying materials
|
4
|
* are made available under the terms of the Eclipse Public License v1.0
|
5
|
* which accompanies this distribution, and is available at
|
6
|
* http://www.eclipse.org/legal/epl-v10.html
|
7
|
*
|
8
|
* Contributors:
|
9
|
* IBM Corporation - initial API and implementation
|
10
|
*******************************************************************************/
|
11
|
package org.eclipse.draw2d;
|
12
|
|
13
|
/**
|
14
|
* Classes which implement this interface provide a method to notify that an
|
15
|
* anchor has moved.
|
16
|
* <P>
|
17
|
* Instances of this class can be added as listeners of an Anchor using the
|
18
|
* <code>addAnchorListener</code> method and removed using the
|
19
|
* <code>removeAnchorListener</code> method.
|
20
|
*/
|
21
|
public interface AnchorListener {
|
22
|
|
23
|
/**
|
24
|
* Called when an anchor has moved to a new location.
|
25
|
*
|
26
|
* @param anchor
|
27
|
* The anchor that has moved.
|
28
|
*/
|
29
|
void anchorMoved(ConnectionAnchor anchor);
|
30
|
|
31
|
}
|