Class: AddNodeEvent

AddNodeEvent

AddNodeEvents indicate that a new node has been added to the graph. This also implies that prev/next edges of the prev and next nodes of the new node have been change accordingly to accomodate the new node.

Constructor

(protected) new AddNodeEvent(newNode, prev, next)

Parameters:
Name Type Description
newNode AbstractNode The new node that has been added
prev AbstractNode newNode's previous node
next AbstractNode newNode's next node
Source:

Extends

  • Event

Methods

getNewNode() → {AbstractNode}

Returns the newly added node that corresponds to the event.
Source:
Returns:
the newly added node.
Type
AbstractNode

getNext() → {AbstractNode}

Returns the next node of the newly added node that corresponds to the event.
Source:
Returns:
the next node.
Type
AbstractNode

getPrev() → {AbstractNode}

Returns the previous node of the newly added node that corresponds to the event.
Source:
Returns:
the prev node.
Type
AbstractNode