public interface ContextListener
Modifier and Type | Method and Description |
---|---|
void |
graphAdded(TreeNode parent,
TreeNode added)
Called when a new subgraph is attached.
|
void |
graphRemoved(TreeNode parent,
TreeNode removed)
Called when a subgraph is detached.
|
void graphAdded(TreeNode parent, TreeNode added)
The parent
node is the currently attached node to which the
incoming graph has been attached. The added
node is the newly
attached sub-graph. The graph accessible beneath added
may include
sub-graphs that are already attached to this tree.
parent
- parent of the new sub-graphadded
- newly added sub-graphvoid graphRemoved(TreeNode parent, TreeNode removed)
The parent
node the still attached node from which the outgoing
graph has been detached. The removed
node is the just detached
sub-graph. The graph accessible beneath removed
may include
sub-graphs that are still attached to this tree.
parent
- previous parent of the removed sub-graphremoved
- the removed sub-graphCopyright © 2017. All rights reserved.