private static class Graph.ChainedNodeEventListener extends Object implements Graph.NodeEventListener
Modifier and Type | Field and Description |
---|---|
(package private) Graph.NodeEventListener |
head |
(package private) Graph.NodeEventListener |
next |
Constructor and Description |
---|
ChainedNodeEventListener(Graph.NodeEventListener head,
Graph.NodeEventListener next) |
Modifier and Type | Method and Description |
---|---|
void |
inputChanged(Node node)
Notifies this listener of a change in a node's inputs.
|
void |
nodeAdded(Node node)
Notifies this listener of an added node.
|
void |
usagesDroppedToZero(Node node)
Notifies this listener of a node becoming unused.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
event
ChainedNodeEventListener(Graph.NodeEventListener head, Graph.NodeEventListener next)
public void nodeAdded(Node node)
Graph.NodeEventListener
nodeAdded
in interface Graph.NodeEventListener
node
- a node that was just added to the graphpublic void inputChanged(Node node)
Graph.NodeEventListener
inputChanged
in interface Graph.NodeEventListener
node
- a node who has had one of its inputs changedpublic void usagesDroppedToZero(Node node)
Graph.NodeEventListener
usagesDroppedToZero
in interface Graph.NodeEventListener
node
- a node whose Node.usages()
just became empty