Four, StarUML of the Diagrams (FIG) and Elements (element)

The Diagrams (FIG.) May be understood as canvas 

1: Creating a chart

In the first Model Explorer, right-node management interface on the right, or select the menu Model | Add Diagram | [DiagramType] can be created

 

 

 

2:Delete Diagram
After selecting the Edit menu or the right mouse button
3:Open Diagram
FIG Double-drawing area to display relevant FIG content
4: Close Diagram
Diagram will open in a workspace displayed on the left side, it can be closed or batch closed single

 

The smallest unit Element- model design

1:Create Element

Toolbox left drag [the ElementType] Diagram to open the

 

 

 

The relations between the elements in the figures: 1: is a design element, 2: is a model element , 3: view element is a reference model element

Design elements by adding model elements, view elements in the reference model elements.

Model elements can have multiple references (multiplexing), the view does not remove the element delete model elements, model element to delete all references to view elements are also deleted.

May be generated independently of a plurality of model elements of the same type by dragging Toolbox, model elements may be dragged to the drawing, the view from the same reference element.

  • ,, model comprising model elements from the element design element model, the model view element generating elements, elements in FIG view;
  • Make sure that the relationship between model elements and view of the elements before deleting;

 

For example in the drawing area in FIG three elements 3 class1, class1, class3 view elements are referenced on the right side of the model elements 2,

Class1 model elements in the drawing area and two reference class1 class1, common attributes class1 model element;

Class3 class1 and model elements are the same type of model elements of the left separate design elements generated independent attributes;

删除右侧的模型元素class1,则绘图区域的class1 class1同步删除,修改模型元素class1的属性也同步更新引用;

删除绘图区的视图元素class1不影响右侧的模型元素class1,通过模型元素class1的拖拽可以产生多个相同引用的视图元素;

 

 

 

小技巧

1:模型元素查找视图元素

通过模型元素的右键select in Diagram查看包含哪些引用

 

 2:视图元素查找模型元素

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/sun-null/p/12227214.html