All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.uci.ics.jung.visualization.control.EdgeSupport Maven / Gradle / Ivy

package edu.uci.ics.jung.visualization.control;

import edu.uci.ics.jung.visualization.BasicVisualizationServer;
import java.awt.geom.Point2D;

/**
 * interface to support the creation of new edges by the EditingGraphMousePlugin SimpleEdgeSupport
 * is a sample implementation
 *
 * @author Tom Nelson
 * @param  the node type
 * @param  the edge type
 */
public interface EdgeSupport {

  void startEdgeCreate(BasicVisualizationServer vv, N startNode, Point2D startPoint);

  void midEdgeCreate(BasicVisualizationServer vv, Point2D midPoint);

  void endEdgeCreate(BasicVisualizationServer vv, N endNode);

  void abort(BasicVisualizationServer vv);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy