|
| 1 | +var metaphor =(function(){ |
| 2 | + |
| 3 | + function legend(){ |
| 4 | + var legend_RD = ` |
| 5 | + <div class='legend_Div jqxTabs_Div helpController'> |
| 6 | + <p>The Recursive Disk (RD) metaphor is designed to visualize the structure of imperative programming languages, with an emphasis on object-oriented languages. As the name indicates, an RD visualization consists of nested disks, where each disk represents a package or a class. All disks are ordered by size and then placed spiral-shaped clockwise around the largest disk. Although at first glance it seems chaotic, the emerging visual patterns and empty spaces give each disk a unique appearance and help the user to recognize specific disks.</p> |
| 7 | + <img src='scripts/HelpController/images/RD.PNG'> |
| 8 | + <div class='legend_Describe helpController'> |
| 9 | + <h2>Gray Disk</h2> |
| 10 | + <img src='scripts/HelpController/images/RD_package.png'> |
| 11 | + <p>Gray disks represent <span class='legend_Represent helpController'>translation units</span>. The nested disks represent its components, i.e., types. The size of a disk depends on the size of the nested disks.</p> |
| 12 | + </div> |
| 13 | + <div class='legend_Describe helpController'> |
| 14 | + <h2>Purple Disk</h2> |
| 15 | + <img src='scripts/HelpController/images/RD_type.png'> |
| 16 | + <p>Purple disks represent <span class='legend_Represent helpController'>types</span>. The size of a disk depends on the size of the nested disks and segments.</p> |
| 17 | + </div> |
| 18 | + <div class='legend_Describe helpController'> |
| 19 | + <h2>Blue Segment</h2> |
| 20 | + <img src='scripts/HelpController/images/RD_method.png'> |
| 21 | + <p>Blue segments represent <span class='legend_Represent helpController'>functions</span>. The area of a blue segment is based on the functions lines of code.</p> |
| 22 | + </div> |
| 23 | + <div class='legend_Describe helpController'> |
| 24 | + <h2>Yellow Segment</h2> |
| 25 | + <img src='scripts/HelpController/images/RD_field.png'> |
| 26 | + <p>Yellow segements represent <span class='legend_Represent helpController'>variables</span>. The area of a yellow segment is fixed and does not represent a metric.</p> |
| 27 | + </div> |
| 28 | + </div>`; |
| 29 | + return legend_RD; |
| 30 | + }; |
| 31 | + |
| 32 | + function relationships(){ |
| 33 | + var relationships_RD= ` |
| 34 | + <div class='relationships_Div jqxTabs_Div helpController'> |
| 35 | + <h2>Variable accesses</h2> |
| 36 | + <p>Click on a variable to show connections to accessing functions.</p> |
| 37 | + <p>Click on a function to show connections to accessed variables.</p> |
| 38 | + <img src='scripts/HelpController/images/RD_void.png'> |
| 39 | + <h2>Function calls</h2> |
| 40 | + <p>Click on a function to show in- and outgoing function calls.</p> |
| 41 | + <img src='scripts/HelpController/images/RD_voidrun.png'> |
| 42 | + </div>`; |
| 43 | + |
| 44 | + return relationships_RD; |
| 45 | + }; |
| 46 | + |
| 47 | + return { |
| 48 | + relationships: relationships, |
| 49 | + legend: legend |
| 50 | + }; |
| 51 | +})(); |
0 commit comments