Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [gef-dev] text contents in the graphical element

Again, this mailing list is for discussing GEF implementation (i.e. new
features, etc), not how to use GEF.  These types of questions should be
asked on the newsgroup (news://news.eclipse.org/eclipse.tools.gef).

We are in the process of publishing an article about this.  The short answer
is subclass Figure, use ToolbarLayout and add a Label as its first child for
your text.  Then add another child Figure to use as the contents pane.  To
modify the text directly, you'll have to use direct edit.  See the
LogicLabel in the logic example.



-----Original Message-----
From: gef-dev-admin@xxxxxxxxxxx [mailto:gef-dev-admin@xxxxxxxxxxx] On Behalf
Of liziwen
Sent: Sunday, June 29, 2003 9:11 AM
To: gef-dev@xxxxxxxxxxx

Hi!
How can I add my text contents in my graphical element(such as
RectangleFigure)?

For example: in UML class diagram we can add some text to the
RectangleFigure,and can I modify it directly?

Thanks!





--http://www.eyou.com
--Îȶ¨¿É¿¿µÄÃâ·Ñµç×ÓÐÅÏä  ÓïÒôÓʼþ  Òƶ¯ÊéÇ©  ÈÕÀú·þÎñ  ÍøÂç´æ´¢...ÒÚÓÊδ¾¡


_______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/gef-dev



Back to the top