public interface IContextListener
IContextListener
is notified about changes to context attributes
such as the LayoutProperties.BOUNDS_PROPERTY
which limits the area
where nodes can be placed by layout algorithms, the
LayoutProperties.PRUNING_ENABLED_PROPERTY
which defines whether nodes
can be pruned, and the
LayoutProperties.DYNAMIC_LAYOUT_ENABLED_PROPERTY
which defines
whether layout algorithms are allowed to perform a layout pass in reaction to
layout context events.Modifier and Type | Interface and Description |
---|---|
static class |
IContextListener.Stub
A stub implementation of the
IContextListener which contains
empty implementations of the specified methods. |
Modifier and Type | Method and Description |
---|---|
void |
backgroundEnableChanged(ILayoutContext context)
This method is called whenever background layout is enabled or disabled
in a layout context.
|
boolean |
boundsChanged(ILayoutContext context)
This method is called whenever the bounds available in a layout context
change.
|
boolean |
pruningEnablementChanged(ILayoutContext context)
This method is called whenever graph pruning is enabled or disabled in a
layout context.
|
boolean boundsChanged(ILayoutContext context)
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 IContextListener
s return
false
.context
- the layout context that fired the eventtrue
if no dynamic layout should be applied
afterwards.boolean pruningEnablementChanged(ILayoutContext context)
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 IContextListener
s return
false
.context
- the layout context that fired the eventtrue
if no dynamic layout should be applied
afterwards.void backgroundEnableChanged(ILayoutContext context)
context
- the layout context that fired the eventCopyright (c) 2014 itemis AG and others. All rights reserved.