blob: 694876b7ad10bacbf71bb96ba0f1f5d85f2e9047 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.gef.handles;
import org.eclipse.draw2d.ConnectionLocator;
import org.eclipse.gef.ConnectionEditPart;
/**
* A handle used at the end of the {@link org.eclipse.draw2d.Connection}. This
* is treated differently than the start of the Connection.
*
* @deprecated use {@link ConnectionEndpointHandle}
*/
public final class ConnectionEndHandle extends ConnectionEndpointHandle {
/**
* Creates a new ConnectionEndHandle, sets its owner to <code>owner</code>,
* and sets its locator to a {@link ConnectionLocator}.
*
* @param owner
* the ConnectionEditPart owner
*/
public ConnectionEndHandle(ConnectionEditPart owner) {
super(owner, ConnectionLocator.TARGET);
}
/**
* Creates a new ConnectionEndHandle with its owner set to
* <code>owner</code>. If the handle is fixed, it cannot be dragged.
*
* @param owner
* the ConnectionEditPart owner
* @param fixed
* if true, handle cannot be dragged
*/
public ConnectionEndHandle(ConnectionEditPart owner, boolean fixed) {
super(owner, fixed, ConnectionLocator.TARGET);
}
/**
* Creates a new ConnectionEndHandle.
*/
public ConnectionEndHandle() {
super(ConnectionLocator.TARGET);
}
}