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.handles;
|
12
|
|
13
|
import org.eclipse.draw2d.geometry.Rectangle;
|
14
|
|
15
|
/**
|
16
|
* Identifies figures which use an alternative rectangle to place their handles.
|
17
|
* Normally, handles will appear around a GraphicalEditPart's figure's bounds.
|
18
|
* However, if that figure has an irregular shape, it may implement this
|
19
|
* interface to indicate that some rectangle other than its bounding rectangle
|
20
|
* should be used to place handles.
|
21
|
*
|
22
|
* @author hudsonr
|
23
|
*/
|
24
|
public interface HandleBounds extends org.eclipse.draw2d.IFigure {
|
25
|
|
26
|
/**
|
27
|
* Returns the Rectangle around which handles are to be placed. The
|
28
|
* Rectangle should be in the same coordinate system as the figure itself.
|
29
|
*
|
30
|
* @return The rectangle used for handles
|
31
|
*/
|
32
|
Rectangle getHandleBounds();
|
33
|
|
34
|
}
|