java - mxGraph editor - fire an event when a node is created -


i'm playing sample mxgraph editor comes jgraph. have method i'd called every time new node created. know how this?

i have feeling has mxgraphcomponent, couldn't figure out how it.

have @ api docs of mxgraph class. fires number of granular events specify changes have occurred. interested in mxevent.cells_added.so add listener with:

graph.addlistener(mxevent.cells_added, myhandler);

where myhandler implements mxieventlistener interface requires invoke method implemented (your method gets called when event fired).


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -