public interface IPruningListener
IPruningListener is notified about pruning changes, i.e. adding
INodeLayouts to an ISubgraphLayout (pruning), or removing
INodeLayouts 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 IPruningListeners 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 IPruningListeners 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.