//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010 huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/god4j
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : god4j@lists.sourceforge.net 
 */
//----------------------------END  LICENSE-----------------------------
package org.huihoo.god4j.jgraph;
import java.awt.event.MouseEvent;

import org.jgraph.graph.EdgeView;
import org.jgraph.graph.GraphContext;
/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class JGraphTransitionHandler extends EdgeView.EdgeHandle
{
	public JGraphTransitionHandler(EdgeView edge, GraphContext ctx)
	{
		super(edge, ctx);
	}
	// Override Superclass Method
	public boolean isAddPointEvent(MouseEvent event)
	{
		// Points are Added using Shift-Click
		return event.isShiftDown();
	}
	// Override Superclass Method
	public boolean isRemovePointEvent(MouseEvent event)
	{
		// Points are Removed using Control-Click 
		return event.isControlDown();
	}
}