PowerDesigner使用指南

PowerDesigner使用指南

PowerDesigner如何去掉黑色网格线

点击工具栏上的 Tools -> Display Preferences 菜单选项,在弹出的Display Preferences窗口去掉“Show page delimiter”(显示页面分隔符)选项即可。

PowerDesigner更改图元素样式

鼠标右键点击Display Preferences选项

image-20221024233609302

PowerDesigner绘制用例图

参考:用Powerdesigner画用例图 - UML/模型工具 - 开发语言与工具 - 深度开源 (open-open.com)

PowerDesigner更改字体

image-20221024214342846

PowerDesigner绘制状态图

参考:PowerDesigner16 状态图 - 猪脚踏浪 - 博客园 (cnblogs.com)

PowerDesigner绘制顺序图/时序图

参考:(77条消息) PowerDesigner16 画时序图教程_古尔光赫的博客-CSDN博客_powerdesigner时序图

⭐️以上参考很有价值

PowerDesigner绘制类图

参考:(77条消息) PowerDesigner 画类图_天狼1222的博客-CSDN博客_powerdesigner画类图

类图快速生成set和get方法:
image-20221030162700052

从下图菜单,生成Java代码;

img

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//Circle.java
public class Circle extends Shape {
public void draw() {
// TODO: implement
}
}
//Ellipse.java
public class Ellipse extends Shape {
public void draw() {
// TODO: implement
}
}
//Rectangle.java
public class Rectangle extends Shape {
public void draw() {
// TODO: implement
}
}
//Shape.java
public class Shape {
public void draw() {
// TODO: implement
}
}
//ShapeFactory.java
public class ShapeFactory {
public static shape createShape(char type) {
// TODO: implement
return null;
}
}

PowerDesigner在连接线上增加说明文字

参考:(77条消息) powerdesigner 在连接线上显示关系名_txxs的博客-CSDN博客_powerdesigner连接线

image-20221206213542587

如果以上操作没有显示,则在Format出勾选Stereotype:

image-20221207222808277

PowerDesigner在连接线上删除默认的多重性说明

image-20221207223017827

PowerDesigner中内部类的画法

参考:(83条消息) PowerDesigner中内部类的画法_V_Vi3w的博客-CSDN博客

  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2023-2024 Guijie Wang
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信