Static
ACTIVATESpecifies the event name for activate.
Static
ADDSpecifies the event name for add.
Static
ADD_Specifies the event name for addCells.
Static
ADD_Specifies the event name for addOverlay.
Static
ADD_Specifies the event name for addVertex.
Static
AFTER_Specifies the event name for afterAddVertex.
Static
ALIGN_Specifies the event name for alignCells.
Static
BEFORE_Specifies the event name for beforeAddVertex.
Static
BEFORE_Specifies the event name for beforeUndo.
Static
BEGIN_Specifies the event name for beginUpdate.
Static
CELL_Specifies the event name for cellConnected.
Static
CELLS_Specifies the event name for cellsAdded.
Static
CELLS_Specifies the event name for cellsFolded.
Static
CELLS_Specifies the event name for cellsMoved.
Static
CELLS_Specifies the event name for cellsOrdered.
Static
CELLS_Specifies the event name for cellsRemoved.
Static
CELLS_Specifies the event name for cellsResized.
Static
CELLS_Specifies the event name for cellsToggled.
Static
CHANGESpecifies the event name for change.
Static
CLEARSpecifies the event name for clear.
Static
CLICKSpecifies the event name for click.
Static
CLOSESpecifies the event name for close.
Static
CONNECTSpecifies the event name for connect.
Static
CONNECT_Specifies the event name for connectCell.
Static
CUSTOM_Start index for the custom handles in an mxMouseEvent. This should be a negative value and is the start index which is decremented for each custom handle.
Static
DESTROYSpecifies the event name for destroy.
Static
DISCONNECTSpecifies the event name for disconnect.
Static
DONESpecifies the event name for done.
Static
DOUBLE_Specifies the event name for doubleClick.
Static
DOWNSpecifies the event name for down.
Static
EDITING_Specifies the event name for editingStarted.
Static
EDITING_Specifies the event name for editingStopped.
Static
END_Specifies the event name for endEdit.
Static
END_Specifies the event name for endUpdate.
Static
ESCAPESpecifies the event name for escape.
Static
EXECUTESpecifies the event name for execute.
Static
EXECUTEDSpecifies the event name for executed.
Static
FIRE_Specifies the event name for fireMouseEvent.
Static
FIREDSpecifies the event name for fired.
Static
FLIP_Specifies the event name for flipEdge.
Static
FOLD_Specifies the event name for foldCells.
Static
GESTURESpecifies the event name for gesture.
Static
GETSpecifies the event name for get.
Static
GROUP_Specifies the event name for groupCells.
Static
HIDESpecifies the event name for hide.
Static
LABEL_Specifies the event name for labelChanged.
Static
LABEL_Index for the label handle in an mxMouseEvent. This should be a negative value that does not interfere with any possible handle indices.
Static
LAYOUT_Specifies the event name for layoutCells.
Static
MARKSpecifies the event name for mark.
Static
MAXIMIZESpecifies the event name for maximize.
Static
MINIMIZESpecifies the event name for minimize.
Static
MOUSE_Specifies the event name for mouseDown.
Static
MOUSE_Specifies the event name for mouseMove.
Static
MOUSE_Specifies the event name for mouseUp.
Static
MOVESpecifies the event name for move.
Static
MOVE_Specifies the event name for moveCells.
Static
MOVE_Specifies the event name for moveEnd.
Static
MOVE_Specifies the event name for moveStart.
Static
NORMALIZESpecifies the event name for normalize.
Static
NOTIFYSpecifies the event name for notify.
Static
OPENSpecifies the event name for open.
Static
ORDER_Specifies the event name for orderCells.
Static
PANSpecifies the event name for pan.
Static
PAN_Specifies the event name for panEnd.
Static
PAN_Specifies the event name for panStart.
Static
PINCH_Threshold for pinch gestures to fire a mouse wheel event. Default value is 10.
Static
POSTSpecifies the event name for post.
Static
RECEIVESpecifies the event name for receive.
Static
REDOSpecifies the event name for redo.
Static
REFRESHSpecifies the event name for refresh.
Static
REMOVESpecifies the event name for remove.
Static
REMOVE_Specifies the event name for removeCells.
Static
REMOVE_Specifies the event name for removeCellsFromParent.
Static
REMOVE_Specifies the event name for removeOverlay.
Static
RESETSpecifies the event name for reset.
Static
RESIZESpecifies the event name for resize.
Static
RESIZE_Specifies the event name for resizeCells.
Static
RESIZE_Specifies the event name for resizeEnd.
Static
RESIZE_Specifies the event name for resizeStart.
Static
RESUMESpecifies the event name for suspend.
Static
ROOTSpecifies the event name for root.
Static
ROTATION_Index for the rotation handle in an mxMouseEvent. This should be a negative value that does not interfere with any possible handle indices.
Static
SAVESpecifies the event name for open.
Static
SCALESpecifies the event name for scale.
Static
SCALE_Specifies the event name for scaleAndTranslate.
Static
SELECTSpecifies the event name for select.
Static
SHOWSpecifies the event name for show.
Static
SIZESpecifies the event name for size.
Static
SPLIT_Specifies the event name for splitEdge.
Static
STARTSpecifies the event name for start.
Static
START_Specifies the event name for startEdit.
Static
START_Specifies the event name for startEditing.
Static
SUSPENDSpecifies the event name for suspend.
Static
TAP_Specifies the event name for tapAndHold.
Static
TOGGLE_Specifies the event name for toggleCells.
Static
TRANSLATESpecifies the event name for translate.
Static
UNDOSpecifies the event name for undo.
Static
UNGROUP_Specifies the event name for ungroupCells.
Static
UPSpecifies the event name for up.
Static
UPDATE_Specifies the event name for updateCellSize.
Static
VIRTUAL_Start index for the virtual handles in an mxMouseEvent. This should be a negative value and is the start index which is decremented for each virtual handle. This assumes that there are no more than VIRTUAL_HANDLE - CUSTOM_HANDLE custom handles.
Static
addAdds the given listeners for touch, mouse and/or pointer events. If <Client.IS_POINTER> is true then pointer events will be registered, else the respective mouse events will be registered. If <Client.IS_POINTER> is false and <Client.IS_TOUCH> is true then the respective touch events will be registered as well as the mouse events.
Static
addBinds the function to the specified event on the given element. Use mxUtils.bind in order to bind the "this" keyword inside the function to a given execution scope.
Static
addInstalls the given function as a handler for mouse wheel events. The function has two arguments: the mouse event and a boolean that specifies if the wheel was moved up or down.
This has been tested with IE 6 and 7, Firefox (all versions), Opera and Safari. It does currently not work on Safari for Mac.
Handler function that takes the event argument and a boolean up argument for the mousewheel direction.
Optional
force: booleanOptional
cx: numberOptional
cy: numberTarget for installing the listener in Google Chrome. See https://www.chromestatus.com/features/6662647093133312.
Static
consumeConsumes the given event.
Native event to be consumed.
Optional
preventDefault: boolean = trueOptional boolean to prevent the default for the event. Default is true.
Optional
stopPropagation: boolean = trueOption boolean to stop event propagation. Default is true.
Static
disableDisables the context menu for the given element.
Static
redirectRedirects the mouse events from the given DOM node to the graph dispatch
loop using the event and given state as event arguments. State can
either be an instance of
Static
releaseRemoves the known listeners from the given DOM node and its descendants.
DOM node to remove the listeners from.
Static
removeRemoves all listeners from the given element.
Static
removeRemoves the given listeners from mousedown, mousemove, mouseup and the respective touch events if <Client.IS_TOUCH> is true.
Static
removeRemoves the specified listener from the given element.
InternalEvent
Cross-browser DOM event support. For internal event handling, mxEventSource and the graph event dispatch loop in graph are used.
Memory Leaks:
Use this class for adding and removing listeners to/from DOM nodes. The removeAllListeners function is provided to remove all listeners that have been added using addListener. The function should be invoked when the last reference is removed in the JavaScript code, typically when the referenced DOM node is removed from the DOM.