gpt4 book ai didi

uml - 如何使 StarUML 组件图中的端口在左侧对齐?

转载 作者:行者123 更新时间:2023-12-05 05:31:40 24 4
gpt4 key购买 nike

我正在尝试在 StarUML 中构建组件图。不幸的是,我无法在左侧正确对齐端口。在另一侧,它很好地卡在边缘上。你知道如何? left one does not align correctly

我已经尝试在首选项中启用“自由移动”,但没有帮助。

最佳答案

这是软件中的一个渲染错误,由左上角的矩形插入到旧的组件形状中引起。

这里是在 4 个边上捕捉端口的结果:

Old shape, with 4 ports, the opne from the left misaligned

如果您选择该组件,您将看到一个蓝色的选择矩形围绕着整个形状。左侧端口恰好位于形状边框的中心,只是这不是绘制左边框的位置:

Old shape, with 4 ports, the opne from the left misaligned, with a blue rectangle showing the selection

您可以通过将组件的原型(prototype)格式更改为“Decoration”或“Decoration with label”轻松解决此问题。在这种情况下,组件显示为正常的矩形,其右上部分带有一个小组件图标。完整形状的边界和绘制的矩形的边界相同。然后所有端口都完全符合预期:

Mordern component shape with fiull retangle and a component icon, all ports well aligned

可以逐个更改设置,右键单击组件:格式 > 构造型显示 > ...:

Screenshot of the menu path to change the shape setting

您还可以更改首选项中的设置,菜单文件 > 首选项... > 子菜单 UML,然后向下滚动到组件:

Screenshot of the preference setting dialogue

关于uml - 如何使 StarUML 组件图中的端口在左侧对齐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74326328/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com