startUML怎么画interface接口

    使用的版本是2.8.1,老是用到,今天记录下html

  1. 在class diagram下,左侧有interface图标,先鼠标左键选择,以后鼠标移动到面板上,再左键就能够了;或者第二种方式,右侧,能够直接右键->add->interface
  2. 拖到interface到面板上以后,开始时圆形,在圆形上,右键->Format->Stereotype Display->Label
  3. 步骤2以后,如图1所示,咱们还须要添加属性和方法。
  4. 在该接口图形上,右键->Format->Stereotype Display->Suppress Attributes;右键->Format->Stereotype Display->Suppress Operations。这样以后,才能看到属性、方法。
  5. 在该接口圆形上,右键->Add->Attributes/Operation,新增Operation时,右侧会看到如图2所示,点击isAbstract,图1中的interface名字才会显示为斜型

                                                   

                                                                      图1 spa

                   

                                                                      图2orm

Reference:

  1. http://www.codingwhy.com/view/842.html
相关文章
相关标签/搜索