public class RadialLayoutAlgorithm extends TreeLayoutAlgorithm
comparator, filter, internalAsynchronous, internalContinuous, layout_styles, layoutStopped, MIN_ENTITY_SIZE, resizeEntitiesAfterLayout| Constructor and Description |
|---|
RadialLayoutAlgorithm()
Creates a radial layout with no style.
|
RadialLayoutAlgorithm(int styles) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeRadialPositions(org.eclipse.zest.layouts.dataStructures.InternalNode[] entities,
org.eclipse.zest.layouts.dataStructures.DisplayIndependentRectangle bounds2)
Take the tree and make it round.
|
protected org.eclipse.zest.layouts.dataStructures.DisplayIndependentRectangle |
getLayoutBounds(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
boolean includeNodeSize)
Find the bounds in which the nodes are located.
|
protected boolean |
isValidConfiguration(boolean asynchronous,
boolean continueous)
Determines if the configuration is valid for this layout
|
protected void |
postLayoutAlgorithm(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider)
Code called after the layout algorithm ends
|
protected void |
preLayoutAlgorithm(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider,
double x,
double y,
double width,
double height)
Executes this TreeLayoutAlgorithm layout algorithm by referencing the
data stored in the repository system.
|
void |
setLayoutArea(double x,
double y,
double width,
double height) |
void |
setRangeToLayout(double startDegree,
double endDegree)
Set the range the radial layout will use when applyLayout is called.
|
applyLayoutInternal, getCurrentLayoutStep, getRoots, getTotalNumberOfLayoutStepsaddEntity, addProgressListener, addRelationship, applyLayout, defaultFitWithinBounds, defaultFitWithinBounds, fireProgressEnded, fireProgressEvent, fireProgressStarted, getEntityAspectRatio, getLocalLocation, getNumberOfProgressListeners, getStyle, isRunning, removeEntity, removeProgressListener, removeRelationship, removeRelationships, removeRelationships, setComparator, setEntityAspectRatio, setFilter, setStyle, stop, updateBendPoints, updateEntities, updateLayoutLocations, updateRelationships, verifyInputpublic RadialLayoutAlgorithm()
public RadialLayoutAlgorithm(int styles)
public void setLayoutArea(double x,
double y,
double width,
double height)
setLayoutArea in class TreeLayoutAlgorithmprotected boolean isValidConfiguration(boolean asynchronous,
boolean continueous)
AbstractLayoutAlgorithmisValidConfiguration in class TreeLayoutAlgorithmprotected void preLayoutAlgorithm(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider,
double x,
double y,
double width,
double height)
TreeLayoutAlgorithmpreLayoutAlgorithm in class TreeLayoutAlgorithmentitiesToLayout - Apply the algorithm to these entitiesrelationshipsToConsider - Only consider these relationships when applying the algorithm.protected void postLayoutAlgorithm(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider)
AbstractLayoutAlgorithmpostLayoutAlgorithm in class TreeLayoutAlgorithmpublic void setRangeToLayout(double startDegree,
double endDegree)
protected void computeRadialPositions(org.eclipse.zest.layouts.dataStructures.InternalNode[] entities,
org.eclipse.zest.layouts.dataStructures.DisplayIndependentRectangle bounds2)
protected org.eclipse.zest.layouts.dataStructures.DisplayIndependentRectangle getLayoutBounds(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
boolean includeNodeSize)
getLayoutBounds in class AbstractLayoutAlgorithmCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.