// - the sender
JSONSender sender = new JSONSender("localhost", 8080,
"workspace0");
// - plug the graph to the sender so that graph events can be
// sent automatically
g.addSink(sender);
// - generate some events on the client side
String style = "node{fill-mode:plain;fill-color:#567;size:6px;}";
g.addAttribute("stylesheet", style);
g.addAttribute("ui.antialias", true);
g.addAttribute("layout.stabilization-limit", 0);