Class CompositeLayoutAlgorithm
java.lang.Object
org.eclipse.gef.layout.algorithms.CompositeLayoutAlgorithm
- All Implemented Interfaces:
ILayoutAlgorithm
The
CompositeLayoutAlgorithm combines multiple
ILayoutAlgorithms. When doing a layout-pass, all the algorithms are
applied in sequence.-
Constructor Summary
ConstructorsConstructorDescriptionCompositeLayoutAlgorithm(ILayoutAlgorithm[] algorithms) Constructs a newCompositeLayoutAlgorithmthat combines the givenILayoutAlgorithms. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyLayout(LayoutContext context, boolean clean) Makes this algorithm perform layout computation and apply it to its context.
-
Constructor Details
-
CompositeLayoutAlgorithm
Constructs a newCompositeLayoutAlgorithmthat combines the givenILayoutAlgorithms.- Parameters:
algorithms- TheILayoutAlgorithms that are combined by thisCompositeLayoutAlgorithm.
-
-
Method Details
-
applyLayout
Description copied from interface:ILayoutAlgorithmMakes this algorithm perform layout computation and apply it to its context.- Specified by:
applyLayoutin interfaceILayoutAlgorithm- Parameters:
context- TheLayoutContextthat provides all relevant information about what to layout.clean- if true the receiver should assume that the layout context has changed significantly and recompute the whole layout even if it keeps track of changes with listeners. False can be used after dynamic layout in a context is turned back on so that layout algorithm working in background can apply accumulated changes. Static layout algorithm can ignore this call entirely if clean is false.
-