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, no dynamic layout will be applied after
notifying all listeners, i.e. a dynamic layout pass will only be applied
when all registered ILayoutListener
s return false
.context
- the layout context that fired the eventnode
- the node that has movedtrue
if no dynamic layout should be applied
afterwards.boolean nodeResized(ILayoutContext context, INodeLayout node)
nodeMoved(ILayoutContext, INodeLayout)
event will be fired). 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 ILayoutListener
s return false
.context
- the layout context that fired the eventnode
- the node that was resizedtrue
if no dynamic layout should be applied
afterwards.boolean subgraphMoved(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
ILayoutListener
s return false
.context
- the layout context that fired the eventsubgraph
- the subgraph that has movedtrue
if no dynamic layout should be applied
afterwards.boolean subgraphResized(ILayoutContext context, ISubgraphLayout subgraph)
nodeMoved(ILayoutContext, INodeLayout)
event will be fired). 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 ILayoutListener
s return false
.context
- the layout context that fired the eventsubgraph
- the subgraph that was resizedtrue
if no dynamic layout should be applied
afterwards.Copyright (c) 2014 itemis AG and others. All rights reserved.