public class HorizontalShift extends AbstractLayoutAlgorithm
comparator, filter, internalAsynchronous, internalContinuous, layout_styles, layoutStopped, MIN_ENTITY_SIZE, resizeEntitiesAfterLayout| Constructor and Description |
|---|
HorizontalShift(int styles) |
| 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
|
protected int |
getTotalNumberOfLayoutSteps()
Gets the total number of steps in this layout
|
protected boolean |
isValidConfiguration(boolean asynchronous,
boolean continuous)
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)
Code called before the layout algorithm starts
|
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, verifyInputprotected void applyLayoutInternal(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider,
double boundsX,
double boundsY,
double boundsWidth,
double boundsHeight)
AbstractLayoutAlgorithmapplyLayoutInternal in class AbstractLayoutAlgorithmentitiesToLayout - Apply the algorithm to these entitiesrelationshipsToConsider - Only consider these relationships when applying the algorithm.protected int getCurrentLayoutStep()
AbstractLayoutAlgorithmgetCurrentLayoutStep in class AbstractLayoutAlgorithmprotected int getTotalNumberOfLayoutSteps()
AbstractLayoutAlgorithmgetTotalNumberOfLayoutSteps in class AbstractLayoutAlgorithmprotected boolean isValidConfiguration(boolean asynchronous,
boolean continuous)
AbstractLayoutAlgorithmisValidConfiguration in class AbstractLayoutAlgorithmprotected void postLayoutAlgorithm(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider)
AbstractLayoutAlgorithmpostLayoutAlgorithm in class AbstractLayoutAlgorithmprotected void preLayoutAlgorithm(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider,
double x,
double y,
double width,
double height)
AbstractLayoutAlgorithmpreLayoutAlgorithm in class AbstractLayoutAlgorithmpublic void setLayoutArea(double x,
double y,
double width,
double height)
setLayoutArea in class AbstractLayoutAlgorithmCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.