public class TreeLayoutAlgorithm extends AbstractLayoutAlgorithm
comparator, filter, internalAsynchronous, internalContinuous, layout_styles, layoutStopped, MIN_ENTITY_SIZE, resizeEntitiesAfterLayout
Constructor and Description |
---|
TreeLayoutAlgorithm()
Tree layout algorithm Constructor with NO Style
|
TreeLayoutAlgorithm(int styles)
Constructs a new TreeLayoutAlgorithm object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyLayoutInternal(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider,
double boundsX,
double boundsY,
double boundsWidth,
double boundsHeight)
Apply the layout to the given entities.
|
protected int |
getCurrentLayoutStep()
Gets the current layout step
|
java.util.List |
getRoots()
Returns the last found roots
|
protected int |
getTotalNumberOfLayoutSteps()
Gets the total number of steps in this layout
|
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) |
addEntity, addProgressListener, addRelationship, applyLayout, defaultFitWithinBounds, defaultFitWithinBounds, fireProgressEnded, fireProgressEvent, fireProgressStarted, getEntityAspectRatio, getLayoutBounds, getLocalLocation, getNumberOfProgressListeners, getStyle, isRunning, removeEntity, removeProgressListener, removeRelationship, removeRelationships, removeRelationships, setComparator, setEntityAspectRatio, setFilter, setStyle, stop, updateBendPoints, updateEntities, updateLayoutLocations, updateRelationships, verifyInput
public TreeLayoutAlgorithm(int styles)
public TreeLayoutAlgorithm()
public void setLayoutArea(double x, double y, double width, double height)
setLayoutArea
in class AbstractLayoutAlgorithm
protected int getCurrentLayoutStep()
AbstractLayoutAlgorithm
getCurrentLayoutStep
in class AbstractLayoutAlgorithm
protected int getTotalNumberOfLayoutSteps()
AbstractLayoutAlgorithm
getTotalNumberOfLayoutSteps
in class AbstractLayoutAlgorithm
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)
preLayoutAlgorithm
in class AbstractLayoutAlgorithm
entitiesToLayout
- Apply the algorithm to these entitiesrelationshipsToConsider
- Only consider these relationships when applying the algorithm.boundsX
- The left side of the bounds in which the layout can place the entities.boundsY
- The top side of the bounds in which the layout can place the entities.boundsWidth
- The width of the bounds in which the layout can place the entities.boundsHeight
- The height of the bounds in which the layout can place the entities.java.lang.RuntimeException
- Thrown if entitiesToLayout doesn't contain all of the endpoints for each relationship in relationshipsToConsiderprotected void applyLayoutInternal(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout, org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider, double boundsX, double boundsY, double boundsWidth, double boundsHeight)
AbstractLayoutAlgorithm
applyLayoutInternal
in class AbstractLayoutAlgorithm
entitiesToLayout
- 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)
AbstractLayoutAlgorithm
postLayoutAlgorithm
in class AbstractLayoutAlgorithm
public java.util.List getRoots()
protected boolean isValidConfiguration(boolean asynchronous, boolean continueous)
AbstractLayoutAlgorithm
isValidConfiguration
in class AbstractLayoutAlgorithm
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.