From wangxue at ict.ac.cn Wed May 20 07:23:54 2009 From: wangxue at ict.ac.cn (=?gb2312?B?zfXRqQ==?=) Date: Wed, 20 May 2009 13:23:54 +0800 Subject: [uDraw(Graph)-Users] (no subject) Message-ID: <200905201323543753177@ict.ac.cn> hello. I have tried to show the following code but there is something wrong with it. Every time I want to show the graph, the second vertex is not seen. codes: [l("BB1",n("1",[a("OBJECT","1\n"),a("COLOR","lightgreen"),a("_GO","rhombus")],[l("",e("",[],l("BB2", n("2",[a("OBJECT","2\n2 \r\n3 int f(){\r\n4 \tglobal_var=10;\r\n5 \treturn global_var;\r\n"),a("COLO R","lightred"),a("_GO","ellipse")],[l("",e("",[],l("BB3",n("3",[a("OBJECT","3\n"),a("COLOR","lightre d"),a("_GO","ellipse")],[])))),]))))]))] I found that when "{" exists, it won's show normally. So What am I going to do when I want to show "{" or "}"? there is another question. I want to show different font in a OBJECT in one node. For example, a("OBJECT","a\n b\n"), I want to "a" and "b" in different font or color, is there any way to do this? Thank you very much. Wang, Xue 2009-05-20 ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mawe at informatik.uni-bremen.de Wed May 20 10:00:42 2009 From: mawe at informatik.uni-bremen.de (Mattias Werner) Date: Wed, 20 May 2009 10:00:42 +0200 Subject: [uDraw(Graph)-Users] something wrong with codes / visualize the text of a node in a different font In-Reply-To: <200905201323543753177@ict.ac.cn> References: <200905201323543753177@ict.ac.cn> Message-ID: <4A13B8AA.3090108@informatik.uni-bremen.de> Hello, ?? schrieb: > I found that when "{" exists, it won's show normally. So What am I going > to do when I want to show "{" or "}"? > there is another question. I want to show different font in a OBJECT in > one node. unfortunately it is impossible to display these two characters in a node or edge OBJECT atttribute. You can use "\\{" but than you'll get "\{" displayed. > For example, a("OBJECT","a\n b\n"), I want to "a" and "b" in different > font or color, is there any way to do this? No, there is no way to do this. 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/