|
Zest 1.5.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithm
org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm
org.eclipse.zest.layouts.algorithms.RadialLayoutAlgorithm
public class RadialLayoutAlgorithm
This layout will take the given entities, apply a tree layout to them, and then display the tree in a circular fashion with the roots in the center.
Field Summary |
---|
Fields inherited from class org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithm |
---|
comparator, filter, internalAsynchronous, internalContinuous, layout_styles, layoutStopped, MIN_ENTITY_SIZE, resizeEntitiesAfterLayout |
Constructor Summary | |
---|---|
RadialLayoutAlgorithm()
Creates a radial layout with no style. |
|
RadialLayoutAlgorithm(int styles)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm |
---|
applyLayoutInternal, getCurrentLayoutStep, getRoots, getTotalNumberOfLayoutSteps |
Methods inherited from class org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithm |
---|
addEntity, 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, verifyInput |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RadialLayoutAlgorithm()
public RadialLayoutAlgorithm(int styles)
Method Detail |
---|
public void setLayoutArea(double x, double y, double width, double height)
setLayoutArea
in class TreeLayoutAlgorithm
protected boolean isValidConfiguration(boolean asynchronous, boolean continueous)
AbstractLayoutAlgorithm
isValidConfiguration
in class TreeLayoutAlgorithm
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
public 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 AbstractLayoutAlgorithm
|
Zest 1.5.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |