public static class IGraphStructureListener.Stub extends java.lang.Object implements IGraphStructureListener
IGraphStructureListener which
contains empty implementations of the specified methods.IGraphStructureListener.Stub| Constructor and Description |
|---|
Stub() |
| 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.
|
public boolean nodeAdded(ILayoutContext context, INodeLayout node)
IGraphStructureListenerILayoutAlgorithm.applyLayout(boolean) will be called on the
context's main algorithm.nodeAdded in interface IGraphStructureListenercontext - the layout context that fired the eventnode - the added nodetrue if no dynamic layout should be applied
afterwards.public boolean nodeRemoved(ILayoutContext context, INodeLayout node)
IGraphStructureListenertrue 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.nodeRemoved in interface IGraphStructureListenercontext - the context that fired the eventnode - the removed nodetrue if no dynamic layout should be applied
afterwards.public boolean connectionAdded(ILayoutContext context, IConnectionLayout connection)
IGraphStructureListenerThis 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.
connectionAdded in interface IGraphStructureListenercontext - the context that fired the eventconnection - the added connectiontrue if no dynamic layout should be applied
afterwards.public boolean connectionRemoved(ILayoutContext context, IConnectionLayout connection)
IGraphStructureListenerThis 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.
connectionRemoved in interface IGraphStructureListenercontext - 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.