GraphLab Project

graphlab.platform.extension
Interface ExtensionHandler

All Known Implementing Classes:
AlgorithmExtensionHandler, AtomAnimatorExtensionHandler, GraphActionExtensionHandler, GraphGeneratorExtensionHandler, GraphIOExtensionHandler, GraphReportExtensionHandler, UIActionExtensionHandler, VisualizationExtensionHandler

public interface ExtensionHandler

The base class to create new types of extensions. It can be done by this:

 class MyExtensionHandler implements ExtensionHandler{
   ...
 }

 and in you plugin Init file:

 public class Init{
      static{
          ExtensionLoader.registerExtensionHandler(new MyExtensionHandler());
      }
 }

Author:
azin azadi

Method Summary
 AbstractAction handle(BlackBoard b, java.lang.Object extension)
          tries to handle the given Object as a known Extension,...
 

Method Detail

handle

AbstractAction handle(BlackBoard b,
                      java.lang.Object extension)
tries to handle the given Object as a known Extension,... normally, Extensions are interfaces that can be sandwiched in an AbstractAction Automatically, there is options for generating menus automatically after loading it (By returning AbstractExtensionAction) .

Parameters:
b - the blackboard as the environment...
extension - the extension which we want to create the AbstractAction from
Returns:
not null if it was a valid case and the operation was successfull, null if it was not a valid case or it is done without creating any actions(in some cases)
See Also:
AbstractExtensionAction

GraphLab Project