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)
ILayoutAlgorithm.applyLayout(boolean)
will be called on the
context's main algorithm.context
- the layout context that fired the eventboolean pruningEnablementChanged(ILayoutContext context)
ILayoutAlgorithm.applyLayout(boolean)
will be called on the
context's main algorithm.context
- the layout context that fired the eventvoid backgroundEnableChanged(ILayoutContext context)
context
- the layout context that fired the eventCopyright (c) 2014 itemis AG and others. All rights reserved.