public interface ILayoutListener
Modifier and Type | Method and Description |
---|---|
boolean |
nodeMoved(ILayoutContext context,
INodeLayout node)
This method is called whenever location of a particular node is changed
within observed context.
|
boolean |
nodeResized(ILayoutContext context,
INodeLayout node)
This method is called whenever size of a particular node is changed
within observed context.
|
boolean |
subgraphMoved(ILayoutContext context,
ISubgraphLayout subgraph)
This method is called whenever location of a particular subgraph is
changed within observed context.
|
boolean |
subgraphResized(ILayoutContext context,
ISubgraphLayout subgraph)
This method is called whenever size of a particular subgraph is changed
within observed context.
|
boolean nodeMoved(ILayoutContext context, INodeLayout node)
nodeMoved(ILayoutContext, INodeLayout)
event will be fired). If
true is returned, it means that the receiving listener has intercepted
this event. Intercepted events will not be passed to the rest of the
listeners. If the event is not intercepted by any listener,
ILayoutAlgorithm.applyLayout(boolean)
will be called on the
context's main algorithm.LayoutListenercontext
- the layout context that fired the eventnode
- the node that has movedboolean nodeResized(ILayoutContext context, INodeLayout node)
nodeMoved(ILayoutContext, INodeLayout)
event will be fired).
If true is returned, it means that the receiving listener has intercepted
this event. Intercepted events will not be passed to the rest of the
listeners. If the event is not intercepted by any listener,
ILayoutAlgorithm.applyLayout(boolean)
will be called on the
context's main algorithm.context
- the layout context that fired the eventnode
- the node that was resizedboolean subgraphMoved(ILayoutContext context, ISubgraphLayout subgraph)
ILayoutAlgorithm.applyLayout(boolean)
will be called on the context's main algorithm.context
- the layout context that fired the eventsubgraph
- the subgraph that has movedboolean subgraphResized(ILayoutContext context, ISubgraphLayout subgraph)
nodeMoved(ILayoutContext, INodeLayout)
event will be fired).
If true is returned, it means that the receiving listener has intercepted
this event. Intercepted events will not be passed to the rest of the
listeners. If the event is not intercepted by any listener,
ILayoutAlgorithm.applyLayout(boolean)
will be called on the
context's main algorithm.context
- the layout context that fired the eventsubgraph
- the subgraph that was resizedCopyright (c) 2014 itemis AG and others. All rights reserved.