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

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

The newest version!
package edu.uci.ics.jung.visualization.control;

import java.awt.geom.Point2D;

import edu.uci.ics.jung.graph.util.EdgeType;
import edu.uci.ics.jung.visualization.BasicVisualizationServer;

/**
 * interface to support the creation of new edges by the EditingGraphMousePlugin
 * SimpleEdgeSupport is a sample implementation
 * @author tanelso
 *
 * @param  the vertex type
 * @param  the edge type
 */
public interface EdgeSupport {
	
	void startEdgeCreate(BasicVisualizationServer vv, V startVertex, 
			Point2D startPoint, EdgeType edgeType);
	
	void midEdgeCreate(BasicVisualizationServer vv, Point2D midPoint);
	
	void endEdgeCreate(BasicVisualizationServer vv, V endVertex);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy