blob: 504bd95f1a0127e7d155912f23101fd1bd3413c0 [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 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 implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.authoring.gef.edit;
import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.IFigure;
import org.eclipse.epf.authoring.gef.figures.EndNodeFigure;
import org.eclipse.epf.diagram.model.TypedNode;
import org.eclipse.gef.editpolicies.DirectEditPolicy;
/**
* EditPart for Final(or End) node
*
* @author Phong Nguyen Le
* @since 1.0
*/
public class EndNodeEditPart extends NodeEditPart {
public EndNodeEditPart(TypedNode model) {
super(model);
}
/**
* @see org.eclipse.epf.authoring.gef.edit.BaseEditPart#createDirectEditPolicy()
*/
protected DirectEditPolicy createDirectEditPolicy() {
return null;
}
/**
* @see org.eclipse.epf.authoring.gef.edit.BaseEditPart#createFigure()
*/
protected IFigure createFigure() {
EndNodeFigure f = new EndNodeFigure();
f.setBackgroundColor(ColorConstants.black);
f.setForegroundColor(ColorConstants.red);
f.setSize(24, 24);
return f;
}
}