Debian Codegraph @

tests/share/ER.ps

raw
1 %!PS-Adobe-2.0
2 %%Creator: dot version 2.9.20060407.0440 (Fri Apr 7 07:41:14 GMT 2006)
3 %%For: (ellson) John Ellson,[north]
4 %%Title: ER
5 %%Pages: (atend)
6 %%BoundingBox: (atend)
7 %%EndComments
8 save
9 %%BeginProlog
10 /DotDict 200 dict def
11 DotDict begin
12
13 /setupLatin1 {
14 mark
15 /EncodingVector 256 array def
16 EncodingVector 0
17
18 ISOLatin1Encoding 0 255 getinterval putinterval
19 EncodingVector 45 /hyphen put
20
21 % Set up ISO Latin 1 character encoding
22 /starnetISO {
23 dup dup findfont dup length dict begin
24 { 1 index /FID ne { def }{ pop pop } ifelse
25 } forall
26 /Encoding EncodingVector def
27 currentdict end definefont
28 } def
29 /Times-Roman starnetISO def
30 /Times-Italic starnetISO def
31 /Times-Bold starnetISO def
32 /Times-BoldItalic starnetISO def
33 /Helvetica starnetISO def
34 /Helvetica-Oblique starnetISO def
35 /Helvetica-Bold starnetISO def
36 /Helvetica-BoldOblique starnetISO def
37 /Courier starnetISO def
38 /Courier-Oblique starnetISO def
39 /Courier-Bold starnetISO def
40 /Courier-BoldOblique starnetISO def
41 cleartomark
42 } bind def
43
44 %%BeginResource: procset graphviz 0 0
45 /coord-font-family /Times-Roman def
46 /default-font-family /Times-Roman def
47 /coordfont coord-font-family findfont 8 scalefont def
48
49 /InvScaleFactor 1.0 def
50 /set_scale {
51 dup 1 exch div /InvScaleFactor exch def
52 dup scale
53 } bind def
54
55 % styles
56 /solid { [] 0 setdash } bind def
57 /dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
58 /dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
59 /invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
60 /bold { 2 setlinewidth } bind def
61 /filled { } bind def
62 /unfilled { } bind def
63 /rounded { } bind def
64 /diagonals { } bind def
65
66 % hooks for setting color
67 /nodecolor { sethsbcolor } bind def
68 /edgecolor { sethsbcolor } bind def
69 /graphcolor { sethsbcolor } bind def
70 /nopcolor {pop pop pop} bind def
71
72 /beginpage { % i j npages
73 /npages exch def
74 /j exch def
75 /i exch def
76 /str 10 string def
77 npages 1 gt {
78 gsave
79 coordfont setfont
80 0 0 moveto
81 (\() show i str cvs show (,) show j str cvs show (\)) show
82 grestore
83 } if
84 } bind def
85
86 /set_font {
87 findfont exch
88 scalefont setfont
89 } def
90
91 % draw aligned label in bounding box aligned to current point
92 /alignedtext { % width adj text
93 /text exch def
94 /adj exch def
95 /width exch def
96 gsave
97 width 0 gt {
98 text stringwidth pop adj mul 0 rmoveto
99 } if
100 [] 0 setdash
101 text show
102 grestore
103 } def
104
105 /boxprim { % xcorner ycorner xsize ysize
106 4 2 roll
107 moveto
108 2 copy
109 exch 0 rlineto
110 0 exch rlineto
111 pop neg 0 rlineto
112 closepath
113 } bind def
114
115 /ellipse_path {
116 /ry exch def
117 /rx exch def
118 /y exch def
119 /x exch def
120 matrix currentmatrix
121 newpath
122 x y translate
123 rx ry scale
124 0 0 1 0 360 arc
125 setmatrix
126 } bind def
127
128 /endpage { showpage } bind def
129 /showpage { } def
130
131 /layercolorseq
132 [ % layer color sequence - darkest to lightest
133 [0 0 0]
134 [.2 .8 .8]
135 [.4 .8 .8]
136 [.6 .8 .8]
137 [.8 .8 .8]
138 ]
139 def
140
141 /layerlen layercolorseq length def
142
143 /setlayer {/maxlayer exch def /curlayer exch def
144 layercolorseq curlayer 1 sub layerlen mod get
145 aload pop sethsbcolor
146 /nodecolor {nopcolor} def
147 /edgecolor {nopcolor} def
148 /graphcolor {nopcolor} def
149 } bind def
150
151 /onlayer { curlayer ne {invis} if } def
152
153 /onlayers {
154 /myupper exch def
155 /mylower exch def
156 curlayer mylower lt
157 curlayer myupper gt
158 or
159 {invis} if
160 } def
161
162 /curlayer 0 def
163
164 %%EndResource
165 %%EndProlog
166 %%BeginSetup
167 14 default-font-family set_font
168 1 setmiterlimit
169 % /arrowlength 10 def
170 % /arrowwidth 5 def
171
172 % make sure pdfmark is harmless for PS-interpreters other than Distiller
173 /pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
174 % make '<<' and '>>' safe on PS Level 1 devices
175 /languagelevel where {pop languagelevel}{1} ifelse
176 2 lt {
177 userdict (<<) cvn ([) cvn load put
178 userdict (>>) cvn ([) cvn load put
179 } if
180
181 %%EndSetup
182 %%Page: 1 1
183 %%PageBoundingBox: 36 36 657 624
184 %%PageOrientation: Portrait
185 gsave
186 36 36 657 624 boxprim clip newpath
187 36 36 translate
188 0 0 1 beginpage
189 1.0000 set_scale
190 4 4 translate 0 rotate
191 0.000 0.000 1.000 graphcolor
192 0.000 0.000 1.000 graphcolor
193 newpath -6 -6 moveto
194 -6 586 lineto
195 619 586 lineto
196 619 -6 lineto
197 closepath
198 fill
199 0.000 0.000 1.000 graphcolor
200 newpath -6 -6 moveto
201 -6 586 lineto
202 619 586 lineto
203 619 -6 lineto
204 closepath
205 stroke
206 0.000 0.000 0.000 graphcolor
207 14.00 /Times-Roman set_font
208 gsave 10 dict begin
209 20.00 /Times-Roman set_font
210 207 35 moveto
211 (Entity Relation Diagram)
212 [12.24 10.08 5.52 5.52 5.52 10.08 5.04 12.72 8.88 5.52 8.88 5.52 5.52 10.08 10.08 5.04 14.4 5.52 8.88 10.32 6.96 8.88 15.6]
213 xshow
214 233 11 moveto
215 (drawn by NEATO)
216 [10.08 6.96 8.16 14.4 10.08 5.04 9.36 10.08 5.04 14.4 12.24 13.44 12 14.4]
217 xshow
218 end grestore
219 % course
220 gsave 10 dict begin
221 newpath 161 260 moveto
222 107 260 lineto
223 107 224 lineto
224 161 224 lineto
225 closepath
226 stroke
227 gsave 10 dict begin
228 115 239 moveto
229 (course)
230 [6.24 6.96 6.96 4.8 5.52 6.24]
231 xshow
232 end grestore
233 end grestore
234 % C-I
235 gsave 10 dict begin
236 filled
237 0.000 0.000 0.827 nodecolor
238 0.000 0.000 0.827 nodecolor
239 newpath 68 382 moveto
240 36 358 lineto
241 68 334 lineto
242 100 358 lineto
243 closepath
244 fill
245 0.000 0.000 0.827 nodecolor
246 newpath 68 382 moveto
247 36 358 lineto
248 68 334 lineto
249 100 358 lineto
250 closepath
251 stroke
252 gsave 10 dict begin
253 0.000 0.000 0.000 nodecolor
254 58 355 moveto
255 (C-I)
256 [9.36 4.56 4.56]
257 xshow
258 end grestore
259 end grestore
260 % course--C-I
261 newpath 124 260 moveto
262 111 282 90 320 78 341 curveto
263 stroke
264 gsave 10 dict begin
265 94 293 moveto 8.0 -0.5 (n) alignedtext
266 end grestore
267 % institute
268 gsave 10 dict begin
269 newpath 165 492 moveto
270 103 492 lineto
271 103 456 lineto
272 165 456 lineto
273 closepath
274 stroke
275 gsave 10 dict begin
276 111 471 moveto
277 (institute)
278 [3.84 6.96 5.28 3.84 3.84 3.84 6.96 3.84 6.24]
279 xshow
280 end grestore
281 end grestore
282 % name1
283 gsave 10 dict begin
284 84 561 28 18 ellipse_path
285 stroke
286 gsave 10 dict begin
287 68 558 moveto
288 (name)
289 [6.96 6.24 10.8 6.24]
290 xshow
291 end grestore
292 end grestore
293 % institute--name1
294 newpath 124 492 moveto
295 115 508 102 529 94 544 curveto
296 stroke
297 % S-I
298 gsave 10 dict begin
299 filled
300 0.000 0.000 0.827 nodecolor
301 0.000 0.000 0.827 nodecolor
302 newpath 268 498 moveto
303 238 474 lineto
304 268 450 lineto
305 298 474 lineto
306 closepath
307 fill
308 0.000 0.000 0.827 nodecolor
309 newpath 268 498 moveto
310 238 474 lineto
311 268 450 lineto
312 298 474 lineto
313 closepath
314 stroke
315 gsave 10 dict begin
316 0.000 0.000 0.000 nodecolor
317 259 471 moveto
318 (S-I)
319 [7.68 4.56 4.56]
320 xshow
321 end grestore
322 end grestore
323 % institute--S-I
324 newpath 165 474 moveto
325 187 474 216 474 238 474 curveto
326 stroke
327 gsave 10 dict begin
328 201 462 moveto 8.0 -0.5 (1) alignedtext
329 end grestore
330 % student
331 gsave 10 dict begin
332 newpath 362 376 moveto
333 306 376 lineto
334 306 340 lineto
335 362 340 lineto
336 closepath
337 stroke
338 gsave 10 dict begin
339 313 355 moveto
340 (student)
341 [5.28 3.84 6.96 6.96 6.24 6.96 3.84]
342 xshow
343 end grestore
344 end grestore
345 % name2
346 gsave 10 dict begin
347 559 225 28 18 ellipse_path
348 stroke
349 gsave 10 dict begin
350 543 222 moveto
351 (name)
352 [6.96 6.24 10.8 6.24]
353 xshow
354 end grestore
355 end grestore
356 % student--name2
357 newpath 362 341 moveto
358 408 314 498 261 538 237 curveto
359 stroke
360 % grade
361 gsave 10 dict begin
362 583 352 29 18 ellipse_path
363 stroke
364 gsave 10 dict begin
365 567 349 moveto
366 (grade)
367 [7.2 4.8 6.24 6.96 6.24]
368 xshow
369 end grestore
370 end grestore
371 % student--grade
372 newpath 362 357 moveto
373 409 356 506 354 554 353 curveto
374 stroke
375 % number
376 gsave 10 dict begin
377 561 485 34 18 ellipse_path
378 stroke
379 gsave 10 dict begin
380 539 482 moveto
381 (number)
382 [6.96 6.96 10.8 6.96 6.24 4.8]
383 xshow
384 end grestore
385 end grestore
386 % student--number
387 newpath 362 374 moveto
388 407 399 495 448 537 472 curveto
389 stroke
390 % S-C
391 gsave 10 dict begin
392 filled
393 0.000 0.000 0.827 nodecolor
394 0.000 0.000 0.827 nodecolor
395 newpath 268 266 moveto
396 234 242 lineto
397 268 218 lineto
398 302 242 lineto
399 closepath
400 fill
401 0.000 0.000 0.827 nodecolor
402 newpath 268 266 moveto
403 234 242 lineto
404 268 218 lineto
405 302 242 lineto
406 closepath
407 stroke
408 gsave 10 dict begin
409 0.000 0.000 0.000 nodecolor
410 257 239 moveto
411 (S-C)
412 [7.68 4.56 9.36]
413 xshow
414 end grestore
415 end grestore
416 % student--S-C
417 newpath 324 340 moveto
418 311 318 290 281 278 259 curveto
419 stroke
420 gsave 10 dict begin
421 292 300 moveto 11.0 -0.5 (m) alignedtext
422 end grestore
423 % name0
424 gsave 10 dict begin
425 29 185 28 18 ellipse_path
426 stroke
427 gsave 10 dict begin
428 13 182 moveto
429 (name)
430 [6.96 6.24 10.8 6.24]
431 xshow
432 end grestore
433 end grestore
434 % name0--course
435 newpath 51 197 moveto
436 67 206 89 218 107 227 curveto
437 stroke
438 % code
439 gsave 10 dict begin
440 139 123 27 18 ellipse_path
441 stroke
442 gsave 10 dict begin
443 125 120 moveto
444 (code)
445 [6.24 6.96 6.96 6.24]
446 xshow
447 end grestore
448 end grestore
449 % code--course
450 newpath 138 141 moveto
451 137 163 136 201 135 224 curveto
452 stroke
453 % C-I--institute
454 newpath 78 375 moveto
455 90 397 111 434 124 456 curveto
456 stroke
457 gsave 10 dict begin
458 93 416 moveto 8.0 -0.5 (1) alignedtext
459 end grestore
460 % S-C--course
461 newpath 234 242 moveto
462 211 242 182 242 161 242 curveto
463 stroke
464 gsave 10 dict begin
465 196 230 moveto 8.0 -0.5 (n) alignedtext
466 end grestore
467 % S-I--student
468 newpath 277 457 moveto
469 290 436 311 398 324 376 curveto
470 stroke
471 gsave 10 dict begin
472 308 417 moveto 8.0 -0.5 (n) alignedtext
473 end grestore
474 endpage
475 showpage
476 grestore
477 %%PageTrailer
478 %%EndPage: 1
479 %%Trailer
480 %%Pages: 1
481 %%BoundingBox: 36 36 657 624
482 end
483 restore
484 %%EOF