Tools/ActionsBuilder/Sources/actionsbuilder.max.js
/*
        * Constructor
        * @param viewer: the graph viewer
        */
Constructor
@param viewer: the graph viewer
Constructor @param viewer : the graph viewer
function ContextMenu(viewer) {
            this.showing = false;
            this.savedColor = Raphael.rgb(255, 255, 255);
            this.overColor = Raphael.rgb(140, 200, 230);
            this._viewer = null;
            this.elements = [
                { text: "Reduce", node: null, action: "onReduce" },
                { text: "Delete", node: null, action: "onRemoveNode" },
                { text: "Delete branch", node: null, action: "onRemoveBranch" },
                { text: "Connect / Disconnect", node: null, action: "onDetachAction" },
                { text: "Copy", node: null, action: "onCopyStructure" },
                { text: "Paste", node: null, action: "onPasteStructure" },
                { text: "", node: null, action: null } 
            ];
            this._viewer = viewer;
            this.attachControl(this._viewer.paper.canvas);
        }
function ContextMenu ( viewer ) { this . showing = false ; this . savedColor = Raphael . rgb ( 255 , 255 , 255 ) ; this . overColor = Raphael . rgb ( 140 , 200 , 230 ) ; this . _viewer = null ; this . elements = [ { text : "Reduce" , node : null , action : "onReduce" } , { text : "Delete" , node : null , action : "onRemoveNode" } , { text : "Delete branch" , node : null , action : "onRemoveBranch" } , { text : "Connect / Disconnect" , node : null , action : "onDetachAction" } , { text : "Copy" , node : null , action : "onCopyStructure" } , { text : "Paste" , node : null , action : "onPasteStructure" } , { text : "" , node : null , action : null } ] ; this . _viewer = viewer ; this . attachControl ( this . _viewer . paper . canvas ) ; }
Constructor
 @param viewer: the graph viewer
Constructor @param viewer : the graph viewer
// Add other elements here // Color separator (top) // Members // Configure