blob: 244e1f3b4824f5d88502105b89ef45bd4340af25 [file] [log] [blame]
mwenzb5dc2f92010-06-16 13:24:52 +00001<html>
jpasch7e7b88c2010-06-23 14:27:12 +00002
mwenzb5dc2f92010-06-16 13:24:52 +00003<head>
jpasch7e7b88c2010-06-23 14:27:12 +00004<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
5<meta name=Generator content="Microsoft Word 12 (filtered)">
mwenzb5dc2f92010-06-16 13:24:52 +00006<title>Color schemas</title>
jpasch7e7b88c2010-06-23 14:27:12 +00007<link rel=Stylesheet type="text/css" media=all href="../book.css">
8<style>
mwenzb5dc2f92010-06-16 13:24:52 +00009<!--
10 /* Font Definitions */
11 @font-face
jpasch7e7b88c2010-06-23 14:27:12 +000012 {font-family:"Cambria Math";
13 panose-1:2 4 5 3 5 4 6 3 2 4;}
mwenzb5dc2f92010-06-16 13:24:52 +000014@font-face
jpasch7e7b88c2010-06-23 14:27:12 +000015 {font-family:Cambria;
16 panose-1:2 4 5 3 5 4 6 3 2 4;}
mwenzb5dc2f92010-06-16 13:24:52 +000017@font-face
jpasch7e7b88c2010-06-23 14:27:12 +000018 {font-family:Tahoma;
19 panose-1:2 11 6 4 3 5 4 4 2 4;}
20@font-face
21 {font-family:Consolas;
22 panose-1:2 11 6 9 2 2 4 3 2 4;}
mwenzb5dc2f92010-06-16 13:24:52 +000023 /* Style Definitions */
24 p.MsoNormal, li.MsoNormal, div.MsoNormal
jpasch7e7b88c2010-06-23 14:27:12 +000025 {margin:0cm;
26 margin-bottom:.0001pt;
27 font-size:12.0pt;
28 font-family:"Times New Roman","serif";}
mwenzb5dc2f92010-06-16 13:24:52 +000029h1
jpasch7e7b88c2010-06-23 14:27:12 +000030 {mso-style-link:"\00DCberschrift 1 Zchn";
31 margin-top:12.0pt;
32 margin-right:0cm;
33 margin-bottom:3.0pt;
34 margin-left:0cm;
35 page-break-after:avoid;
36 font-size:16.0pt;
37 font-family:"Times New Roman","serif";
38 font-weight:bold;}
mwenzb5dc2f92010-06-16 13:24:52 +000039h2
jpasch7e7b88c2010-06-23 14:27:12 +000040 {mso-style-link:"\00DCberschrift 2 Zchn";
41 margin-top:12.0pt;
42 margin-right:0cm;
43 margin-bottom:3.0pt;
44 margin-left:0cm;
45 page-break-after:avoid;
46 font-size:14.0pt;
47 font-family:"Times New Roman","serif";
48 font-weight:bold;
49 font-style:italic;}
mwenzb5dc2f92010-06-16 13:24:52 +000050h3
jpasch7e7b88c2010-06-23 14:27:12 +000051 {mso-style-link:"\00DCberschrift 3 Zchn";
52 margin-top:12.0pt;
53 margin-right:0cm;
54 margin-bottom:3.0pt;
55 margin-left:0cm;
56 page-break-after:avoid;
57 font-size:13.0pt;
58 font-family:"Times New Roman","serif";
59 font-weight:bold;}
mwenzb5dc2f92010-06-16 13:24:52 +000060h4
jpasch7e7b88c2010-06-23 14:27:12 +000061 {mso-style-link:"\00DCberschrift 4 Zchn";
62 margin-top:11.25pt;
63 margin-right:0cm;
64 margin-bottom:1.7pt;
65 margin-left:0cm;
66 font-size:12.0pt;
67 font-family:"Times New Roman","serif";
68 font-weight:bold;
69 font-style:italic;}
mwenzb5dc2f92010-06-16 13:24:52 +000070h5
jpasch7e7b88c2010-06-23 14:27:12 +000071 {mso-style-link:"\00DCberschrift 5 Zchn";
72 margin-right:0cm;
73 margin-left:0cm;
74 font-size:10.0pt;
75 font-family:"Times New Roman","serif";
76 font-weight:bold;}
mwenzb5dc2f92010-06-16 13:24:52 +000077h6
jpasch7e7b88c2010-06-23 14:27:12 +000078 {mso-style-link:"\00DCberschrift 6 Zchn";
79 margin-right:0cm;
80 margin-left:0cm;
81 font-size:7.5pt;
82 font-family:"Times New Roman","serif";
83 font-weight:bold;}
mwenzb5dc2f92010-06-16 13:24:52 +000084p.MsoCaption, li.MsoCaption, div.MsoCaption
jpasch7e7b88c2010-06-23 14:27:12 +000085 {margin-top:6.0pt;
86 margin-right:0cm;
87 margin-bottom:24.0pt;
88 margin-left:0cm;
89 text-align:justify;
90 font-size:10.0pt;
91 font-family:"Times New Roman","serif";
92 font-weight:bold;}
mwenzb5dc2f92010-06-16 13:24:52 +000093a:link, span.MsoHyperlink
jpasch7e7b88c2010-06-23 14:27:12 +000094 {color:blue;
95 text-decoration:underline;}
mwenzb5dc2f92010-06-16 13:24:52 +000096a:visited, span.MsoHyperlinkFollowed
jpasch7e7b88c2010-06-23 14:27:12 +000097 {color:purple;
98 text-decoration:underline;}
mwenzb5dc2f92010-06-16 13:24:52 +000099p
jpasch7e7b88c2010-06-23 14:27:12 +0000100 {margin-top:5.65pt;
101 margin-right:0cm;
102 margin-bottom:5.65pt;
103 margin-left:0cm;
104 font-size:12.0pt;
105 font-family:"Times New Roman","serif";}
mwenzb5dc2f92010-06-16 13:24:52 +0000106pre
jpasch7e7b88c2010-06-23 14:27:12 +0000107 {mso-style-link:"HTML Vorformatiert Zchn";
108 margin-top:0cm;
109 margin-right:0cm;
110 margin-bottom:0cm;
111 margin-left:3.4pt;
112 margin-bottom:.0001pt;
113 font-size:11.0pt;
114 font-family:"Courier New";}
mwenzb5dc2f92010-06-16 13:24:52 +0000115p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
jpasch7e7b88c2010-06-23 14:27:12 +0000116 {mso-style-link:"Sprechblasentext Zchn";
117 margin:0cm;
118 margin-bottom:.0001pt;
119 font-size:8.0pt;
120 font-family:"Tahoma","sans-serif";}
mwenzb5dc2f92010-06-16 13:24:52 +0000121span.berschrift1Zchn
jpasch7e7b88c2010-06-23 14:27:12 +0000122 {mso-style-name:"\00DCberschrift 1 Zchn";
123 mso-style-link:"\00DCberschrift 1";
124 font-family:"Cambria","serif";
125 color:#365F91;
126 font-weight:bold;}
mwenzb5dc2f92010-06-16 13:24:52 +0000127span.berschrift2Zchn
jpasch7e7b88c2010-06-23 14:27:12 +0000128 {mso-style-name:"\00DCberschrift 2 Zchn";
129 mso-style-link:"\00DCberschrift 2";
130 font-family:"Cambria","serif";
131 color:#4F81BD;
132 font-weight:bold;}
mwenzb5dc2f92010-06-16 13:24:52 +0000133span.berschrift3Zchn
jpasch7e7b88c2010-06-23 14:27:12 +0000134 {mso-style-name:"\00DCberschrift 3 Zchn";
135 mso-style-link:"\00DCberschrift 3";
136 font-family:"Cambria","serif";
137 color:#4F81BD;
138 font-weight:bold;}
mwenzb5dc2f92010-06-16 13:24:52 +0000139span.berschrift4Zchn
jpasch7e7b88c2010-06-23 14:27:12 +0000140 {mso-style-name:"\00DCberschrift 4 Zchn";
141 mso-style-link:"\00DCberschrift 4";
142 font-family:"Cambria","serif";
143 color:#4F81BD;
144 font-weight:bold;
145 font-style:italic;}
mwenzb5dc2f92010-06-16 13:24:52 +0000146span.berschrift5Zchn
jpasch7e7b88c2010-06-23 14:27:12 +0000147 {mso-style-name:"\00DCberschrift 5 Zchn";
148 mso-style-link:"\00DCberschrift 5";
149 font-family:"Cambria","serif";
150 color:#243F60;}
mwenzb5dc2f92010-06-16 13:24:52 +0000151span.berschrift6Zchn
jpasch7e7b88c2010-06-23 14:27:12 +0000152 {mso-style-name:"\00DCberschrift 6 Zchn";
153 mso-style-link:"\00DCberschrift 6";
154 font-family:"Cambria","serif";
155 color:#243F60;
156 font-style:italic;}
mwenzb5dc2f92010-06-16 13:24:52 +0000157span.HTMLVorformatiertZchn
jpasch7e7b88c2010-06-23 14:27:12 +0000158 {mso-style-name:"HTML Vorformatiert Zchn";
159 mso-style-link:"HTML Vorformatiert";
160 font-family:Consolas;}
mwenzb5dc2f92010-06-16 13:24:52 +0000161span.SprechblasentextZchn
jpasch7e7b88c2010-06-23 14:27:12 +0000162 {mso-style-name:"Sprechblasentext Zchn";
163 mso-style-link:Sprechblasentext;
164 font-family:"Tahoma","sans-serif";}
mwenzb5dc2f92010-06-16 13:24:52 +0000165p.code, li.code, div.code
jpasch7e7b88c2010-06-23 14:27:12 +0000166 {mso-style-name:code;
167 margin-top:0cm;
168 margin-right:0cm;
169 margin-bottom:0cm;
170 margin-left:15.0pt;
171 margin-bottom:.0001pt;
172 font-size:12.0pt;
173 font-family:"Times New Roman","serif";}
mwenzb5dc2f92010-06-16 13:24:52 +0000174p.note, li.note, div.note
jpasch7e7b88c2010-06-23 14:27:12 +0000175 {mso-style-name:note;
176 margin-top:19.5pt;
177 margin-right:0cm;
178 margin-bottom:19.5pt;
179 margin-left:30.0pt;
180 font-size:13.0pt;
181 font-family:"Times New Roman","serif";
182 font-style:italic;}
mwenzb5dc2f92010-06-16 13:24:52 +0000183p.comment, li.comment, div.comment
jpasch7e7b88c2010-06-23 14:27:12 +0000184 {mso-style-name:comment;
185 margin-top:5.65pt;
186 margin-right:0cm;
187 margin-bottom:5.65pt;
188 margin-left:0cm;
189 font-size:12.0pt;
190 font-family:"Times New Roman","serif";
191 font-weight:bold;}
192p.msochpdefault, li.msochpdefault, div.msochpdefault
193 {mso-style-name:msochpdefault;
194 margin-top:5.65pt;
195 margin-right:0cm;
196 margin-bottom:5.65pt;
197 margin-left:0cm;
198 font-size:10.0pt;
199 font-family:"Times New Roman","serif";}
mwenzb5dc2f92010-06-16 13:24:52 +0000200span.code1
jpasch7e7b88c2010-06-23 14:27:12 +0000201 {mso-style-name:code1;
202 font-style:italic;}
jpasch9dc2f012010-07-30 14:34:35 +0000203span.longtext1
204 {mso-style-name:long_text1;}
mwenzb5dc2f92010-06-16 13:24:52 +0000205.MsoChpDefault
jpasch7e7b88c2010-06-23 14:27:12 +0000206 {font-size:10.0pt;}
jpasch9dc2f012010-07-30 14:34:35 +0000207@page WordSection1
jpasch7e7b88c2010-06-23 14:27:12 +0000208 {size:595.45pt 841.7pt;
209 margin:72.0pt 89.85pt 72.0pt 89.85pt;}
jpasch9dc2f012010-07-30 14:34:35 +0000210div.WordSection1
211 {page:WordSection1;}
mwenzb5dc2f92010-06-16 13:24:52 +0000212 /* List Definitions */
213 ol
jpasch7e7b88c2010-06-23 14:27:12 +0000214 {margin-bottom:0cm;}
mwenzb5dc2f92010-06-16 13:24:52 +0000215ul
jpasch7e7b88c2010-06-23 14:27:12 +0000216 {margin-bottom:0cm;}
mwenzb5dc2f92010-06-16 13:24:52 +0000217-->
218</style>
mwenzb5dc2f92010-06-16 13:24:52 +0000219
jpasch7e7b88c2010-06-23 14:27:12 +0000220</head>
221
222<body bgcolor=white lang=DE link=blue vlink=purple style='margin-bottom:12.0pt'>
223
jpasch9dc2f012010-07-30 14:34:35 +0000224<div class=WordSection1>
jpasch7e7b88c2010-06-23 14:27:12 +0000225
226<h1><span lang=EN-GB>Color Schemas</span></h1>
227
228<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;&nbsp;</span></p>
229
230<p class=MsoNormal><span lang=EN-US style='color:black'>Up to now we rendered
jpasch9dc2f012010-07-30 14:34:35 +0000231EClass shapes using a single background color (see implementation of class </span><span
232lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>StyleUtil</span><span
233lang=EN-US style='color:black'> in chapter &#8220;<a href="styles.htm">Using
jpasch2ce5ddb2010-08-02 14:38:45 +0000234styles</a>&#8221;). It is also possible to use a complex background color schema
235instead. This offers the following enhancements:</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000236
237<ul style='margin-top:0cm' type=disc>
238 <li class=MsoNormal style='color:black'><span lang=EN-US>Instead of a single
239 background color multiple colors can be defined, which are either
240 separated by a hard boundary or by a soft gradient color flow. Examples
241 are a gradient blue-to-white color flow or a rainbow of colors separated
242 by hard boundaries.</span></li>
243 <li class=MsoNormal style='color:black'><span lang=EN-US>The background colors
244 can change depending on the current interaction state. Examples for
245 interaction states are shape selection (unselected, primary selected,
246 secondary selected) or actions like dropping a child on a shape (allowed
247 or forbidden).</span></li>
248</ul>
249
250<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;</span></p>
251
jpasch9dc2f012010-07-30 14:34:35 +0000252<p class=MsoNormal style='page-break-after:avoid'><span style='color:black'><img
jpascheff47ca2010-09-10 06:27:51 +0000253border=0 width=669 height=423 src=visio/ui-spec-blue-white-gloss.png></span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000254
255<p class=MsoCaption align=left style='text-align:left'><span lang=EN-US>Figure&nbsp;
256Color schema definition for &quot;blue-white-gloss- unselected&#8221; from
257usability engineers</span></p>
258
259<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
260
jpasch7e7b88c2010-06-23 14:27:12 +0000261<p class=MsoNormal><span lang=EN-US style='color:black'>Technically a complex
262background color schema is defined in a <a
jpasch79b17b02010-09-10 08:56:27 +0000263href="../../../javadoc/org/eclipse/graphiti/mm/algorithms/styles/RenderingStyle.html">RenderingStyle</a>.
jpasch7e7b88c2010-06-23 14:27:12 +0000264Take care, that this has nothing to do with <a href="styles.htm">styles</a>,
265except the confusing name! Also note that only background colors are defined in
jpasch9dc2f012010-07-30 14:34:35 +0000266a </span><span lang=EN-US style='font-family:"Courier New";color:black'>RenderingStyle</span><span
267lang=EN-US style='color:black'> and not foreground colors.</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000268
269<p class=MsoNormal><span lang=EN-US style='color:black'>Always keep in mind the
jpasch9dc2f012010-07-30 14:34:35 +0000270following rule: if a graphics algorithm has both a background color and a </span><span
271lang=EN-US style='font-family:"Courier New";color:black'>RenderingStyle</span><span
272lang=EN-US style='color:black'> defined, then the </span><span lang=EN-US
273style='font-family:"Courier New";color:black'>RenderingStyle</span><span
274lang=EN-US style='color:black'> is used and the background color is ignored.
275The specification of such a style can be seen in the figure above.The highlight
276at the top (the first 3 pixels below the top outline) and the inner shape (the
277last pixel above the bottom outline) have a fixed height which is independent
278of the shape size. They will stay unchanged even after the shape is resized.</span></p>
279
280<h2><span lang=EN-US>Using Predefined Colored Areas</span></h2>
jpasch7e7b88c2010-06-23 14:27:12 +0000281
282<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;</span></p>
283
jpasch9dc2f012010-07-30 14:34:35 +0000284<p class=MsoNormal><span lang=EN-US style='color:black'>A </span><span
285lang=EN-US style='font-family:"Courier New";color:black'>RenderingStyle</span><span
286lang=EN-US style='color:black'> has only the attribute &#8220;</span><span
287lang=EN-US style='font-family:"Courier New";color:black'>adaptedGradientColoredAreas</span><span
288lang=EN-US style='color:black'>&#8221; of type </span><span lang=EN-US
289style='font-family:"Courier New";color:black'>AdaptedGradientColoredAreas</span><span
290lang=EN-US style='color:black'>, which must be one of those defined in </span><span
291lang=EN-US style='font-family:"Courier New";color:black'>PredefinedColoredAreas</span><span
292lang=EN-US style='color:black'>. With methods like </span><span lang=EN-US
293style='font-family:"Courier New";color:black'>PredefinedColoredAreas.getBlueWhiteGlossAdaptions()</span><span
294lang=EN-US style='color:black'>you can get them</span><span lang=EN-US
295style='font-family:"Courier New";color:black'>.</span><span lang=EN-US
296style='color:black'> There are only a few predefined rendering styles, which
297are defined by the usability engineers of SAP. Tools can define further
298rendering styles, but this is explained later in this chapter.</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000299
300<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;</span></p>
301
302<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
303
304<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span><span
305style='color:black'><img border=0 width=732 height=186
306src="visio/blue-white-gloss.jpg"></span></p>
307
308<p class=MsoCaption><a name="_Ref136666137"></a><a name="_Toc176747803"></a><a
309name="_Ref136407489"></a><span lang=EN-US>Figure: Example screenshot of the
310different interaction states for the predefined style
jpasch9dc2f012010-07-30 14:34:35 +0000311&#8220;blue-white-gloss&#8221;<span style='color:black'>&nbsp;</span></span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000312
jpasch9dc2f012010-07-30 14:34:35 +0000313<p class=MsoNormal><span lang=EN-US>Within </span><span lang=EN-US
314style='font-family:"Courier New"'>AdaptedGradientColoredAreas</span><span
315lang=EN-US> these different interaction states are defined as
316GradientColoredAreas and they are selected by Graphiti at runtime depending on
317the current interaction state.</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000318
jpasch9dc2f012010-07-30 14:34:35 +0000319<p class=MsoNormal><span lang=EN-US>.</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000320
321<p class=MsoNormal><span lang=EN-US>To use a <span style='color:black'><a
jpasch79b17b02010-09-10 08:56:27 +0000322href="../../../javadoc/org/eclipse/graphiti/mm/algorithms/styles/RenderingStyle.html">RenderingStyle</a></span>
jpasch7e7b88c2010-06-23 14:27:12 +0000323we have to change the <span style='color:black'>implementation of class
324StyleUtil, which we created in the chapter &#8220;<a href="styles.htm">Using
325styles</a>&#8221;.</span></span></p>
326
327<p class=MsoNormal><span lang=EN-US style='color:black'>Instead of setting a
jpasch9dc2f012010-07-30 14:34:35 +0000328background color we will now set a predefined </span><span lang=EN-US
329style='font-family:"Courier New"'>AdaptedGradientColoredAreas</span><span
330lang=EN-US style='color:black'>.</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000331
332<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;&nbsp;</span></p>
333
334<p class=MsoNormal><span lang=EN-GB style='color:black'>You can see the
335complete implementation of the style utility class here:</span></p>
336
337<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
338
jpasch9dc2f012010-07-30 14:34:35 +0000339<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=680
jpasch7e7b88c2010-06-23 14:27:12 +0000340 style='width:18.0cm;border-collapse:collapse'>
341 <tr>
jpasch9dc2f012010-07-30 14:34:35 +0000342 <td width=680 valign=top style='width:18.0cm;border:solid windowtext 1.0pt;
jpasch7e7b88c2010-06-23 14:27:12 +0000343 padding:0cm 5.4pt 0cm 5.4pt'>
344 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
345 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>&nbsp;</span></b></p>
346 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
347 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>package</span></b><span
348 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
349 color:black'>org.eclipse.graphiti.examples.tutorial;</span></p>
350 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
351 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
352 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
353 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
354 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
355 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>public</span></b><span
356 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
357 "Courier New";color:#7F0055'>class</span></b><span lang=EN-US
358 style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:black'>StyleUtil
359 {</span></span></p>
360 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
361 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
362 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
363 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;<span
364 style='color:black'>&nbsp;&nbsp;&nbsp;</span></span><span lang=EN-US> </span><span
365 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#3F7F5F'>//
366 ... EXiSTING CODING ...</span></p>
367 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US>&nbsp;</span></p>
368 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
369 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span><span
370 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
371 "Courier New";color:#7F0055'>public</span></b><span lang=EN-US
372 style='font-size:10.0pt;font-family:"Courier New"'> <b><span
jpasch2ce5ddb2010-08-02 14:38:45 +0000373 style='color:#7F0055'>static</span></b> <span style='color:black'>Style getStyleForEClass(Diagram
374 diagram) {</span></span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000375 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
376 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
377 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
378 "Courier New";color:#7F0055'>final</span></b><span lang=EN-US
379 style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:black'>String
380 styleId =</span> <span style='color:#2A00FF'>&quot;E-CLASS&quot;</span><span
381 style='color:black'>;</span></span></p>
382 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
383 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
384 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
385 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
386 Style style = findStyle(diagram, styleId);</span></p>
387 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
388 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
389 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
390 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
391 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
392 "Courier New";color:#7F0055'>if</span></b><span lang=EN-US style='font-size:
393 10.0pt;font-family:"Courier New"'> <span style='color:black'>(style ==</span>
394 <b><span style='color:#7F0055'>null</span></b><span style='color:black'>) {</span>
395 <span style='color:#3F7F5F'>// style not found - create new style</span></span></p>
396 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
397 style='font-size:10.0pt;font-family:"Courier New";color:#3F7F5F'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
398 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>IGaService
399 gaService = Graphiti.getGaService();</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;&nbsp;&nbsp;&nbsp;&nbsp;
402 style =</span><span lang=EN-US> </span><span lang=EN-US style='font-size:
403 10.0pt;font-family:"Courier New"'>gaService<span style='color:black'>.createStyle(diagram,
404 styleId);</span></span></p>
405 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
406 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
407 style.setForeground(</span><span lang=EN-US style='font-size:10.0pt;
408 font-family:"Courier New"'>gaService<span style='color:black'>.<i>manageColor</i>(diagram,<br>
409 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jpasch9dc2f012010-07-30 14:34:35 +0000410 &nbsp;&nbsp;</span>&nbsp;<span style='color:#0000C0'>E_CLASS_FOREGROUND</span><span
jpasch7e7b88c2010-06-23 14:27:12 +0000411 style='color:black'>));</span></span></p>
412 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
413 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
414 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>gaService<span
415 style='color:black'>.setRenderingStyle(style,</span></span></p>
416 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
417 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jpasch9dc2f012010-07-30 14:34:35 +0000418 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PredefinedColoredAreas.getBlueWhiteGlossAdaptions());</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000419 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
420 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
421 style.setLineWidth(2);</span></p>
422 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
423 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
424 }</span></p>
425 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
426 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
427 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
428 "Courier New";color:#7F0055'>return</span></b><span lang=EN-US
429 style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:black'>style;</span></span></p>
430 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
431 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;
432 }</span></p>
433 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
434 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
435 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
436 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span></p>
437 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
438 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span><span
439 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
440 color:#3F7F5F'>// ... EXiSTING CODING ...</span></p>
441 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
442 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
443 <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
444 font-family:"Courier New";color:black'>}</span></p>
445 <p class=MsoNormal style='text-align:justify'><span lang=EN-GB
446 style='font-size:10.0pt;color:black'>&nbsp;</span></p>
447 </td>
448 </tr>
mwenzb5dc2f92010-06-16 13:24:52 +0000449</table>
jpasch7e7b88c2010-06-23 14:27:12 +0000450
451<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
452
453<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
454
jpasch2ce5ddb2010-08-02 14:38:45 +0000455<p class=MsoNormal><span lang=EN-US style='color:black'>Keep in mind that from now
456on the background color attribute will not work any more. So you might consider
457to delete the custom feature changing the background color, which was created
458in the chapter about <a href="styles.htm">styles</a>.</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000459
460<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
461
462<h2><span lang=EN-US>Test: EClass Has Complex Background Color Schema</span></h2>
463
464<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
465
466<p class=MsoNormal><span lang=EN-GB style='color:black'>Create a new diagram
467and inside it create a new EClass. Verify that the background color is a
468blue-white gradient. Also verify, that the background color changes, if you
mwenzb5dc2f92010-06-16 13:24:52 +0000469select the EClass shape.</span></p>
jpasch7e7b88c2010-06-23 14:27:12 +0000470
471<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
472
jpasch9dc2f012010-07-30 14:34:35 +0000473<h2><span lang=EN-GB>Using Your Own </span><span lang=EN-US>Colored </span><span
474lang=EN-GB>Areas</span></h2>
475
476<p class=MsoNormal><span lang=EN-GB>We want to define our own (background color
jpasch2ce5ddb2010-08-02 14:38:45 +0000477schema) style with id &#8220;lime-white&#8221;. To do this we have to extend
478the interface </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
jpasch9dc2f012010-07-30 14:34:35 +0000479color:black'>IPredefinedRenderingStyle </span><span lang=EN-US>to define the id
480&#8220;lime-white</span><span lang=EN-GB>&#8221;. In addition we extend class </span><span
481lang=EN-US style='font-family:"Courier New"'>PredefinedColoredAreas</span><span
482lang=EN-US> to define colored areas for &#8220;lime-white&#8221;. The result
483should look like the image below.</span></p>
484
485<p class=MsoNormal><span lang=EN-GB>&nbsp;</span></p>
486
487<p class=MsoNormal><span lang=EN-GB>&nbsp;</span></p>
488
489<p class=MsoNormal style='page-break-after:avoid'><img border=0 width=352
jpascheff47ca2010-09-10 06:27:51 +0000490height=153 src=visio/user-defined-gradient.png></p>
jpasch9dc2f012010-07-30 14:34:35 +0000491
492<p class=MsoCaption align=left style='text-align:left'><span lang=EN-US>Figure
493The newly defined &quot;lime-white&quot; gradient</span></p>
494
495<p class=MsoNormal><span lang=EN-GB>&nbsp;</span></p>
496
jpasch2ce5ddb2010-08-02 14:38:45 +0000497<p class=MsoNormal><span lang=EN-GB>You can see the complete implementation of
498the interface tutorial rendering style here:</span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000499
500<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
501
502<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=680
503 style='width:18.0cm;border-collapse:collapse'>
504 <tr>
505 <td width=680 valign=top style='width:18.0cm;border:solid windowtext 1.0pt;
506 padding:0cm 5.4pt 0cm 5.4pt'>
507 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
508 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>&nbsp;</span></b></p>
509 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
510 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>package</span></b><span
511 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
512 color:black'>org.eclipse.graphiti.examples.tutorial;</span></p>
513 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
514 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
515 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
516 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>import</span></b><span
517 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
518 org.eclipse.graphiti.util.IPredefinedRenderingStyle;</span></p>
519 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
520 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
521 <p class=MsoNormal align=center style='text-align:center;text-autospace:none'><b><span
522 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>public</span></b><span
523 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><b><span
524 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>interface</span></b><span
525 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><span
526 lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>ITutorialRenderingStyle<span
527 style='color:black'> </span><b><span style='color:#7F0055'>extends</span></b><span
528 style='color:black'> IPredefinedRenderingStyle {</span></span></p>
529 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000530 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
531 </span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000532 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000533 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
534 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
535 color:#7F0055'>public</span></b><span lang=EN-US style='font-size:10.0pt;
536 font-family:"Courier New";color:black'> </span><b><span lang=EN-US
537 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>static</span></b><span
jpasch9dc2f012010-07-30 14:34:35 +0000538 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><b><span
539 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>final</span></b><span
540 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
541 String </span><i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
542 color:#0000C0'>LIME_WHITE_ID</span></i><span lang=EN-US style='font-size:
543 10.0pt;font-family:"Courier New";color:black'> = </span><span lang=EN-US
544 style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;lime-white&quot;</span><span
545 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>;</span></p>
546 <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
547 font-family:"Courier New";color:black'>}</span></p>
548 <p class=MsoNormal style='text-align:justify'><span lang=EN-GB
549 style='font-size:10.0pt;color:black'>&nbsp;</span></p>
550 </td>
551 </tr>
552</table>
553
554<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
555
556<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
557
jpasch2ce5ddb2010-08-02 14:38:45 +0000558<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
559 style='border-collapse:collapse'>
jpasch9dc2f012010-07-30 14:34:35 +0000560 <tr>
561 <td width=188 valign=top style='width:140.9pt;border:solid black 1.0pt;
562 padding:0cm 5.4pt 0cm 5.4pt'>
563 <p class=MsoNormal><b><span lang=EN-US>Solid Color/Gradient</span></b></p>
564 </td>
565 <td width=188 valign=top style='width:140.9pt;border:solid black 1.0pt;
566 border-left:none;padding:0cm 5.4pt 0cm 5.4pt'>
567 <p class=MsoNormal><b><span lang=EN-US>Pixel Row/Rows Location</span></b></p>
568 </td>
569 <td width=188 valign=top style='width:140.95pt;border:solid black 1.0pt;
570 border-left:none;padding:0cm 5.4pt 0cm 5.4pt'>
571 <p class=MsoNormal><b><span lang=EN-US>Hex 6 RGB Color</span></b></p>
572 </td>
573 </tr>
574 <tr>
575 <td width=188 valign=top style='width:140.9pt;border:solid black 1.0pt;
576 border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
577 <p class=MsoNormal><span lang=EN-US>Solid color</span></p>
578 </td>
579 <td width=227 valign=top style='width:6.0cm;border-top:none;border-left:none;
580 border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'>
581 <p class=MsoNormal><span lang=EN-US>Pixel 1 (topmost pixel row)</span></p>
582 </td>
583 <td width=188 valign=top style='width:140.95pt;border-top:none;border-left:
584 none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
585 padding:0cm 5.4pt 0cm 5.4pt'>
586 <p class=MsoNormal><span lang=EN-US>#CCFFCC</span></p>
587 </td>
588 </tr>
589 <tr>
590 <td width=188 valign=top style='width:140.9pt;border:solid black 1.0pt;
591 border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
592 <p class=MsoNormal><span lang=EN-US>Solid color</span></p>
593 </td>
594 <td width=227 valign=top style='width:6.0cm;border-top:none;border-left:none;
595 border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'>
596 <p class=MsoNormal><span lang=EN-US>Pixel 2 (second pixel row)</span></p>
597 </td>
598 <td width=188 valign=top style='width:140.95pt;border-top:none;border-left:
599 none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
600 padding:0cm 5.4pt 0cm 5.4pt'>
601 <p class=MsoNormal><span lang=EN-US>#CCFF99</span></p>
602 </td>
603 </tr>
604 <tr>
605 <td width=188 valign=top style='width:140.9pt;border:solid black 1.0pt;
606 border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
607 <p class=MsoNormal><span lang=EN-US>Solid color</span></p>
608 </td>
609 <td width=227 valign=top style='width:6.0cm;border-top:none;border-left:none;
610 border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'>
611 <p class=MsoNormal><span lang=EN-US>Pixel 3 (third pixel row)</span></p>
612 </td>
613 <td width=188 valign=top style='width:140.95pt;border-top:none;border-left:
614 none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
615 padding:0cm 5.4pt 0cm 5.4pt'>
616 <p class=MsoNormal><span lang=EN-US>#CCFF66</span></p>
617 </td>
618 </tr>
619 <tr>
620 <td width=188 valign=top style='width:140.9pt;border:solid black 1.0pt;
621 border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
622 <p class=MsoNormal><span lang=EN-US>Gradient start</span></p>
623 </td>
624 <td width=227 valign=top style='width:6.0cm;border-top:none;border-left:none;
625 border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'>
626 <p class=MsoNormal><span lang=EN-US>Pixel 4</span></p>
627 </td>
628 <td width=188 valign=top style='width:140.95pt;border-top:none;border-left:
629 none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
630 padding:0cm 5.4pt 0cm 5.4pt'>
631 <p class=MsoNormal><span lang=EN-US>#66FF00</span></p>
632 </td>
633 </tr>
634 <tr>
635 <td width=188 valign=top style='width:140.9pt;border:solid black 1.0pt;
636 border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
637 <p class=MsoNormal><span lang=EN-US>Gradient stop</span></p>
638 </td>
639 <td width=227 valign=top style='width:6.0cm;border-top:none;border-left:none;
640 border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'>
641 <p class=MsoNormal><span lang=EN-US>Pixel one before last</span></p>
642 </td>
643 <td width=188 valign=top style='width:140.95pt;border-top:none;border-left:
644 none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
645 padding:0cm 5.4pt 0cm 5.4pt'>
646 <p class=MsoNormal><span lang=EN-US>#CCFFCC</span></p>
647 </td>
648 </tr>
649 <tr>
650 <td width=188 valign=top style='width:140.9pt;border:solid black 1.0pt;
651 border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
652 <p class=MsoNormal><span lang=EN-US>Solid color</span></p>
653 </td>
654 <td width=227 valign=top style='width:6.0cm;border-top:none;border-left:none;
655 border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;padding:0cm 5.4pt 0cm 5.4pt'>
656 <p class=MsoNormal><span lang=EN-US>Last pixel (bottom pixel row)</span></p>
657 </td>
658 <td width=188 valign=top style='width:140.95pt;border-top:none;border-left:
659 none;border-bottom:solid black 1.0pt;border-right:solid black 1.0pt;
660 padding:0cm 5.4pt 0cm 5.4pt'>
661 <p class=MsoNormal style='page-break-after:avoid'><span lang=EN-US>#CCFFCC</span></p>
662 </td>
663 </tr>
664</table>
665
666<p class=MsoCaption><span lang=EN-US>Figure Specification for &quot;lime-white
667unselected&quot;</span></p>
668
669<p class=MsoNormal><span lang=EN-US>For our new color scheme
670&#8220;lime-white&#8221;, we are guided by the preceding example of
671&#8220;blue-white-gloss.<span style='color:black'> The color scheme &nbsp;is
jpasch2ce5ddb2010-08-02 14:38:45 +0000672illustrated in the table above for the interaction state &#8220;not
673selected&#8221;. </span>&nbsp;<span class=longtext1><span style='color:black'>There
674are also three rows of pixels at the beginning and one at the end to represent
675a sublime effect on the shape. In between, the resizable gradient has been
676defined.</span></span><span style='color:black'> The interaction states
677&#8220;primary selected&#8221; and &#8220;secondary selected&#8221; are treated
678very similar and not listed here.</span></span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000679
680<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;</span></p>
681
682<p class=MsoNormal><span lang=EN-US style='color:black'>The information of the
683rows in the table above can be represented directly with the class </span><span
684lang=EN-US style='font-family:"Courier New";color:black'>GradientColorArea</span><span
685lang=EN-US style='color:black'>. Sequences of such colored areas can be
686composed with the method </span><i><span lang=EN-US style='font-size:10.0pt;
687font-family:"Courier New";color:black'>addGradientColoredArea</span></i><span
688lang=EN-US style='color:black'> (..). These sequences are used to render the
689color scheme. </span></p>
690
691<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;</span></p>
692
693<p class=MsoNormal><span lang=EN-US style='color:black'>We define
694&#8220;lime-white&#8221; in our new class </span><span lang=EN-US
695style='font-family:"Courier New";color:black'>TutorialColoredAreas</span><span
jpasch2ce5ddb2010-08-02 14:38:45 +0000696lang=EN-US style='color:black'> in a similar way, as
697&#8220;blue-white-gloss&#8221; is defined in class </span><span lang=EN-US
698style='font-family:"Courier New";color:black'>PredefinedColorAreas</span><span
699lang=EN-US style='color:black'> . Do not forget to set the gradient type to &#8220;vertical&#8221;.
700</span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000701
702<p class=MsoNormal><span class=longtext1><span lang=EN-US style='font-size:
70310.0pt;font-family:"Arial","sans-serif";color:black'>&nbsp;</span></span></p>
704
705<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
706
707<p class=MsoNormal><span lang=EN-US>You can see the complete implementation of
708the tutorial colored area class here:</span></p>
709
710<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
711
712<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=680
713 style='width:18.0cm;border-collapse:collapse'>
714 <tr>
715 <td width=893 valign=top style='width:670.05pt;border:solid windowtext 1.0pt;
716 padding:0cm 5.4pt 0cm 5.4pt'>
717 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
718 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>&nbsp;</span></b></p>
719 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
720 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>package</span></b><span
721 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
722 color:black'>org.eclipse.graphiti.examples.tutorial;</span></p>
723 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
724 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
725 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
726 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>public</span></b><span
727 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><b><span
728 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>class</span></b><span
jpasch2ce5ddb2010-08-02 14:38:45 +0000729 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
730 TutorialColoredAreas </span><b><span lang=EN-US style='font-size:10.0pt;
731 font-family:"Courier New";color:#7F0055'>extends</span></b><span lang=EN-US
732 style='font-size:10.0pt;font-family:"Courier New";color:black'>
733 PredefinedColoredAreas<br>
jpasch9dc2f012010-07-30 14:34:35 +0000734 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b><span
735 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>implements</span></b><span
jpasch2ce5ddb2010-08-02 14:38:45 +0000736 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> ITutorialRenderingStyle
737 {</span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000738 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
739 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
740 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000741 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
742 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
743 color:#7F0055'>private</span></b><span lang=EN-US style='font-size:10.0pt;
744 font-family:"Courier New";color:black'> </span><b><span lang=EN-US
745 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>static</span></b><span
jpasch9dc2f012010-07-30 14:34:35 +0000746 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
747 GradientColoredAreas getLimeWhiteDefaultAreas() {</span></p>
748 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000749 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
750 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
751 color:#7F0055'>final</span></b><span lang=EN-US style='font-size:10.0pt;
752 font-family:"Courier New";color:black'> GradientColoredAreas
753 gradientColoredAreas =<br>
jpasch9dc2f012010-07-30 14:34:35 +0000754 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jpasch6325d122010-09-20 12:02:28 +0000755 StylesFactory.</span><i><span lang=EN-US style='font-size:10.0pt;
jpasch9dc2f012010-07-30 14:34:35 +0000756 font-family:"Courier New";color:#0000C0'>eINSTANCE</span></i><span
757 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>.createGradientColoredAreas();</span></p>
758 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000759 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
760 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
761 color:#7F0055'>final</span></b><span lang=EN-US style='font-size:10.0pt;
762 font-family:"Courier New";color:black'> EList&lt;GradientColoredArea&gt; gcas
763 =<br>
jpasch9dc2f012010-07-30 14:34:35 +0000764 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
765 gradientColoredAreas.getGradientColor();</span></p>
766 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
767 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
768 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000769 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
770 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
771 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFFCC&quot;</span><span
772 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
773 0, <br>
jpasch9dc2f012010-07-30 14:34:35 +0000774 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
775 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
776 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
777 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
778 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFFCC&quot;</span><span
jpasch2ce5ddb2010-08-02 14:38:45 +0000779 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
780 1,</span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000781 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000782 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;&nbsp;&nbsp;
783 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
784 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000785 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
786 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000787 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
788 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
789 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFF99&quot;</span><span
790 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
791 1,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000792 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
793 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
794 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
795 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
796 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFF99&quot;</span><span
jpasch2ce5ddb2010-08-02 14:38:45 +0000797 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
798 2,</span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000799 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000800 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
801 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LocationType.</span><i><span lang=EN-US
802 style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000803 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
804 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000805 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
806 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
807 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFF66&quot;</span><span
808 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
809 2,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000810 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
811 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
812 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
813 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
814 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFF66&quot;</span><span
815 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
816 3,</span></p>
817 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000818 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;&nbsp;&nbsp;
819 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
820 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000821 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
822 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000823 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
824 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
825 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66FF00&quot;</span><span
826 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
827 3,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000828 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
829 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
830 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
831 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
832 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFFCC&quot;</span><span
833 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
834 2,</span></p>
835 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000836 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;&nbsp;&nbsp;
837 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
838 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000839 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
840 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000841 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
842 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
843 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFFCC&quot;</span><span
844 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
845 2,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000846 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
847 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
848 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
849 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
850 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;CCFFCC&quot;</span><span
851 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
852 0,</span></p>
853 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000854 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;&nbsp;&nbsp;
855 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
856 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000857 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
858 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000859 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
860 gradientColoredAreas.setStyleAdaption<br>
jpasch9dc2f012010-07-30 14:34:35 +0000861 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
862 &nbsp;(IPredefinedRenderingStyle.</span><i><span lang=EN-US style='font-size:
863 10.0pt;font-family:"Courier New";color:#0000C0'>STYLE_ADAPTATION_DEFAULT</span></i><span
864 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
865 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000866 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
867 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
868 color:#7F0055'>return</span></b><span lang=EN-US style='font-size:10.0pt;
869 font-family:"Courier New";color:black'> gradientColoredAreas;</span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000870 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000871 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
872 }</span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000873 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
874 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
875 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000876 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
877 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
878 color:#7F0055'>private</span></b><span lang=EN-US style='font-size:10.0pt;
879 font-family:"Courier New";color:black'> </span><b><span lang=EN-US
880 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>static</span></b><span
881 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> GradientColoredAreas
882 getLimeWhitePrimarySelectedAreas() {</span></p>
jpasch9dc2f012010-07-30 14:34:35 +0000883 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000884 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
885 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
886 color:#7F0055'>final</span></b><span lang=EN-US style='font-size:10.0pt;
887 font-family:"Courier New";color:black'> GradientColoredAreas
888 gradientColoredAreas =<br>
jpasch9dc2f012010-07-30 14:34:35 +0000889 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jpasch6325d122010-09-20 12:02:28 +0000890 &nbsp;StylesFactory.</span><i><span lang=EN-US style='font-size:10.0pt;
jpasch9dc2f012010-07-30 14:34:35 +0000891 font-family:"Courier New";color:#0000C0'>eINSTANCE</span></i><span
892 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>.createGradientColoredAreas();</span></p>
893 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000894 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
895 &nbsp;&nbsp;&nbsp;&nbsp; gradientColoredAreas.setStyleAdaption<br>
jpasch9dc2f012010-07-30 14:34:35 +0000896 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
897 (IPredefinedRenderingStyle.</span><i><span lang=EN-US style='font-size:10.0pt;
898 font-family:"Courier New";color:#0000C0'>STYLE_ADAPTATION_PRIMARY_SELECTED</span></i><span
899 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
900 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000901 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
902 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
903 color:#7F0055'>final</span></b><span lang=EN-US style='font-size:10.0pt;
904 font-family:"Courier New";color:black'> EList&lt;GradientColoredArea&gt; gcas
905 =<br>
jpasch9dc2f012010-07-30 14:34:35 +0000906 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
907 gradientColoredAreas.getGradientColor();</span></p>
908 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
909 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
910 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000911 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
912 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
913 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66CCCC&quot;</span><span
914 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
915 0,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000916 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
917 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
918 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
919 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
920 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66CCCC&quot;</span><span
921 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
922 1,</span></p>
923 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000924 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;&nbsp;&nbsp;
925 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
926 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000927 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
928 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000929 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
930 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
931 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66CC99&quot;</span><span
932 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
933 1,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000934 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
935 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
936 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
937 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
938 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66CC99&quot;</span><span
939 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
940 2,</span></p>
941 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000942 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
943 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LocationType.</span><i><span lang=EN-US
944 style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000945 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
946 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000947 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
948 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
949 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66CC66&quot;</span><span
950 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
951 2,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000952 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
953 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
954 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
955 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
956 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66CC66&quot;</span><span
957 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
958 3,</span></p>
959 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000960 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;&nbsp;&nbsp;
961 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
962 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000963 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
964 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000965 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
966 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
967 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;00CC00&quot;</span><span
968 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
969 3,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000970 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
971 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
972 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
973 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
974 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;00CC66&quot;</span><span
975 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
976 2,<br>
jpasch2ce5ddb2010-08-02 14:38:45 +0000977 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
978 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
979 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000980 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
981 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000982 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
983 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
984 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;00CC99&quot;</span><span
985 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
986 2,<br>
jpasch9dc2f012010-07-30 14:34:35 +0000987 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
988 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
989 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
990 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
991 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;00CC99&quot;</span><span
992 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
993 0,</span></p>
994 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +0000995 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;&nbsp;&nbsp;
996 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
997 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +0000998 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
999 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001000 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1001 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1002 color:#7F0055'>return</span></b><span lang=EN-US style='font-size:10.0pt;
1003 font-family:"Courier New";color:black'> gradientColoredAreas;</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001004 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001005 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1006 }</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001007 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1008 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
1009 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001010 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1011 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1012 color:#7F0055'>private</span></b><span lang=EN-US style='font-size:10.0pt;
1013 font-family:"Courier New";color:black'> </span><b><span lang=EN-US
1014 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>static</span></b><span
jpasch9dc2f012010-07-30 14:34:35 +00001015 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
1016 GradientColoredAreas getLimeWhiteSecondarySelectedAreas() {</span></p>
1017 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001018 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1019 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1020 color:#7F0055'>final</span></b><span lang=EN-US style='font-size:10.0pt;
1021 font-family:"Courier New";color:black'> GradientColoredAreas
1022 gradientColoredAreas =<br>
jpasch9dc2f012010-07-30 14:34:35 +00001023 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jpasch6325d122010-09-20 12:02:28 +00001024 &nbsp;StylesFactory.</span><i><span lang=EN-US style='font-size:10.0pt;
jpasch9dc2f012010-07-30 14:34:35 +00001025 font-family:"Courier New";color:#0000C0'>eINSTANCE</span></i><span
1026 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>.createGradientColoredAreas();</span></p>
1027 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001028 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1029 gradientColoredAreas.setStyleAdaption<br>
jpasch9dc2f012010-07-30 14:34:35 +00001030 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1031 (IPredefinedRenderingStyle.</span><i><span lang=EN-US style='font-size:10.0pt;
1032 font-family:"Courier New";color:#0000C0'>STYLE_ADAPTATION_SECONDARY_SELECTED</span></i><span
1033 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
1034 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001035 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1036 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1037 color:#7F0055'>final</span></b><span lang=EN-US style='font-size:10.0pt;
1038 font-family:"Courier New";color:black'> EList&lt;GradientColoredArea&gt; gcas
1039 =<br>
jpasch9dc2f012010-07-30 14:34:35 +00001040 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1041 gradientColoredAreas.getGradientColor();</span></p>
1042 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1043 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
1044 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001045 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1046 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
1047 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;33CCCC&quot;</span><span
1048 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1049 0,<br>
jpasch9dc2f012010-07-30 14:34:35 +00001050 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1051 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1052 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
1053 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
1054 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;33CCCC&quot;</span><span
1055 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1056 1,<br>
jpasch2ce5ddb2010-08-02 14:38:45 +00001057 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1058 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1059 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +00001060 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
1061 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001062 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1063 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
1064 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;33CC99&quot;</span><span
1065 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1066 1,<br>
jpasch9dc2f012010-07-30 14:34:35 +00001067 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1068 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1069 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
1070 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
1071 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;33CC99&quot;</span><span
1072 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1073 2,<br>
jpasch2ce5ddb2010-08-02 14:38:45 +00001074 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1075 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LocationType.</span><i><span lang=EN-US
1076 style='font-size:10.0pt;font-family:"Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +00001077 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
1078 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001079 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1080 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
1081 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;33CC66&quot;</span><span
1082 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1083 2,<br>
jpasch9dc2f012010-07-30 14:34:35 +00001084 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1085 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1086 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
1087 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
1088 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;33CC66&quot;</span><span
1089 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1090 3,</span></p>
1091 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001092 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;&nbsp;&nbsp;
1093 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1094 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +00001095 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
1096 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001097 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1098 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
1099 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;33CC00&quot;</span><span
1100 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1101 3,<br>
jpasch9dc2f012010-07-30 14:34:35 +00001102 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1103 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1104 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_START</span></i><span
1105 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
1106 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;33CC99&quot;</span><span
1107 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1108 2,</span></p>
1109 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001110 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;&nbsp;&nbsp;
1111 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1112 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +00001113 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
1114 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001115 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1116 <i>addGradientColoredArea</i>(gcas, </span><span lang=EN-US style='font-size:
1117 10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66CC99&quot;</span><span
1118 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1119 2,<br>
jpasch9dc2f012010-07-30 14:34:35 +00001120 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1121 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1122 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
1123 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>, </span><span
1124 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>&quot;66CC99&quot;</span><span
1125 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,
1126 0,</span></p>
1127 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001128 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;&nbsp;&nbsp;
1129 LocationType.</span><i><span lang=EN-US style='font-size:10.0pt;font-family:
1130 "Courier New";color:#0000C0'>LOCATION_TYPE_ABSOLUTE_END</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +00001131 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
1132 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001133 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1134 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1135 color:#7F0055'>return</span></b><span lang=EN-US style='font-size:10.0pt;
1136 font-family:"Courier New";color:black'> gradientColoredAreas;</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001137 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001138 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1139 }</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001140 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1141 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
1142 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001143 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1144 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1145 color:#7F0055'>public</span></b><span lang=EN-US style='font-size:10.0pt;
1146 font-family:"Courier New";color:black'> </span><b><span lang=EN-US
1147 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>static</span></b><span
1148 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
1149 AdaptedGradientColoredAreas getLimeWhiteAdaptions() {</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001150 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001151 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1152 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1153 color:#7F0055'>final</span></b><span lang=EN-US style='font-size:10.0pt;
1154 font-family:"Courier New";color:black'> AdaptedGradientColoredAreas agca =<br>
jpasch9dc2f012010-07-30 14:34:35 +00001155 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jpasch6325d122010-09-20 12:02:28 +00001156 &nbsp;StylesFactory.</span><i><span lang=EN-US style='font-size:10.0pt;
jpasch9dc2f012010-07-30 14:34:35 +00001157 font-family:"Courier New";color:#0000C0'>eINSTANCE</span></i><span
1158 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>.createAdaptedGradientColoredAreas();</span></p>
1159 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001160 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1161 agca.setDefinedStyleId(</span><i><span lang=EN-US style='font-size:10.0pt;
1162 font-family:"Courier New";color:#0000C0'>LIME_WHITE_ID</span></i><span
jpasch9dc2f012010-07-30 14:34:35 +00001163 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>);</span></p>
1164 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001165 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1166 </span><span style='font-size:10.0pt;font-family:"Courier New";color:black'>agca.setGradientType(IGradientType.<i>VERTICAL</i>);</span></p>
1167 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1168 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1169 agca.getAdaptedGradientColoredAreas()<br>
jpasch9dc2f012010-07-30 14:34:35 +00001170 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1171 .add(IPredefinedRenderingStyle.</span><i><span lang=EN-US style='font-size:
1172 10.0pt;font-family:"Courier New";color:#0000C0'>STYLE_ADAPTATION_DEFAULT</span></i><span
1173 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,<br>
1174 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1175 <i>getLimeWhiteDefaultAreas</i>());</span></p>
1176 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001177 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1178 agca.getAdaptedGradientColoredAreas()<br>
jpasch9dc2f012010-07-30 14:34:35 +00001179 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1180 .add(IPredefinedRenderingStyle.</span><i><span lang=EN-US style='font-size:
1181 10.0pt;font-family:"Courier New";color:#0000C0'>STYLE_ADAPTATION_PRIMARY_SELECTED</span></i><span
1182 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,<br>
jpasch2ce5ddb2010-08-02 14:38:45 +00001183 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1184 <i>getLimeWhitePrimarySelectedAreas</i>());</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001185 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001186 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1187 agca.getAdaptedGradientColoredAreas()<br>
jpasch9dc2f012010-07-30 14:34:35 +00001188 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1189 .add(IPredefinedRenderingStyle.</span><i><span lang=EN-US style='font-size:
1190 10.0pt;font-family:"Courier New";color:#0000C0'>STYLE_ADAPTATION_SECONDARY_SELECTED</span></i><span
1191 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>,<br>
1192 </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1193 <i><span style='color:black'>getLimeWhiteSecondarySelectedAreas</span></i><span
1194 style='color:black'>());</span></span></p>
1195 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001196 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1197 </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1198 color:#7F0055'>return</span></b><span lang=EN-US style='font-size:10.0pt;
1199 font-family:"Courier New";color:black'> agca;</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001200 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
jpasch2ce5ddb2010-08-02 14:38:45 +00001201 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1202 }</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001203 <p class=MsoNormal style='text-align:justify'><span lang=EN-US
1204 style='font-size:10.0pt;font-family:"Courier New";color:black'>}</span><span
1205 lang=EN-GB style='font-size:10.0pt;color:black'>&nbsp;</span></p>
1206 </td>
1207 </tr>
1208</table>
1209
1210<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
1211
1212<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
1213
1214<p class=MsoNormal><span lang=EN-US>To use our new rendering style we have to
1215change the <span style='color:black'>implementation of class </span></span><span
1216lang=EN-US style='font-family:"Courier New";color:black'>StyleUtil</span><span
1217lang=EN-US style='color:black'>:</span></p>
1218
1219<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
1220
1221<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
1222
1223<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=680
1224 style='width:18.0cm;border-collapse:collapse'>
1225 <tr>
1226 <td width=680 valign=top style='width:18.0cm;border:solid windowtext 1.0pt;
1227 padding:0cm 5.4pt 0cm 5.4pt'>
1228 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
1229 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>&nbsp;</span></b></p>
1230 <p class=MsoNormal style='text-autospace:none'><b><span lang=EN-US
1231 style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>public</span></b><span
1232 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
1233 "Courier New";color:#7F0055'>class</span></b><span lang=EN-US
1234 style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:black'>StyleUtil
1235 {</span></span></p>
1236 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1237 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
1238 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1239 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;<span
1240 style='color:black'>&nbsp;&nbsp;&nbsp;</span></span><span lang=EN-US> </span><span
1241 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#3F7F5F'>//
1242 ... EXiSTING CODING ...</span></p>
1243 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US>&nbsp;</span></p>
1244 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1245 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span><span
1246 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
1247 "Courier New";color:#7F0055'>public</span></b><span lang=EN-US
1248 style='font-size:10.0pt;font-family:"Courier New"'> <b><span
1249 style='color:#7F0055'>static</span></b> <span style='color:black'>Style
1250 getStyleForEClass(Diagram diagram) {</span></span></p>
1251 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US>&nbsp;</span></p>
1252 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1253 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span><span
1254 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1255 color:#3F7F5F'>// ... EXiSTING CODING ...</span></p>
1256 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US>&nbsp;</span></p>
1257 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1258 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
1259 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>gaService<span
1260 style='color:black'>.setRenderingStyle(style,</span></span></p>
1261 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1262 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jpasch6325d122010-09-20 12:02:28 +00001263 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TutorialColoredAreas.getLimeWhiteAdaptions());</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001264 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1265 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;</span></p>
1266 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1267 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;<span
1268 style='color:black'>&nbsp;&nbsp;&nbsp;</span></span><span lang=EN-US> </span><span
1269 lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#3F7F5F'>//
1270 ... EXiSTING CODING ...</span></p>
1271 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US>&nbsp;</span></p>
1272 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1273 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
1274 lang=EN-US> </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
1275 "Courier New";color:#7F0055'>return</span></b><span lang=EN-US
1276 style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:black'>style;</span></span></p>
1277 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1278 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;
1279 }</span></p>
1280 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1281 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
1282 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1283 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span></p>
1284 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1285 style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;</span><span
1286 lang=EN-US> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
1287 color:#3F7F5F'>// ... EXiSTING CODING ...</span></p>
1288 <p class=MsoNormal style='text-autospace:none'><span lang=EN-US
1289 style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></p>
1290 <p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
1291 font-family:"Courier New";color:black'>}</span></p>
1292 <p class=MsoNormal style='text-align:justify'><span lang=EN-GB
1293 style='font-size:10.0pt;color:black'>&nbsp;</span></p>
1294 </td>
1295 </tr>
1296</table>
1297
1298<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
1299
1300<p class=MsoNormal><span lang=EN-US>&nbsp;</span></p>
1301
1302<h2><span lang=EN-US>Test: EClass Has New Complex Background Color Schema</span></h2>
1303
1304<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
1305
jpasch2ce5ddb2010-08-02 14:38:45 +00001306<p class=MsoNormal><span lang=EN-GB style='color:black'>Create a new diagram and
1307inside it create a new EClass. Verify that the background color is a lime-white
1308gradient. Also verify, that the background color changes, if you select the
1309EClass shape.</span></p>
jpasch9dc2f012010-07-30 14:34:35 +00001310
1311<p class=MsoNormal><span lang=EN-GB>&nbsp;</span></p>
1312
jpasch7e7b88c2010-06-23 14:27:12 +00001313<p class=MsoNormal><span lang=EN-GB style='color:black'>&nbsp;</span></p>
1314
1315<div class=MsoNormal align=center style='text-align:center'>
1316
1317<hr size=3 width="100%" align=center>
1318
mwenzb5dc2f92010-06-16 13:24:52 +00001319</div>
jpasch7e7b88c2010-06-23 14:27:12 +00001320
jpasch9dc2f012010-07-30 14:34:35 +00001321<p class=MsoNormal><a href="http://www.eclipse.org/legal/epl-v10.html"><span
1322lang=EN-US>Copyright (c) SAP AG 2005, 2010.</span></a> </p>
jpasch7e7b88c2010-06-23 14:27:12 +00001323
1324</div>
1325
mwenzb5dc2f92010-06-16 13:24:52 +00001326</body>
jpasch7e7b88c2010-06-23 14:27:12 +00001327
mwenzb5dc2f92010-06-16 13:24:52 +00001328</html>