org.eclipse.gef.handles.ResizeHandle Java Examples

The following examples show how to use org.eclipse.gef.handles.ResizeHandle. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FixedAspectRatioResizableEditPolicy.java    From statecharts with Eclipse Public License 1.0 6 votes vote down vote up
@Override
@SuppressWarnings({ "rawtypes", "unchecked" })
protected void createResizeHandle(List handles, final int direction) {
	handles.add(new ResizeHandle(getHost(), direction) {
		@Override
		protected DragTracker createDragTracker() {
			return new LiveFeedbackResizeTracker(getHost(), direction) {
				@Override
				public void mouseDrag(MouseEvent event, EditPartViewer viewer) {
					event.stateMask |= SWT.SHIFT;
					super.mouseDrag(event, viewer);
				}
			};
		};
	});
}
 
Example #2
Source File: NodeElementSelectionEditPolicy.java    From ermasterr with Apache License 2.0 4 votes vote down vote up
static Handle createHandle(final GraphicalEditPart owner, final int direction) {
    final ResizeHandle handle = new ERDiagramResizeHandle(owner, direction);
    return handle;
}
 
Example #3
Source File: DiagramWalkerSelectionEditPolicy.java    From erflute with Apache License 2.0 4 votes vote down vote up
static Handle createHandle(GraphicalEditPart owner, int direction) {
    final ResizeHandle handle = new ERDiagramResizeHandle(owner, direction);
    return handle;
}
 
Example #4
Source File: NodeElementSelectionEditPolicy.java    From ermaster-b with Apache License 2.0 4 votes vote down vote up
static Handle createHandle(GraphicalEditPart owner, int direction) {
	ResizeHandle handle = new ERDiagramResizeHandle(owner, direction);
	return handle;
}