/******************************************************************************* * Copyright (c) 2014, 2016 itemis AG 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: * Alexander Nyßen (itemis AG) - initial API and implementation * *******************************************************************************/ package org.eclipse.gef.mvc.fx.parts; import java.util.List; import java.util.Map; import org.eclipse.gef.mvc.fx.behaviors.IBehavior; import javafx.scene.Node; /** * The {@link IHandlePartFactory} interface specifies a factory method for the * creation of {@link IHandlePart}s for a given list of target * {@link IVisualPart}s, a context {@link IBehavior}, and a context {@link Map}. * * @author anyssen * */ public interface IHandlePartFactory { /** * Creates specific {@link IHandlePart}s for the given <i>targets</i>. As * additional information might be needed by the {@link IHandlePartFactory} * to identify the creation context, an additional <i>contextMap</i> is * passed in upon creation. * * @param targets * The target {@link IVisualPart}s for which handles are to be * created. * @param contextMap * A map in which additional context information for the creation * process can be placed. * @return A list of {@link IHandlePart}s that can be used to manipulate the * given targets. */ public List<IHandlePart<? extends Node>> createHandleParts( List<? extends IVisualPart<? extends Node>> targets, Map<Object, Object> contextMap); }