mxPopupMenuHandler

Event handler that creates popupmenus.

Summary
mxPopupMenuHandlerEvent handler that creates popupmenus.
Functions
mxPopupMenuHandlerConstructs an event handler that creates a mxPopupMenu.
Variables
graphReference to the enclosing mxGraph.
selectOnPopupSpecifies if cells should be selected if a popupmenu is displayed for them.
clearSelectionOnBackgroundSpecifies if cells should be deselected if a popupmenu is displayed for the diagram background.
triggerXX-coordinate of the mouse down event.
triggerYX-coordinate of the mouse down event.
Functions
initInitializes the shapes required for this vertex handler.
isSelectOnPopupHook for returning if a cell should be selected for a given mxMouseEvent.
mouseDownHandles the event by initiating the panning.
mouseMoveHandles the event by updating the panning on the graph.
mouseUpHandles the event by setting the translation on the view or showing the popupmenu.
getCellForPopupEventHook to return the cell for the mouse up popup trigger handling.
destroyDestroys the handler and all its resources and DOM nodes.

Functions

mxPopupMenuHandler

function mxPopupMenuHandler(graph,
factoryMethod)

Constructs an event handler that creates a mxPopupMenu.

Variables

graph

mxPopupMenuHandler.prototype.graph

Reference to the enclosing mxGraph.

selectOnPopup

mxPopupMenuHandler.prototype.selectOnPopup

Specifies if cells should be selected if a popupmenu is displayed for them.  Default is true.

clearSelectionOnBackground

mxPopupMenuHandler.prototype.clearSelectionOnBackground

Specifies if cells should be deselected if a popupmenu is displayed for the diagram background.  Default is true.

triggerX

mxPopupMenuHandler.prototype.triggerX

X-coordinate of the mouse down event.

triggerY

mxPopupMenuHandler.prototype.triggerY

X-coordinate of the mouse down event.

Functions

init

mxPopupMenuHandler.prototype.init = function()

Initializes the shapes required for this vertex handler.

isSelectOnPopup

mxPopupMenuHandler.prototype.isSelectOnPopup = function(me)

Hook for returning if a cell should be selected for a given mxMouseEvent.  This implementation returns selectOnPopup.

mouseDown

mxPopupMenuHandler.prototype.mouseDown = function(sender,
me)

Handles the event by initiating the panning.  By consuming the event all subsequent events of the gesture are redirected to this handler.

mouseMove

mxPopupMenuHandler.prototype.mouseMove = function(sender,
me)

Handles the event by updating the panning on the graph.

mouseUp

mxPopupMenuHandler.prototype.mouseUp = function(sender,
me)

Handles the event by setting the translation on the view or showing the popupmenu.

getCellForPopupEvent

mxPopupMenuHandler.prototype.getCellForPopupEvent = function(me)

Hook to return the cell for the mouse up popup trigger handling.

destroy

mxPopupMenuHandler.prototype.destroy = function()

Destroys the handler and all its resources and DOM nodes.

function mxPopupMenuHandler(graph,
factoryMethod)
Constructs an event handler that creates a mxPopupMenu.
Basic popup menu.
mxPopupMenuHandler.prototype.graph
Reference to the enclosing mxGraph.
Extends mxEventSource to implement a graph component for the browser.
mxPopupMenuHandler.prototype.selectOnPopup
Specifies if cells should be selected if a popupmenu is displayed for them.
mxPopupMenuHandler.prototype.clearSelectionOnBackground
Specifies if cells should be deselected if a popupmenu is displayed for the diagram background.
mxPopupMenuHandler.prototype.triggerX
X-coordinate of the mouse down event.
mxPopupMenuHandler.prototype.triggerY
X-coordinate of the mouse down event.
mxPopupMenuHandler.prototype.init = function()
Initializes the shapes required for this vertex handler.
mxPopupMenuHandler.prototype.isSelectOnPopup = function(me)
Hook for returning if a cell should be selected for a given mxMouseEvent.
Base class for all mouse events in mxGraph.
mxPopupMenuHandler.prototype.mouseDown = function(sender,
me)
Handles the event by initiating the panning.
mxPopupMenuHandler.prototype.mouseMove = function(sender,
me)
Handles the event by updating the panning on the graph.
mxPopupMenuHandler.prototype.mouseUp = function(sender,
me)
Handles the event by setting the translation on the view or showing the popupmenu.
mxPopupMenuHandler.prototype.getCellForPopupEvent = function(me)
Hook to return the cell for the mouse up popup trigger handling.
mxPopupMenuHandler.prototype.destroy = function()
Destroys the handler and all its resources and DOM nodes.
Close