public interface IPruningListener
IPruningListener
is notified about pruning changes, i.e. adding
INodeLayout
s to an ISubgraphLayout
(pruning), or removing
INodeLayout
s from an ISubgraphLayout
(unpruning).Modifier and Type | Method and Description |
---|---|
boolean |
nodesPruned(ILayoutContext context,
ISubgraphLayout[] subgraph)
This method is called when some nodes are pruned in a layout context.
|
boolean |
nodesUnpruned(ILayoutContext context,
INodeLayout[] nodes)
This method is called when some nodes are unpruned in a layout context,
that is they are no longer part of a subgraph.
|
boolean nodesPruned(ILayoutContext context, ISubgraphLayout[] subgraph)
true
is returned, no dynamic layout will be applied after
notifying all listeners, i.e. a dynamic layout pass will only be applied
when all registered IPruningListener
s return false
.context
- the layout context that fired the eventsubgraph
- subgraphs that have been created or had nodes addedtrue
if no dynamic layout should be applied
afterwards.boolean nodesUnpruned(ILayoutContext context, INodeLayout[] nodes)
true
is
returned, no dynamic layout will be applied after notifying all
listeners, i.e. a dynamic layout pass will only be applied when all
registered IPruningListener
s return false
.context
- the layout context that fired the eventnodes
- nodes that have been unprunedtrue
if no dynamic layout should be applied
afterwards.Copyright (c) 2014 itemis AG and others. All rights reserved.