Class AbstractLayoutAlgorithm
java.lang.Object
org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithm
- All Implemented Interfaces:
LayoutAlgorithm
- Direct Known Subclasses:
DirectedGraphLayoutAlgorithm,GridLayoutAlgorithm,HorizontalShiftAlgorithm,RadialLayoutAlgorithm,SpaceTreeLayoutAlgorithm,SpringLayoutAlgorithm,SugiyamaLayoutAlgorithm,TreeLayoutAlgorithm
Handles common elements in all layout algorithms [irbull] Refactored into a
template pattern. ApplyLayout now delegates the task to ApplyLayoutInternal
[irbull] Included asynchronous layouts
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.No longer used in Zest 2.x. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetLayoutContext(LayoutContext context) Sets the layout context for this algorithm.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.zest.layouts.LayoutAlgorithm
applyLayout
-
Field Details
-
context
- Since:
- 2.0
-
-
Constructor Details
-
AbstractLayoutAlgorithm
public AbstractLayoutAlgorithm()
-
-
Method Details
-
setLayoutContext
Description copied from interface:LayoutAlgorithmSets the layout context for this algorithm. The receiver will unregister from its previous layout context and register to the new one (registration means for example adding listeners). After a call to this method, the receiving algorithm can compute and cache internal data related to given context and perform an initial layout.- Specified by:
setLayoutContextin interfaceLayoutAlgorithm- Parameters:
context- a new layout context or null if this algorithm should not perform any layout
-