pl.edu.agh.cast.zestalgorithms.actions
Class AbstractLayoutAlgorithmAction
java.lang.Object
pl.edu.agh.cast.schema.editor.action.layout.AbstractSetLayoutAction
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLayoutAlgorithmAction
public AbstractLayoutAlgorithmAction(org.eclipse.zest.layouts.LayoutAlgorithm algorithm)
- Default constructor. Stores passed instance of
LayoutAlgorithm
.
- Parameters:
algorithm
- Instance of LayoutAlgorithm
.
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.