[uDraw(Graph)-Users] How to change the edges color?
Mattias Werner
mawe at informatik.uni-bremen.de
Wed Apr 15 09:32:56 CEST 2009
Hello,
> I have studied Udraw for some time and find it very useful. And now I
> want to know something about how to change colors.
> I use "change_node_color("nodenumber","color")" to change node color.
> But when I use "change_edge_color("edgenumber","color")", there is no
> change. So how to change the edge color.
the API command change_node_color is an old command still existing
for backward compatibility to version 1.x of uDraw(Graph). It is not
recommended to use this command anymore. There is no command
change_edge_color, because edge colors didn't exist in that version.
Please use the API command graph(change_attr(attr_changes)) instead.
http://www.informatik.uni-bremen.de/uDrawGraph/en/service/uDG31_doc/api_cmd_graph.html#change_attr
Examples are:
graph(change_attr([node("nodenumber",[a("COLOR","color")])]))
for your change_node_color example above or:
graph(change_attr([edge("edgenumber",[a("EDGECOLOR","color")])]))
for your change_edge_color example above, or even:
graph(change_attr([node("nodenumber",[a("COLOR","color")]),edge("edgenumber",[a("EDGECOLOR","color")])]))
for both in one step.
Regards,
Mattias Werner
uDraw(Graph) project
--
Dipl. Inform. Mattias Werner
Bremen University, FB 3
E-Mail: mawe at informatik.Uni-Bremen.DE
WWW: http://www.informatik.uni-bremen.de/~mawe/
More information about the uDrawGraph-Users
mailing list