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
|
* Specializes {@link EditPartViewer} adding the ability to hit-test
|
17
|
* {@link Handle Handles}.
|
18
|
*
|
19
|
* @see org.eclipse.gef.ui.parts.GraphicalViewerImpl
|
20
|
*/
|
21
|
public interface GraphicalViewer extends EditPartViewer {
|
22
|
|
23
|
/**
|
24
|
* Returns the <code>Handle</code> at the specified Point. Returns
|
25
|
* <code>null</code> if no handle exists at the given Point. The specified
|
26
|
* point should be relative to the
|
27
|
* {@link org.eclipse.swt.widgets.Scrollable#getClientArea() client area}
|
28
|
* for this Viewer's <code>Control</code>.
|
29
|
*
|
30
|
* @param p
|
31
|
* the location relative to the Control's client area
|
32
|
* @return Handle <code>null</code> or a Handle
|
33
|
*/
|
34
|
Handle findHandleAt(Point p);
|
35
|
|
36
|
}
|