Reactome的Fireworks GWT小部件是我们在GWT中概述的原始实施。它意味着第三方资源重复使用,以便在其网页中直接显示反应态径概述,并使用户能够与它们进行交互。

更多信息

GWT.是用于构建和优化基于复杂的基于浏览器的应用程序的开发工具包。它的目标是在没有开发人员的情况下实现高性能Web应用程序的高性能Web应用程序,必须是浏览器QUIRKS,XMLHTTPREQUEST和JavaScript的专家。GWT由谷歌的许多产品使用,包括AdWords,Adsense,航班,Hotel Finder,优惠,钱包,博主。它是开放的来源,完全自由,并在全球数千个开发人员使用。

开始

我们假设你已经拥有了你的GWT项目使用和运行配置Maven Archetype.。因此,第一步是在pom.xml文件中添加ebi nexus存储库:

<存储库> ... <! -  ebi repo  - >   nexus-ebi-repo   ebi内部存储库  http://www。ebi.ac.uk/tools/maven/repos/content/groups/ebi-repo /  <版本> <启用> true    <启用> false   <! -  ebi快照repo  - >   nexus-ebi-snapshot-repo   ebi内部快照存储库 http://www.ebi.ac.uk/tools/maven/repos/content/groups/ebi-snapshots/  <发行> <启用> false   <快照> <已启用> True    

一旦存储库到位,下一件事就是添加反垃圾骨群概述依赖项:

<依赖关系> ... <依赖项>  org.reagome.web   Fireworks   1.0.0   <依赖项>

在编写代码以使用路径概述之前,请在您的中添加依赖项gwt.xml.文件,因此编译器将找到路径概述:

<继承name =“org.reagome.web.fireworks.fireworksviewer”/>

最后,假设窗口小部件现在将由自己的代码展示入口点班级看起来像:

/ ** *出于测试目的,我们假设路径概述加载作为网页中的单个项目。* *入口点类定义OnModuleLoad()。* /公共类主要实现EntryPoint {私人最终FireWowksViewer Fireworks;public main(){//我们创建烟花。请注意,无法在同一实例Fireworks = fireOWkSfactory.createFireworksViewer()中加载不同的路径概述;@override public void onmoduleload(){scheduler.get()。scheduledeerred(new scheduler.scheduledcommand(){@override public void execute(){fireworksfactory.console_verbose = true; //这是可选的(用于开发目的)fireworksfactory。event_bus_verbose = true; //这是可选的(for dev目的)//用于此用例,我们将FireWoks添加为网页rootoutpanel.get()的主要且唯一对象。添加(Fireworks);}});}}

API.

可用的方法是定义的DiameViewer.界面在org.reagreme.web.diagram.Client.包裹。这些是:

//订阅用户关闭分析oversay handlergistration addAnalysishandler(AnalysisResethandler处理程序)时要通知此事件;//订阅要通知此事件,如果浏览器不支持画布,则无法显示图形addcanvasnotsupportedhandler(canvasnotsupportedhandler handler);//订阅此事件以在视口寄存器addFireworksed(FireworksLoadedHandler Handler)中显示概述时要通知;//订阅此事件,以在HandlergistrationAddExric算columnChangeDhander(IdextrageColumnChangedHandler处理程序)时通知;//订阅此事件,以在概述Handlegistration addNodeHodeL Handler(NodeHoverHandler Handler)中的节点上遍历节点时;//订阅此事件,以便在概述句柄addnodehodehodehodehandler(nodehoverResethandler处理程序)中留下悬停的节点时通知悬停节点;//订阅此事件以在overview handlergistration addnodeopender(nodeopendhandler处理程序)中打开节点时通知。//在用户在概述HandlEgration AddNodeSelectedHandler(nodeselectedHandler处理程序)中选择节点时,订阅此事件。//订阅此事件时要在概述句柄addNodeSelectedResethandler中取消选中节点时通知(nodeselectedResethandler处理程序);//订阅此事件,以在用户更改颜色配置文件handlergistration addprofilechangedhandler(profilechangedhandler handler)时收到通知; //Returns the selected node Node getSelected(); //Highlights the node with the provided stable identifier void highlightNode(String stableIdentifier); //Highlights the node with the provided stable identifier void highlightNode(Long dbIdentifier); //Zooms-in to the node with the provided stable identifier void openPathway(String stableIdentifier); //Zooms-in to the node with the provided database identifier void openPathway(Long dbIdentifier); //Resets the analysis overlay void resetAnalysis(); //Resets the highlighted nodes void resetHighlight(); //Resets the selected nodes void resetSelection(); //Selects the node with the provided stable identifier void selectNode(String stableIdentifier); //Selects the node with the provided database identifier void selectNode(Long dbIdentifier); //Sets the analysis overlay for a given "token" and "resource" (this will query the Analysis Service) void setAnalysisToken(String token, String resource); //Show all the nodes in the viewport void showAll();

资源