001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
004    package graphlab.graph.event;
005    
006    import graphlab.graph.graph.EdgeModel;
007    import graphlab.graph.graph.VertexModel;
008    
009    /**
010     * the base interface which should be used to implement any GraphRenderer
011     *
012     * @author Azin Azadi
013     */
014    public interface GraphModelListener {
015        public void vertexAdded(VertexModel v);
016    
017        public void vertexRemoved(VertexModel v);
018    
019        public void edgeAdded(EdgeModel e);
020    
021        public void edgeRemoved(EdgeModel e);
022    
023        public void graphCleared();
024    
025        public void repaintGraph();
026    }