Class RadialLayoutAlgorithm
java.lang.Object
org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithm
org.eclipse.zest.layouts.algorithms.RadialLayoutAlgorithm
- All Implemented Interfaces:
- LayoutAlgorithm
This layout will take the given entities, apply a tree layout to them, and
 then display the tree in a circular fashion with the roots in the center.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.
- 
Field SummaryFields inherited from class org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithmcontext
- 
Constructor SummaryConstructorsConstructorDescriptionRadialLayoutAlgorithm(int style) Deprecated.Since Zest 2.0, useRadialLayoutAlgorithm().
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyLayout(boolean clean) Makes this algorithm perform layout computation and apply it to its context.booleanvoidsetLayoutContext(LayoutContext context) Sets the layout context for this algorithm.voidsetRangeToLayout(double startDegree, double endDegree) Set the range the radial layout will use when applyLayout is called.voidsetResizing(boolean resizing) 
- 
Constructor Details- 
RadialLayoutAlgorithmDeprecated.Since Zest 2.0, useRadialLayoutAlgorithm().
- 
RadialLayoutAlgorithmpublic RadialLayoutAlgorithm()
 
- 
- 
Method Details- 
applyLayoutpublic void applyLayout(boolean clean) Description copied from interface:LayoutAlgorithmMakes this algorithm perform layout computation and apply it to its context.- Parameters:
- 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.
 
- 
setLayoutContextDescription 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 interface- LayoutAlgorithm
- Overrides:
- setLayoutContextin class- AbstractLayoutAlgorithm
- Parameters:
- context- a new layout context or null if this algorithm should not perform any layout
 
- 
setRangeToLayoutpublic void setRangeToLayout(double startDegree, double endDegree) Set the range the radial layout will use when applyLayout is called. Both values must be in radians.
- 
isResizingpublic boolean isResizing()- Returns:
- true if this algorithm is set to resize elements
- Since:
- 2.0
 
- 
setResizingpublic void setResizing(boolean resizing) - Parameters:
- resizing- true if this algorithm should resize elements (default is false)
- Since:
- 2.0
 
 
- 
RadialLayoutAlgorithminstead.