Package org.graffiti.plugin.algorithm
Class ThreadSafeAlgorithm
java.lang.Object
org.graffiti.plugin.algorithm.ThreadSafeAlgorithm
- All Implemented Interfaces:
Algorithm
- Direct Known Subclasses:
BackgroundExecutionAlgorithm,ForceDirectedLayoutWrapper,MultilevelFrameworkLayout,PatternSpringembedder,PatternSpringembedder,PatternSpringembedder3d,RotateAlgorithm
public abstract class ThreadSafeAlgorithm extends Object implements Algorithm
DOCUMENT ME!
- Version:
- $Revision: 1.5 $
- Author:
- $author$
-
Constructor Summary
Constructors Constructor Description ThreadSafeAlgorithm() -
Method Summary
Modifier and Type Method Description abstract voidexecuteThreadSafe(ThreadSafeOptions options)KeyStrokegetAcceleratorKeyStroke()Override this method to provide a accelerator hot key for the algorithm.booleanmayWorkOnMultipleGraphs()abstract voidresetDataCache(ThreadSafeOptions options)abstract booleansetControlInterface(ThreadSafeOptions options, JComponent jc)DOCUMENT ME!booleanshowMenuIcon()Override this method to give a different look and feel to the application, and to put the plugin icon next to the menu item in the main menu bar.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graffiti.plugin.algorithm.Algorithm
attach, check, execute, getActionEvent, getCategory, getDescription, getMenuCategory, getName, getParameters, getSetCategory, isLayoutAlgorithm, reset, setActionEvent, setParameters
-
Constructor Details
-
ThreadSafeAlgorithm
public ThreadSafeAlgorithm()
-
-
Method Details
-
setControlInterface
DOCUMENT ME!- Parameters:
jc-- Returns:
- true, if an GUI was set, false if no interface is needed
-
executeThreadSafe
-
resetDataCache
-
getAcceleratorKeyStroke
Description copied from interface:AlgorithmOverride this method to provide a accelerator hot key for the algorithm.- Specified by:
getAcceleratorKeyStrokein interfaceAlgorithm- Returns:
- NULL (default) if no accelerator should be assigned for this algorithm.
-
showMenuIcon
public boolean showMenuIcon()Description copied from interface:AlgorithmOverride this method to give a different look and feel to the application, and to put the plugin icon next to the menu item in the main menu bar.- Specified by:
showMenuIconin interfaceAlgorithm- Returns:
- True, if the plugin icon should be shown next to the menu item. Return FALSE (default!), if no icon should be shown in the menu.
-
mayWorkOnMultipleGraphs
public boolean mayWorkOnMultipleGraphs()- Specified by:
mayWorkOnMultipleGraphsin interfaceAlgorithm
-