pl.edu.agh.cast.zestalgorithms.core
Class LayoutAlgorithmAdapter

java.lang.Object
  extended by pl.edu.agh.cast.zestalgorithms.core.LayoutAlgorithmAdapter
All Implemented Interfaces:
ILayoutAlgorithm

public class LayoutAlgorithmAdapter
extends Object
implements ILayoutAlgorithm

Adapts ZEST's LayoutAlgorithm to be used as CAST's Layout Algorithm

Author:
Paweł Koperek , Mateusz Kupisz

Constructor Summary
LayoutAlgorithmAdapter(org.eclipse.zest.layouts.LayoutAlgorithm algorithm)
          Constructs new adapter for given ZEST's layout algorithm to be used as CAST's layout algorithm
 
Method Summary
 void layoutNodes(Collection<ISchemaNode> positionNodes)
           
 void layoutNodes(Collection<ISchemaNode> positionNodes, org.eclipse.core.runtime.IProgressMonitor monitor)
          Method executed to layout a collection of visual nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutAlgorithmAdapter

public LayoutAlgorithmAdapter(org.eclipse.zest.layouts.LayoutAlgorithm algorithm)
Constructs new adapter for given ZEST's layout algorithm to be used as CAST's layout algorithm

Parameters:
algorithm - ZEST algorithm to be adapted
Method Detail

layoutNodes

public void layoutNodes(Collection<ISchemaNode> positionNodes)

layoutNodes

public void layoutNodes(Collection<ISchemaNode> positionNodes,
                        org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from interface: ILayoutAlgorithm
Method executed to layout a collection of visual nodes.

Specified by:
layoutNodes in interface ILayoutAlgorithm
Parameters:
positionNodes - nodes on which layout will be performed
monitor - progress monitor used to report progress of layout operation; MUST NOT be null


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.