uml editor english
TRANSCRIPT
-
8/8/2019 UML Editor English
1/8
-
8/8/2019 UML Editor English
2/8
-
8/8/2019 UML Editor English
3/8
-
8/8/2019 UML Editor English
4/8
-
8/8/2019 UML Editor English
5/8
Alternative 1.a (x,y) is not inside any basic objects. The following actionsfrom mouse pressed -> mouse drag -> mouse released
make no effects.Alternative 3.a (x,y) is not inside any basic objects. No connection line is
created.
Definition :Please assume each basic object has 4 ports as in the following
figure. A connection line is established between two ports of basicobjects. A simple rule is used to compute which port should bechosen when mouse is clicked. For example, when a (x,y) is pressed,the distances to the four ports can be computed. The port that hasthe shortest distance to (x,y) should be chosen as the connectionport for the new connection line.
UseCase C.1 Select/Unselect a single objectsprecondition:
This use case only apply to the cases where select
button is the current mode.
definitionWe says an object is selected if its four connection portsare displayed as the figure shown above. On the otherhand, when an object is not selected, the four connectionports should be hidden.
1. A user clicks at (x,y) which is inside an object X.
5
-
8/8/2019 UML Editor English
6/8
2. If any objects in the editing area are selected, un-selectthem.
3. Make X as an selected object by showing its four
connection ports.
Alternative 1.aif (x,y) is not inside any objects, do nothing.un-select any objects that are previously selected.
UseCase C.2 Select/Unselect a group of objectsprecondition
This use case only applies to the cases where select buttoncontrol the current mode.
1. A user press mouse button at (x1,y1) without releasing thebutton and (x1,y1) is not inside any objects.
2. un-select any objects that are previously selected.3. The user drags the mouse4. The user releases the mouse button at (x2,y2)
5. (x1,y1,x2,y2) for a rectangular area. Any objects that arecompletely inside the area are selected.
Alternative 4.a (x1,y1,x2,y2) form a rectangular region andno objects are included. This case is equal to un-select all theobjects.
UseCase D.1 Group objectsprecondition:
This use case only applies to the case that at least twoobjects are selected under select mode.
1. The user goes to Edit Menu and click group2. The selected objects are grouped into a composite object.
UseCase D.2 UnGroup objectsprecondition:
6
-
8/8/2019 UML Editor English
7/8
This use cases only applies to the case when only onecomposite object has been selected.
1.
The user goes to Edit Menu and click ungroup.2. The composite object is torn down one level.
UseCase E.1 Move objectsprecondition:
This use case only applies to select mode.
1. The user presses mouse button at (x,y) without releasingthe button and (x,y) is inside some object X (includingcomposite objects).
2. The user drags the mouse3. The user releases button at (x,y).4. Object X is moved to the new position (x,y)5. All the connection lines that connect to object X are
redrawn.
Note : (x,y) could fall inside more than one objects (they are
overlapped). In this case, the object on top (with less depth)should be moved.
UseCase F.1 Change Object Nameprecondition:
This use case only applies to select mode and only onebasic object is selected.
1. The user goes to Edit Menu and click change object name.2. A window pops up. The window has one text area, OK button
and Cancel button.3. The user enters string at text area and press OK. The string
entered should be displayed on the basic objects.
Alternative 3.a Cancel1. User click Cancel button, the popped window disappears anddo nothing.
7
-
8/8/2019 UML Editor English
8/8
8