blob: 1a36f23e69fa21e5eaf103ef28e3653be34f26d7 [file] [log] [blame]
/*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2010 SAP AG.
* 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:
* SAP AG - initial API, implementation and documentation
*
* </copyright>
*
*******************************************************************************/
package org.eclipse.graphiti.testtool.sketch.features.create;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.mm.pictograms.Connection;
import org.eclipse.graphiti.mm.pictograms.CurvedConnection;
import org.eclipse.graphiti.services.Graphiti;
/**
* The Class SketchCreateCurvedConnectionFeature.
*/
public class SketchCreateCurvedConnectionFeature extends AbstractSketchCreateSimpleConnectionFeature {
/**
* Instantiates a new sketch create curved connection feature.
*
* @param fp
* the fp
* @param name
* the name
* @param description
* the description
*/
public SketchCreateCurvedConnectionFeature(IFeatureProvider fp, String name, String description) {
super(fp, name, description);
}
@Override
protected Connection createConnection() {
CurvedConnection curvedConnection = Graphiti.getPeCreateService().createCurvedConnection(
new double[] { 0.2d, -100d, 0.5d, 100d, 0.6d, -100d },
getDiagram());
return curvedConnection;
}
}