pl.edu.agh.cast.schema.editor.layout.algorithm
Class Peacock3LayoutAlgorithm

java.lang.Object
  extended by pl.edu.agh.cast.schema.editor.layout.algorithm.AbstractLayoutAlgorithm
      extended by pl.edu.agh.cast.schema.editor.layout.algorithm.AbstractGroupingLayoutAlgorithm
          extended by 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

Constructor Summary
Peacock3LayoutAlgorithm()
           
 
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 pl.edu.agh.cast.schema.editor.layout.algorithm.AbstractGroupingLayoutAlgorithm
drawNotConnected, getMainEntities, getNeighbors, getNotConnected, isConnected
 
Methods inherited from class pl.edu.agh.cast.schema.editor.layout.algorithm.AbstractLayoutAlgorithm
getCenterOfGravity, getUpperLeftCorner, layoutNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Peacock3LayoutAlgorithm

public Peacock3LayoutAlgorithm()
Method Detail

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 layout
monitor - 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.