public abstract class ContinuousLayoutAlgorithm extends AbstractLayoutAlgorithm
comparator, filter, internalAsynchronous, internalContinuous, layout_styles, layoutStopped, MIN_ENTITY_SIZE, resizeEntitiesAfterLayout
Constructor and Description |
---|
ContinuousLayoutAlgorithm(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 x,
double y,
double width,
double height)
Calculates and applies the positions of the given entities based on a
spring layout using the given relationships.
|
protected abstract void |
computeOneIteration(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout,
org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider,
double x,
double y,
double width,
double height)
Computes a single iteration of the layout algorithm
|
org.eclipse.zest.layouts.dataStructures.DisplayIndependentRectangle |
getBounds() |
protected abstract boolean |
performAnotherNonContinuousIteration()
The logic to determine if a layout should continue running or not
|
void |
setBounds(double x,
double y,
double width,
double height) |
void |
setLayoutArea(double x,
double y,
double width,
double height) |
addEntity, addProgressListener, addRelationship, applyLayout, defaultFitWithinBounds, defaultFitWithinBounds, fireProgressEnded, fireProgressEvent, fireProgressStarted, getCurrentLayoutStep, getEntityAspectRatio, getLayoutBounds, getLocalLocation, getNumberOfProgressListeners, getStyle, getTotalNumberOfLayoutSteps, isRunning, isValidConfiguration, postLayoutAlgorithm, preLayoutAlgorithm, removeEntity, removeProgressListener, removeRelationship, removeRelationships, removeRelationships, setComparator, setEntityAspectRatio, setFilter, setStyle, stop, updateBendPoints, updateEntities, updateLayoutLocations, updateRelationships, verifyInput
protected abstract boolean performAnotherNonContinuousIteration()
protected abstract void computeOneIteration(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout, org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider, double x, double y, double width, double height)
public void setLayoutArea(double x, double y, double width, double height)
setLayoutArea
in class AbstractLayoutAlgorithm
public org.eclipse.zest.layouts.dataStructures.DisplayIndependentRectangle getBounds()
public void setBounds(double x, double y, double width, double height)
protected void applyLayoutInternal(org.eclipse.zest.layouts.dataStructures.InternalNode[] entitiesToLayout, org.eclipse.zest.layouts.dataStructures.InternalRelationship[] relationshipsToConsider, double x, double y, double width, double height)
applyLayoutInternal
in class AbstractLayoutAlgorithm
entitiesToLayout
- Apply the algorithm to these entitiesrelationshipsToConsider
- Only consider these relationships when applying the algorithm.Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.