Asked By
catlin bred
60 points
N/A
Posted on - 09/02/2012
I’m a newbie developer and was wondering if someone knows how to change java app visual style color? If anybody knows, then give me general idea for proper code. Any kind of help would be appreciated.
How to change java app visual style color?
Â
Hi,
Â
Well its not kind of difficult to change the visual effects, like changing node colors or visual styles,
Â
Functions which are used to serve these purposes are:
Â
visualstylebypass()
visualization.ready()Â
Use visualstylebypass()
Â
 from inside the "Ready()" callback e.g.
Â
vis.ready(function() {
  var bypass = { nodes: { }, edges: { } };
  var nodes = vis.nodes();
  for (var i=0; i<nodes.length; i++) {
    var n = nodes[i];
     bypass.nodes[n.data.id] = { color: "#ff0000" };
  }
   vis.visualStyleBypass(bypass);
});
vis.draw(options);
Â
Â
Hope it helps!!
Â