使用的版本是2.8.1,老是用到,今天記錄下html
- 在class diagram下,左側有interface圖標,先鼠標左鍵選擇,以後鼠標移動到面板上,再左鍵就能夠了;或者第二種方式,右側,能夠直接右鍵->add->interface
- 拖到interface到面板上以後,開始時圓形,在圓形上,右鍵->Format->Stereotype Display->Label
- 步驟2以後,如圖1所示,咱們還須要添加屬性和方法。
- 在該接口圖形上,右鍵->Format->Stereotype Display->Suppress Attributes;右鍵->Format->Stereotype Display->Suppress Operations。這樣以後,才能看到屬性、方法。
- 在該接口圓形上,右鍵->Add->Attributes/Operation,新增Operation時,右側會看到如圖2所示,點擊isAbstract,圖1中的interface名字纔會顯示爲斜型
![](http://static.javashuo.com/static/loading.gif)
圖1 spa
![](http://static.javashuo.com/static/loading.gif)
圖2orm
Reference:
- http://www.codingwhy.com/view/842.html