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
addClickListener(listener) → {VertexListeners}
Add a click listener.
Parameters:
Name | Type | Description |
---|---|---|
listener |
VertexListeners~dragListener | The click listener to add (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
fireClickEvent(e) → {void}
Fire a click event with the given event instance to all
installed click listeners.
Parameters:
Name | Type | Description |
---|---|---|
e |
VertEvent | XMouseEvent | The click event itself to be fired to all installed drag listeners. |
- Source:
Returns:
- Type
- void
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
removeDragEndListener(listener) → {VertexListeners}
Remove a drag listener.
Parameters:
Name | Type | Description |
---|---|---|
listener |
VertexListeners~clickListener | The drag listener to remove (a callback). |
- Source:
Returns:
this (for chaining)
- Type
- VertexListeners
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
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
clickListener(e)
The click listener is a function with a single drag event param.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The (extended) click event. |
- Source:
clickListener(e)
The click listener is a function with a single drag event param.
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | The (extended) click event. |
- Source:
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: