Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008 Anyware Technologies All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Simon Bernard (Anyware Technologies) - initial API and implementation $Id: AlphaXYLayoutEditPolicy.java,v 1.1 2008/08/12 13:24:50 jlescot Exp $ /
package org.eclipse.emf.ecoretools.diagram.edit.policies;
import  org.eclipse.gmf.runtime.diagram.ui.editpolicies.XYLayoutEditPolicy;

XYLayoutEditPolicy which draw rectangle feedback with alpha property instead of XOR
Useful to have a best display with gradient figure
creation : 17 mai. 08

Author(s):
Simon Bernard
public class AlphaXYLayoutEditPolicy extends XYLayoutEditPolicy {
	protected IFigure createSizeOnDropFeedback(CreateRequest createRequest) {
		addFeedback(feedack);
		return feedack;
	}
New to GrepCode? Check out our FAQ X