blob: 071ceac68881b70b7dc695ecfeb6b44c5490dc4b [file] [log] [blame]
mwenzb5dc2f92010-06-16 13:24:52 +00001<html>
2
3<head>
4<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
5<meta name=Generator content="Microsoft Word 12 (filtered)">
6<title>Connection visualization</title>
7<link rel=Stylesheet type="text/css" media=all href="../book.css">
8<style>
9<!--
10 /* Font Definitions */
11 @font-face
12 {font-family:"Cambria Math";
13 panose-1:2 4 5 3 5 4 6 3 2 4;}
14@font-face
15 {font-family:Cambria;
16 panose-1:2 4 5 3 5 4 6 3 2 4;}
17@font-face
18 {font-family:Tahoma;
19 panose-1:2 11 6 4 3 5 4 4 2 4;}
20 /* Style Definitions */
21 p.MsoNormal, li.MsoNormal, div.MsoNormal
22 {margin:0cm;
23 margin-bottom:.0001pt;
24 font-size:12.0pt;
25 font-family:"Times New Roman","serif";}
26h1
27 {mso-style-link:"\00DCberschrift 1 Zchn";
28 margin-top:12.0pt;
29 margin-right:0cm;
30 margin-bottom:3.0pt;
31 margin-left:0cm;
32 page-break-after:avoid;
33 font-size:16.0pt;
34 font-family:"Times New Roman","serif";
35 font-weight:bold;}
36h2
37 {mso-style-link:"\00DCberschrift 2 Zchn";
38 margin-top:12.0pt;
39 margin-right:0cm;
40 margin-bottom:3.0pt;
41 margin-left:0cm;
42 page-break-after:avoid;
43 font-size:14.0pt;
44 font-family:"Times New Roman","serif";
45 font-weight:bold;
46 font-style:italic;}
47p.MsoCaption, li.MsoCaption, div.MsoCaption
48 {margin-top:6.0pt;
49 margin-right:0cm;
50 margin-bottom:24.0pt;
51 margin-left:0cm;
52 text-align:justify;
53 font-size:10.0pt;
54 font-family:"Times New Roman","serif";
55 font-weight:bold;}
56a:link, span.MsoHyperlink
57 {color:blue;
58 text-decoration:underline;}
59a:visited, span.MsoHyperlinkFollowed
60 {color:purple;
61 text-decoration:underline;}
62p
63 {margin-top:5.65pt;
64 margin-right:0cm;
65 margin-bottom:5.65pt;
66 margin-left:0cm;
67 font-size:12.0pt;
68 font-family:"Times New Roman","serif";}
69p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
70 {mso-style-link:"Sprechblasentext Zchn";
71 margin:0cm;
72 margin-bottom:.0001pt;
73 font-size:8.0pt;
74 font-family:"Tahoma","sans-serif";}
75span.berschrift1Zchn
76 {mso-style-name:"\00DCberschrift 1 Zchn";
77 mso-style-link:"\00DCberschrift 1";
78 font-family:"Cambria","serif";
79 color:#365F91;
80 font-weight:bold;}
81span.berschrift2Zchn
82 {mso-style-name:"\00DCberschrift 2 Zchn";
83 mso-style-link:"\00DCberschrift 2";
84 font-family:"Cambria","serif";
85 color:#4F81BD;
86 font-weight:bold;}
87span.SprechblasentextZchn
88 {mso-style-name:"Sprechblasentext Zchn";
89 mso-style-link:Sprechblasentext;
90 font-family:"Tahoma","sans-serif";}
91p.msochpdefault, li.msochpdefault, div.msochpdefault
92 {mso-style-name:msochpdefault;
93 margin-top:5.65pt;
94 margin-right:0cm;
95 margin-bottom:5.65pt;
96 margin-left:0cm;
97 font-size:10.0pt;
98 font-family:"Times New Roman","serif";}
99span.Heading1Char
100 {mso-style-name:"Heading 1 Char";
101 mso-style-link:"Heading 1";
102 font-family:"Cambria","serif";
103 color:#365F91;
104 font-weight:bold;}
105p.Heading1, li.Heading1, div.Heading1
106 {mso-style-name:"Heading 1";
107 mso-style-link:"Heading 1 Char";
108 margin:0cm;
109 margin-bottom:.0001pt;
110 font-size:12.0pt;
111 font-family:"Times New Roman","serif";}
112span.Heading2Char
113 {mso-style-name:"Heading 2 Char";
114 mso-style-link:"Heading 2";
115 font-family:"Cambria","serif";
116 color:#4F81BD;
117 font-weight:bold;}
118p.Heading2, li.Heading2, div.Heading2
119 {mso-style-name:"Heading 2";
120 mso-style-link:"Heading 2 Char";
121 margin:0cm;
122 margin-bottom:.0001pt;
123 font-size:12.0pt;
124 font-family:"Times New Roman","serif";}
125span.BalloonTextChar
126 {mso-style-name:"Balloon Text Char";
127 mso-style-link:"Balloon Text";
128 font-family:"Tahoma","sans-serif";}
129p.BalloonText, li.BalloonText, div.BalloonText
130 {mso-style-name:"Balloon Text";
131 mso-style-link:"Balloon Text Char";
132 margin:0cm;
133 margin-bottom:.0001pt;
134 font-size:12.0pt;
135 font-family:"Times New Roman","serif";}
136p.rschrift1, li.rschrift1, div.rschrift1
137 {mso-style-name:"\00BErschrift 1";
138 mso-style-link:"\00BErschrift 1 Zchn";
139 margin:0cm;
140 margin-bottom:.0001pt;
141 font-size:12.0pt;
142 font-family:"Times New Roman","serif";}
143span.rschrift1Zchn
144 {mso-style-name:"\00BErschrift 1 Zchn";
145 mso-style-link:"\00BErschrift 1";
146 font-family:"Cambria","serif";
147 color:#365F91;
148 font-weight:bold;}
149p.rschrift2, li.rschrift2, div.rschrift2
150 {mso-style-name:"\00BErschrift 2";
151 mso-style-link:"\00BErschrift 2 Zchn";
152 margin:0cm;
153 margin-bottom:.0001pt;
154 font-size:12.0pt;
155 font-family:"Times New Roman","serif";}
156span.rschrift2Zchn
157 {mso-style-name:"\00BErschrift 2 Zchn";
158 mso-style-link:"\00BErschrift 2";
159 font-family:"Cambria","serif";
160 color:#4F81BD;
161 font-weight:bold;}
162span.code0
163 {mso-style-name:code0;
164 font-style:italic;}
165.MsoChpDefault
166 {font-size:10.0pt;}
167@page Section1
168 {size:595.3pt 841.9pt;
169 margin:70.85pt 70.85pt 2.0cm 70.85pt;}
170div.Section1
171 {page:Section1;}
172 /* List Definitions */
173 ol
174 {margin-bottom:0cm;}
175ul
176 {margin-bottom:0cm;}
177-->
178</style>
179
180</head>
181
182<body bgcolor=white lang=DE link=blue vlink=purple style='margin-bottom:12.0pt'>
183
184<div class=Section1>
185
186<div>
187
188<h1><span lang=EN-GB>Connection Visualization</span></h1>
189
190<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
191
192<p class=MsoNormal><span lang=EN-GB style='color:black'>This chapter describes
193advanced connection visualization possibilities.</span></p>
194
195<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;</span></p>
196
197<h2><span lang=EN-US>Connection Decorators</span></h2>
198
199<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;</span></p>
200
201<p class=MsoNormal><span lang=EN-GB style='color:black'>The framework supports
202two different connection decorators:</span></p>
203
204<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
205
206<p class=MsoNormal><span lang=EN-GB style='color:black'>Static decorators
207(inactive pictogram elements) are usually used for connection ends.</span></p>
208
209<p class=MsoNormal><span style='color:black'><img width=501 height=202
210src="visio/connection-decorator-static.png"></span></p>
211
212<p class=MsoCaption><span lang=EN-GB>Figure: Static connection decorators</span></p>
213
214<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
215
216<p class=MsoNormal><span lang=EN-GB style='color:black'>Dynamic decorators
217(active pictogram elements) are usually of type text; these decorators can be
218moved via drag &amp; drop; they can be placed anywhere in the diagram.</span></p>
219
220<p class=MsoNormal><span style='color:black'><img width=501 height=211
221src="visio/connection-decorator-dynamic.png"></span></p>
222
223<p class=MsoCaption><span lang=EN-GB>Figure: Dynamic connection decorators</span></p>
224
225<p class=MsoNormal><span lang=EN-GB style='color:black'>To create such
226connection decorators we have to do the following in the graphics model:</span></p>
227
228<ul style='margin-top:0cm' type=disc>
229 <li class=MsoNormal style='color:black;margin-top:6.0pt;text-align:justify'>create
230 a connection decorator</li>
231 <li class=MsoNormal style='color:black;margin-top:6.0pt;text-align:justify'><span
232 lang=EN-GB>add a valid graphics algorithm to the connection decorator</span></li>
233 <li class=MsoNormal style='color:black;margin-top:6.0pt;text-align:justify'><span
234 lang=EN-GB>add this connection decorator to a connection</span></li>
235 <li class=MsoNormal style='color:black;margin-top:6.0pt;text-align:justify'><span
236 lang=EN-GB>optional: link connection decorator with the business object</span></li>
237</ul>
238
239<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
240
241<p class=MsoNormal><span lang=EN-GB style='color:black'>There are some
242technical limitations for static decorators: they are only supported for
243graphics algorithm of type polyline or polygon (otherwise they can not be
244rotated) and they can only be placed at the beginning or at the end of a
245connection.</span></p>
246
247<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
248
249<p class=MsoNormal><span lang=EN-GB style='color:black'>In this example we want
250create two static connection decorators as shown above and one dynamic
251connection decorator which displays the name of the association.</span></p>
252
253<p class=MsoNormal><span lang=EN-GB style='color:black'>For simplification
254those static connection decorators will be created without consideration of the
255real values in the business model (types of association ends).</span></p>
256
257<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
258
259<p class=MsoNormal><span lang=EN-GB style='color:black'>The decorators will be
260added in the</span><span lang=EN-GB> </span><span class=code0><span lang=EN-US
261style='color:black'><a href="add-connection-feature.htm"><span
262style='font-style:normal'>add connection feature</span></a></span></span><span
263lang=EN-GB style='color:black'>. The following changes must be done in this
264feature.</span></p>
265
266<p class=MsoNormal><span lang=EN-GB style='color:black'>First add some helper
267methods to the add connection feature which create the graphics algorithms for
268the static decorators:</span></p>
269
270<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
271
272<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=851
273 style='width:18.0cm;border-collapse:collapse'>
274 <tr>
275 <td width=851 valign=top style='width:18.0cm;border:solid windowtext 1.0pt;
276 padding:0cm 5.4pt 0cm 5.4pt'>
277 <p class=MsoNormal style='text-autospace:none'><span lang=EN-GB
278 style='font-size:10.0pt;font-family:"Courier New";color:#3F7F5F'>&nbsp;</span></p>
279 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
280 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span><span
281 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
282 "Courier New";color:#7F0055'>private</span></b><span lang=EN-US> </span><span
283 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>Polyline
284 createArrow(GraphicsAlgorithmContainer gaContainer) {</span></p>
285 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
286 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
287 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
288 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
289 IGaService gaService = Graphiti.getGaService();<span style='color:black'><br>
290 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Polyline polyline =</span></span></p>
291 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
292 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
293 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>gaService<span
294 style='color:black'>.createPolyline(gaContainer,</span> <b><span
295 style='color:#7F0055'>new</span></b> <b><span style='color:#7F0055'>int</span></b><span
296 style='color:black'>[] { -15, 10, 0, 0, -15,</span></span></p>
297 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
298 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
299 -10 });</span></p>
300 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
301 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
302 polyline.setForeground(manageColor(IColorConstant.</span><i><span lang=EN-US
303 style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>BLACK</span></i><span
304 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>));</span></p>
305 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
306 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
307 polyline.setLineWidth(2);</span></p>
308 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
309 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
310 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
311 "Courier New";color:#7F0055'>return</span></b><span lang=EN-US> </span><span
312 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>polyline;</span></p>
313 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
314 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;
315 }</span></p>
316 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
317 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
318 </td>
319 </tr>
320</table>
321
322<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
323
324<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
325
326<p class=MsoNormal><span lang=EN-GB style='color:black'>Then create the
327connection decorators at the end of the add method of the add connection
328feature, as explained in the following code snippet:</span></p>
329
330<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
331
332<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=851
333 style='width:18.0cm;border-collapse:collapse'>
334 <tr>
335 <td width=851 valign=top style='width:18.0cm;border:solid windowtext 1.0pt;
336 padding:0cm 5.4pt 0cm 5.4pt'>
337 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-GB
338 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>&nbsp;</span></b></p>
339 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
340 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span><span
341 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
342 "Courier New";color:#7F0055'>public</span></b><span lang=EN-US> </span><span
343 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>PictogramElement
344 add(IAddContext context) {</span></p>
345 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
346 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;</span></p>
347 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
348 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
349 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
350 color:#3F7F5F'>// ... EXISTING CODING ...</span></p>
351 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
352 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
353 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
354 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
jpasche4ad7c02010-06-17 15:05:51 +0000355 <span lang="EN-US" style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span lang="EN-US"> </span><span lang="EN-US" style='font-size:10.0pt;font-family:"Courier New";
356 color:#3F7F5F'>// add dynamic text decorator for the association name</span>
mwenzb5dc2f92010-06-16 13:24:52 +0000357 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
358 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
359 ConnectionDecorator textDecorator =</span></p>
360 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
361 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
362 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>peCreateService<span
363 style='color:black'>.createConnectionDecorator(connection,</span> <b><span
364 style='color:#7F0055'>true</span></b><span style='color:black'>,<br>
365 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.5,</span>
366 <b><span style='color:#7F0055'>true</span></b><span style='color:black'>);</span></span></p>
367 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
mwenzb5dc2f92010-06-16 13:24:52 +0000368 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
369 Text text =</span><span lang=EN-US> </span><span lang=EN-US style='font-size:
370 10.0pt;font-family:"Courier New"'>gaService<span style='color:black'>.createDefaultText(textDecorator);</span></span></p>
371 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
372 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
373 text.setForeground(manageColor(IColorConstant.</span><i><span lang=EN-US
374 style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>BLACK</span></i><span
375 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>));</span></p>
376 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
377 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
378 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>gaService<span
mwenz43056d92011-01-17 09:05:32 +0000379 style='color:black'>.setLocation(text, 10, 0);</span></span></p>
mwenzb5dc2f92010-06-16 13:24:52 +0000380 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
381 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
382 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
383 color:#3F7F5F'>// set reference name in the text decorator</span></p>
384 <p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>&acute;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
385 EReference eReference = (EReference) context.getNewObject();</span></p>
386 <p class=MsoNormal style='text-autospace:none'><span lang=FR
387 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
388 lang=FR> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
389 color:black'>text.setValue(</span><span lang=EN-US style='font-size:10.0pt;
390 font-family:"Courier New"'>eReference<span style='color:black'>.getName());</span></span></p>
391 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
392 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
393 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
394 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
395 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
396 color:#3F7F5F'>// add static graphical decorator (composition and navigable)</span></p>
397 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
398 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
399 ConnectionDecorator cd;</span></p>
400 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
401 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
402 cd =</span><span lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;
403 font-family:"Courier New"'>peCreateService<span style='color:black'><br>
404 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
405 .<i>createConnectionDecorator</i>(connection,</span> <b><span
jpasche4ad7c02010-06-17 15:05:51 +0000406 style='color:#7F0055'>false</span></b><span style='color:black'>, 1.0,</span>
mwenzb5dc2f92010-06-16 13:24:52 +0000407 <b><span style='color:#7F0055'>true</span></b><span style='color:black'>);</span></span></p>
408 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
409 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
410 createArrow(cd);</span></p>
411 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
412 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
413 lang=EN-US> </span><b><span style='font-size:10.0pt;font-family:"Courier New";
414 color:#7F0055'>return</span></b> <span style='font-size:10.0pt;font-family:
415 "Courier New";color:black'>connection;</span></p>
416 <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
417 font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp; }</span></p>
418 <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
419 font-family:"Courier New";color:black'>&nbsp;</span></p>
420 </td>
421 </tr>
422</table>
423
424<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
425
426<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
427
428<h2><span lang=EN-GB>Test: Display and Move Connection Decorators</span></h2>
429
430<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
431
432<p class=MsoNormal><span lang=EN-GB style='color:black'>Start the editor again
433and test these new connection decorators:</span></p>
434
435<ol style='margin-top:0cm' start=1 type=1>
436 <li class=MsoNormal style='color:black;margin-top:6.0pt;text-align:justify'><span
437 lang=EN-GB>create or open a diagram</span></li>
438 <li class=MsoNormal style='color:black;margin-top:6.0pt;text-align:justify'><span
439 lang=EN-GB>create a new EReference between two EClasses; you can see the
440 three decorators on the EReference</span></li>
441 <li class=MsoNormal style='color:black;margin-top:6.0pt;text-align:justify'><span
442 lang=EN-GB>move the EClasses; you can see that the static decorator
443 (arrow) rotate automatically</span></li>
444 <li class=MsoNormal style='color:black;margin-top:6.0pt;text-align:justify'><span
445 lang=EN-GB>move the dynamic decorator (text) via drag &amp; drop</span></li>
446</ol>
447
448<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
449
450<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;</span></p>
451
452</div>
453
454</div>
455<hr>
456 <a href="http://www.eclipse.org/legal/epl-v10.html" shape="rect">Copyright (c) SAP AG 2005, 2010.</a>
457
458</body>
459
460</html>