public class HorizontalTreeLayoutAlgorithm extends TreeLayoutAlgorithm
TreeLayoutAlgorithm
comparator, filter, internalAsynchronous, internalContinuous, layout_styles, layoutStopped, MIN_ENTITY_SIZE, resizeEntitiesAfterLayout
Constructor and Description |
---|
HorizontalTreeLayoutAlgorithm()
Creates a horizontal tree layout with no style
|
HorizontalTreeLayoutAlgorithm(int styles) |
Modifier and Type | Method and Description |
---|---|
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.
|
applyLayoutInternal, getCurrentLayoutStep, getRoots, getTotalNumberOfLayoutSteps, setLayoutArea
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 HorizontalTreeLayoutAlgorithm()
public HorizontalTreeLayoutAlgorithm(int styles)
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)
TreeLayoutAlgorithm
preLayoutAlgorithm
in class TreeLayoutAlgorithm
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 TreeLayoutAlgorithm
protected boolean isValidConfiguration(boolean asynchronous, boolean continueous)
AbstractLayoutAlgorithm
isValidConfiguration
in class TreeLayoutAlgorithm
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.