Variable: enabled
Specifies if events are handled. Default is true.
Variable: eventListeners
Holds the event names and associated listeners in an array. The array contains the event name followed by the respective listener for each registered listener.
Variable: eventSource
Optional source for events. Default is null.
Variable: eventsEnabled
Specifies if events can be fired. Default is true.
Variable: factoryMethod
Function that is used to create the popup menu. The function takes the
current panning handler, the
Variable: itemCount
Contains the number of times
Variable: labels
Specifies if any labels should be visible. Default is true.
Variable: smartSeparators
Specifies if separators should only be added if a menu item follows them. Default is false.
Variable: submenuImage
URL of the image to be used for the submenu icon.
Variable: useLeftButtonForPopup
Specifies if popupmenus should be activated by clicking the left mouse button. Default is false.
Variable: zIndex
Specifies the zIndex for the popupmenu and its shadow. Default is 1006.
Adds a checkmark to the given menuitem.
Function: addItem
Adds the given item to the given parent item. If no parent item is specified then the item is added to the top-level menu. The return value may be used as the parent argument, ie. as a submenu item. The return value is the table row that represents the item.
Paramters:
title - String that represents the title of the menu item.
image - Optional URL for the image icon.
funct - Function associated that takes a mouseup or touchend event.
parent - Optional item returned by
Function: addListener
Binds the specified function to the given event name. If no event name is given, then the listener is registered for all events.
The parameters of the listener are the sender and an
Function: addSeparator
Adds a horizontal separator in the given parent item or the top-level menu if no parent is specified.
Parameters:
parent - Optional item returned by
Function: createSubmenu
Creates the nodes required to add submenu items inside the given parent
item. This is called in
Parameters:
parent - An item returned by
Function: destroy
Destroys the handler and all its resources and DOM nodes.
Function: fireEvent
Dispatches the given event to the listeners which are registered for the event. The sender argument is optional. The current execution scope ("this") is used for the listener invocation (see <mxUtils.bind>).
Example:
(code) fireEvent(new mxEventObject("eventName", key1, val1, .., keyN, valN)) (end)
Parameters:
evt -
Function: getEventSource
Returns
Function: hideMenu
Removes the menu and all submenus.
Function: hideSubmenu
Removes all submenus inside the given parent.
Parameters:
parent - An item returned by
Function: init
Initializes the shapes required for this vertex handler.
Function: isEnabled
Returns true if events are handled. This implementation
returns
Function: isEventsEnabled
Returns
Function: isMenuShowing
Returns true if the menu is showing.
Function: isPopupTrigger
Returns true if the given event is a popupmenu trigger for the optional given cell.
Parameters:
me -
Function: popup
Shows the popup menu for the given event and cell.
Example:
(code) graph.panningHandler.popup(x, y, cell, evt) { mxUtils.alert('Hello, World!'); } (end)
Function: removeListener
Removes all occurrences of the given listener from
Function: setEnabled
Enables or disables event handling. This implementation
updates
Function: setEventSource
Sets
Function: setEventsEnabled
Sets
Function: showMenu
Shows the menu.
Function: showSubmenu
Shows the submenu inside the given parent row.
Generated using TypeDoc
Variable: autoExpand
Specifies if submenus should be expanded on mouseover. Default is false.