Class ASimpleMVCPlugin<M extends ASimpleMVCPluginModel<V,C>,V extends ASimpleMVCPluginView<M,C,?>,C extends ASimpleMVCPluginController<M,V>>
- java.lang.Object
-
- ai.libs.jaicore.graphvisualizer.plugin.ASimpleMVCPlugin<M,V,C>
-
- All Implemented Interfaces:
IComputedGUIPlugin,IGUIPlugin,org.api4.java.common.control.ILoggingCustomizable
- Direct Known Subclasses:
ControlBarGUIPlugin,GraphViewPlugin,NodeInfoGUIPlugin,SolutionPerformanceTimelinePlugin,SpeedSliderGUIPlugin,TimeSliderGUIPlugin
public abstract class ASimpleMVCPlugin<M extends ASimpleMVCPluginModel<V,C>,V extends ASimpleMVCPluginView<M,C,?>,C extends ASimpleMVCPluginController<M,V>> extends java.lang.Object implements IComputedGUIPlugin, org.api4.java.common.control.ILoggingCustomizable
-
-
Constructor Summary
Constructors Constructor Description ASimpleMVCPlugin()ASimpleMVCPlugin(java.lang.String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CgetController()Returns the underlyingIGUIPluginController.java.lang.StringgetLoggerName()MgetModel()Returns the underlyingIGUIPluginModel.java.lang.StringgetTitle()VgetView()Returns the underlyingIGUIPluginView.voidsetAlgorithmEventSource(PropertyProcessedAlgorithmEventSource algorithmEventSource)Sets thePropertyProcessedAlgorithmEventSourceyieldingIPropertyProcessedAlgorithmEvents which are handled by theIGUIPluginController.voidsetGUIEventSource(GUIEventSource guiEventSource)voidsetLoggerName(java.lang.String name)voidstop()Stops execution of all threads in this plugin (irrevocable).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.libs.jaicore.graphvisualizer.plugin.IComputedGUIPlugin
getPropertyComputers
-
-
-
-
Method Detail
-
getController
public C getController()
Description copied from interface:IGUIPluginReturns the underlyingIGUIPluginController.- Specified by:
getControllerin interfaceIGUIPlugin- Returns:
- The underlying
IGUIPluginController.
-
getModel
public M getModel()
Description copied from interface:IGUIPluginReturns the underlyingIGUIPluginModel.- Specified by:
getModelin interfaceIGUIPlugin- Returns:
- The underlying
IGUIPluginModel.
-
getView
public V getView()
Description copied from interface:IGUIPluginReturns the underlyingIGUIPluginView.- Specified by:
getViewin interfaceIGUIPlugin- Returns:
- The underlying
IGUIPluginView.
-
setAlgorithmEventSource
public void setAlgorithmEventSource(PropertyProcessedAlgorithmEventSource algorithmEventSource)
Description copied from interface:IGUIPluginSets thePropertyProcessedAlgorithmEventSourceyieldingIPropertyProcessedAlgorithmEvents which are handled by theIGUIPluginController.- Specified by:
setAlgorithmEventSourcein interfaceIGUIPlugin- Parameters:
algorithmEventSource- ThePropertyProcessedAlgorithmEventSourceyieldingIPropertyProcessedAlgorithmEvents which are handled by theIGUIPluginController.
-
setGUIEventSource
public void setGUIEventSource(GUIEventSource guiEventSource)
Description copied from interface:IGUIPlugin- Specified by:
setGUIEventSourcein interfaceIGUIPlugin- Parameters:
guiEventSource- TheGUIEventSourceyieldingGUIEvents which are handled by theIGUIPluginController.
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable
-
stop
public void stop()
Description copied from interface:IGUIPluginStops execution of all threads in this plugin (irrevocable).- Specified by:
stopin interfaceIGUIPlugin
-
getTitle
public java.lang.String getTitle()
- Specified by:
getTitlein interfaceIGUIPlugin- Returns:
- The title of the plugin as to be displayed in the window.
-
-