pl.edu.agh.cast.zestalgorithms.actions
Class AbstractLayoutAlgorithmAction

java.lang.Object
  extended by pl.edu.agh.cast.schema.editor.action.layout.AbstractSetLayoutAction
      extended by pl.edu.agh.cast.zestalgorithms.actions.AbstractLayoutAlgorithmAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate
Direct Known Subclasses:
DirectedGraphLayoutAlgorithmAction, GridLayoutAlgorithmAction, HorizontalLayoutAlgorithmAction, HorizontalTreeLayoutAlgorithmAction, RadialLayoutAlgorithmAction, SpringLayoutAlgorithmAction, TreeLayoutAlgorithmAction, VerticalLayoutAlgorithmAction

public abstract class AbstractLayoutAlgorithmAction
extends AbstractSetLayoutAction

Abstract action for layout algorithm adapters - just creates adapters for algorithms specified in constructor

Author:
Paweł Koperek , Mateusz Kupisz

Field Summary
 
Fields inherited from class pl.edu.agh.cast.schema.editor.action.layout.AbstractSetLayoutAction
commandStack, diagram, selectedNodes
 
Constructor Summary
AbstractLayoutAlgorithmAction(org.eclipse.zest.layouts.LayoutAlgorithm algorithm)
          Default constructor.
 
Method Summary
protected  ILayoutAlgorithm getAlgorithm()
          Simply creates new LayoutAlgorithmAdapter wrapping the instance of algorithm passed in constructor and returns it.
 
Methods inherited from class pl.edu.agh.cast.schema.editor.action.layout.AbstractSetLayoutAction
run, selectionChanged, setActiveEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLayoutAlgorithmAction

public AbstractLayoutAlgorithmAction(org.eclipse.zest.layouts.LayoutAlgorithm algorithm)
Default constructor. Stores passed instance of LayoutAlgorithm.

Parameters:
algorithm - Instance of LayoutAlgorithm.
Method Detail

getAlgorithm

protected ILayoutAlgorithm getAlgorithm()
Simply creates new LayoutAlgorithmAdapter wrapping the instance of algorithm passed in constructor and returns it.

Specified by:
getAlgorithm in class AbstractSetLayoutAction
Returns:
Instance of LayoutAlgorithmAdapter


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