Class: VertexListeners

VertexListeners(vertex)

new VertexListeners(vertex)

The constructor.
Parameters:
Name Type Description
vertex Vertex The vertex to use these listeners on (just a backward reference).
Source:

Methods

addDragEndListener(listener) → {VertexListeners}

Remove a dragEnd listener.
Parameters:
Name Type Description
listener VertexListeners~dragListener The drag listener to remove (a callback).
Source:
Returns:
this (for chaining)
Type
VertexListeners

addDragListener(listener) → {VertexListeners}

Add a drag listener.
Parameters:
Name Type Description
listener VertexListeners~dragListener The drag listener to add (a callback).
Source:
Returns:
this (for chaining)
Type
VertexListeners

addDragListener(listener) → {VertexListeners}

Add a dragStart listener.
Parameters:
Name Type Description
listener VertexListeners~dragStartListener The drag-start listener to add (a callback).
Source:
Returns:
this (for chaining)
Type
VertexListeners

addDragListener(listener) → {VertexListeners}

Add a dragEnd listener.
Parameters:
Name Type Description
listener VertexListeners~dragEndListener The drag-end listener to add (a callback).
Source:
Returns:
this (for chaining)
Type
VertexListeners

addDragStartListener(listener) → {VertexListeners}

Remove a dragStart listener.
Parameters:
Name Type Description
listener VertexListeners~dragListener The drag listener to remove (a callback).
Source:
Returns:
this (for chaining)
Type
VertexListeners

fireDragEndEvent(e) → {void}

Fire a dragEnd event with the given event instance to all installed drag-end listeners.
Parameters:
Name Type Description
e VertEvent | XMouseEvent The drag-end event itself to be fired to all installed dragEnd listeners.
Source:
Returns:
Type
void

fireDragEvent(e) → {void}

Fire a drag event with the given event instance to all installed drag listeners.
Parameters:
Name Type Description
e VertEvent | XMouseEvent The drag event itself to be fired to all installed drag listeners.
Source:
Returns:
Type
void

fireDragStartEvent(e) → {void}

Fire a dragStart event with the given event instance to all installed drag-start listeners.
Parameters:
Name Type Description
e VertEvent | XMouseEvent The drag-start event itself to be fired to all installed dragStart listeners.
Source:
Returns:
Type
void

removeDragListener(listener) → {VertexListeners}

Remove a drag listener.
Parameters:
Name Type Description
listener VertexListeners~dragListener The drag listener to remove (a callback).
Source:
Returns:
this (for chaining)
Type
VertexListeners

Type Definitions

dragEndListener(e)

The drag-end listener is a function with a single drag event param.
Parameters:
Name Type Description
e Event The (extended) drag event.
Source:

dragListener(e)

The drag listener is a function with a single drag event param.
Parameters:
Name Type Description
e Event The (extended) drag event.
Source:

dragStartListener(e)

The drag-start listener is a function with a single drag event param.
Parameters:
Name Type Description
e Event The (extended) drag event.
Source: