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
相關文章
相關標籤/搜索