如何在Dia中进行自我呼叫? [英] How to draw a self-call in Dia?

查看:163
本文介绍了如何在Dia中进行自我呼叫?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用Dia.我正在尝试构建序列图.我想代表自己打电话.在Dia中如何做到这一点?我不知道.

I just started using Dia. I'm trying to build a sequence diagram. I would like to represent self-calls. How does one do that in Dia? I can't figure it out.

谢谢.

推荐答案

首先放置一个UML Message对象,并将其基础附加到您的生命线.

First place a UML Message object with it's base attached to your lifeline.

然后,双击箭头(或右键单击属性"),然后将消息类型"下拉字段更改为递归",您将获得类似以下内容的信息:

Then, double-click the arrow (or right-click, Properties), and change the Message Type drop-down field to Recursive, and you'll get something like this:

现在,您可以在周围拖动绿色的锚点,以使消息"箭头看起来像您想要的那样. (注意事项:似乎在使用递归消息对象时,您只能通过在绿色锚点将要出现的位置上单击该对象来选择该对象.之所以说将是",是因为您实际上看不到未选择对象时,绿色锚点.)

Now you can drag the green anchor point around to make the Message arrow look as you'd like. (A note of caution: it seems that with a Recursive Message object, you can ONLY select the object by clicking on it exactly where the green anchor point WOULD BE. I say "would be" because of course you can't actually see that green anchor point when the object isn't selected.)

如果愿意,可以创建另一个UML Lifeline对象,并将其放置在现有的生命线上,如下所示:

If you like, you can create another UML Lifeline object, and place it overlapping the existing lifeline, like this:

但是,这并不理想,因为第二条生命线实际上没有任何附加内容.递归消息对象不允许您选择将其箭头附加到何处,因为它会自动附加到其起源的生命线.而且因为第二条生命线没有附着在任何东西上,所以如果您走动,第二条生命线将被抛在后面.但是,如果您要这么做的话,它看起来确实很漂亮. :)

This isn't ideal, though, because there isn't actually anything attached to this second lifeline. The Recursive Message object doesn't let you choose where to attach it's arrowhead, because it's automatically attached to the lifeline from which it originated. And because the second lifeline isn't attached to anything, if you go moving objects around it will get left behind. But, it does look pretty, if that's what you're after. :)

这篇关于如何在Dia中进行自我呼叫?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆