Project

General

Profile

Download (1.5 KB) Statistics
| Branch: | Tag: | Revision:
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.gef;
12

    
13
import org.eclipse.draw2d.geometry.Point;
14

    
15
/**
16
 * An interface used by the {@link org.eclipse.gef.tools.SelectionTool} to
17
 * obtain a DragTracker. A GraphicalViewer will return a Handle at a given
18
 * location. The <code>SelectionTool</code> looks for <code>Handles</code> first
19
 * whenever the User presses the mouse button. If a Handle is found, it usually
20
 * offers a DragTracker, although <code>null</code> can also be returned.
21
 * <P>
22
 * For keyboard accessibility purposes, a Handle can provide a Point at which
23
 * the SelectionTool should programmatically place the mouse.
24
 */
25
public interface Handle {
26

    
27
	/**
28
	 * Returns the DragTracker for dragging this Handle.
29
	 * 
30
	 * @return <code>null</code> or a <code>DragTracker</code>
31
	 */
32
	DragTracker getDragTracker();
33

    
34
	/**
35
	 * Returns an optional accessibility Point. This returned point is in
36
	 * absolute coordinates.
37
	 * 
38
	 * @return <code>null</code> or the absolute location
39
	 */
40
	Point getAccessibleLocation();
41

    
42
}
(22-22/44)