public interface IGraphStructureListener
IGraphStructureListener is notified about structural changes, i.e.
the addition/removal of INodeLayouts and IConnectionLayouts.| Modifier and Type | Interface and Description |
|---|---|
static class |
IGraphStructureListener.Stub
A stub implementation of the
IGraphStructureListener which
contains empty implementations of the specified methods. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
connectionAdded(ILayoutContext context,
IConnectionLayout connection)
This method is called whenever a connection is added to a context.
|
boolean |
connectionRemoved(ILayoutContext context,
IConnectionLayout connection)
This method is called whenever a connection is removed from a context.
|
boolean |
nodeAdded(ILayoutContext context,
INodeLayout node)
This method is called whenever a node is added to a context.
|
boolean |
nodeRemoved(ILayoutContext context,
INodeLayout node)
This method is called whenever a node is removed from a context.
|
boolean nodeAdded(ILayoutContext context, INodeLayout node)
ILayoutAlgorithm.applyLayout(boolean) will be called on the
context's main algorithm.context - the layout context that fired the eventnode - the added nodetrue if no dynamic layout should be applied
afterwards.boolean nodeRemoved(ILayoutContext context, INodeLayout node)
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 IGraphStructureListeners
return false.context - the context that fired the eventnode - the removed nodetrue if no dynamic layout should be applied
afterwards.boolean connectionAdded(ILayoutContext context, IConnectionLayout connection)
This method will be called only if both nodes connected by added connection lay directly in the node container owned by the notifying layout context.
If 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 IGraphStructureListeners return
false.
context - the context that fired the eventconnection - the added connectiontrue if no dynamic layout should be applied
afterwards.boolean connectionRemoved(ILayoutContext context, IConnectionLayout connection)
This method will be called only if both nodes connected by removed connection lay directly in the node container owned by the notifying layout context.
If 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 IGraphStructureListeners return
false.
context - the context that fired the eventconnection - the added connectiontrue if no dynamic layout should be applied
afterwards.Copyright (c) 2014 itemis AG and others. All rights reserved.