pl.edu.agh.cast.schema.editor.layout.algorithm
Class Peacock3LayoutAlgorithm
java.lang.Object
pl.edu.agh.cast.schema.editor.layout.algorithm.AbstractLayoutAlgorithm
pl.edu.agh.cast.schema.editor.layout.algorithm.AbstractGroupingLayoutAlgorithm
pl.edu.agh.cast.schema.editor.layout.algorithm.Peacock3LayoutAlgorithm
- All Implemented Interfaces:
- ILayoutAlgorithm
public class Peacock3LayoutAlgorithm
- extends AbstractGroupingLayoutAlgorithm
This class represents version 3 of peacock layout algorithm.
- Author:
- AGH CAST Team
Method Summary |
protected int |
getWorkUnits(int nodesCount)
This method returns number of working units. |
protected void |
setNodesPositions(Collection<ISchemaNode> positionNodes,
org.eclipse.core.runtime.IProgressMonitor monitor)
Sets positions of given nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Peacock3LayoutAlgorithm
public Peacock3LayoutAlgorithm()
setNodesPositions
protected void setNodesPositions(Collection<ISchemaNode> positionNodes,
org.eclipse.core.runtime.IProgressMonitor monitor)
- Description copied from class:
AbstractLayoutAlgorithm
- Sets positions of given nodes.
- Specified by:
setNodesPositions
in class AbstractLayoutAlgorithm
- Parameters:
positionNodes
- nodes to layoutmonitor
- non-null progress monitor
getWorkUnits
protected int getWorkUnits(int nodesCount)
- This method returns number of working units.
- Specified by:
getWorkUnits
in class AbstractLayoutAlgorithm
- Parameters:
nodesCount
- number of nodes to layout
- Returns:
- number of work units
Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.