View Javadoc
1   package edu.uci.ics.jung.visualization.control;
2   
3   import java.awt.geom.Point2D;
4   
5   import edu.uci.ics.jung.graph.util.EdgeType;
6   import edu.uci.ics.jung.visualization.BasicVisualizationServer;
7   
8   /**
9    * interface to support the creation of new edges by the EditingGraphMousePlugin
10   * SimpleEdgeSupport is a sample implementation
11   * @author tanelso
12   *
13   * @param <V> the vertex type
14   * @param <V> the edge type
15   */
16  public interface EdgeSupport<V,E> {
17  	
18  	void startEdgeCreate(BasicVisualizationServer<V,E> vv, V startVertex, 
19  			Point2D startPoint, EdgeType edgeType);
20  	
21  	void midEdgeCreate(BasicVisualizationServer<V,E> vv, Point2D midPoint);
22  	
23  	void endEdgeCreate(BasicVisualizationServer<V,E> vv, V endVertex);
24  
25  }