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 005 package graphlab.plugins.main.rightclick; 006 007 import graphlab.platform.core.AbstractAction; 008 import graphlab.platform.plugin.PluginMethods; 009 010 /** 011 * @author azin azadi 012 013 */ 014 public class RightClickPluginMethods implements PluginMethods { 015 /** 016 * registers a popup menu that will be shown on each graph that assigned to Graph.name in blackboard (after the assignment) 017 * 018 * @param id the string shown on mnu 019 * @param index place of it 020 * @param n this action will be enabled(in it's group) and then the performJob will be called 021 */ 022 public void registerGraphPopupMenu(String id, int index, AbstractAction n, boolean forceEnable) { 023 PopupMenuHandler.registerGraphPopupMenu(id, index, n, forceEnable); 024 } 025 026 public void registerVertexPopupMenu(String id, int index, AbstractAction n, boolean forceEnable) { 027 PopupMenuHandler.registerVertexPopupMenu(id, index, n, forceEnable); 028 } 029 030 public void registerEdgePopupMenu(String id, int index, AbstractAction n, boolean forceEnable) { 031 PopupMenuHandler.registerEdgePopupMenu(id, index, n, forceEnable); 032 } 033 034 }