1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
5
<title>eric4.Graphics.ImportsDiagram</title>
9
margin: 0em 1em 10em 1em;
13
h1 { color: white; background: #4FA4FF; }
14
h2 { color: white; background: #4FA4FF; }
15
h3 { color: white; background: #00557F; }
16
h4 { color: white; background: #00557F; }
22
<body><a NAME="top" ID="top"></a>
23
<h1>eric4.Graphics.ImportsDiagram</h1>
25
Module implementing a dialog showing an imports diagram of a package.
30
<td><a href="#ImportsDiagram">ImportsDiagram</a></td>
31
<td>Class implementing a dialog showing an imports diagram of a package.</td>
36
<tr><td>None</td></tr>
39
<a NAME="ImportsDiagram" ID="ImportsDiagram"></a>
40
<h2>ImportsDiagram</h2>
42
Class implementing a dialog showing an imports diagram of a package.
44
Note: Only package internal imports are show in order to maintain
52
<td><a href="#ImportsDiagram.__init__">ImportsDiagram</a></td>
55
<td><a href="#ImportsDiagram.__addModule">__addModule</a></td>
56
<td>Private method to add a module to the diagram.</td>
58
<td><a href="#ImportsDiagram.__buildImports">__buildImports</a></td>
59
<td>Private method to build the modules shapes of the diagram.</td>
61
<td><a href="#ImportsDiagram.__buildModulesDict">__buildModulesDict</a></td>
62
<td>Private method to build a dictionary of modules contained in the package.</td>
64
<td><a href="#ImportsDiagram.__createAssociations">__createAssociations</a></td>
65
<td>Private method to generate the associations between the module shapes.</td>
67
<td><a href="#ImportsDiagram.relayout">relayout</a></td>
68
<td>Method to relayout the diagram.</td>
70
<td><a href="#ImportsDiagram.show">show</a></td>
71
<td>Overriden method to show the dialog.</td>
74
<p><a NAME="ImportsDiagram.__init__" ID="ImportsDiagram.__init__"></a>
75
<h4>ImportsDiagram (Constructor)</h4>
76
<b>ImportsDiagram</b>(<i>package, parent = None, name = None</i>)
80
<dt><i>package</i></dt>
82
name of a python package to show the import
83
relationships (string)
84
</dd><dt><i>parent</i></dt>
86
parent widget of the view (QWidget)
87
</dd><dt><i>name</i></dt>
89
name of the view widget (QString or string)
91
</dl><a NAME="ImportsDiagram.__addModule" ID="ImportsDiagram.__addModule"></a>
92
<h4>ImportsDiagram.__addModule</h4>
93
<b>__addModule</b>(<i>name, classes, x, y</i>)
95
Private method to add a module to the diagram.
99
module name to be shown (string)
100
</dd><dt><i>classes</i></dt>
102
list of class names contained in the module
104
</dd><dt><i>x</i></dt>
107
</dd><dt><i>y</i></dt>
111
</dl><a NAME="ImportsDiagram.__buildImports" ID="ImportsDiagram.__buildImports"></a>
112
<h4>ImportsDiagram.__buildImports</h4>
113
<b>__buildImports</b>(<i></i>)
115
Private method to build the modules shapes of the diagram.
116
</p><a NAME="ImportsDiagram.__buildModulesDict" ID="ImportsDiagram.__buildModulesDict"></a>
117
<h4>ImportsDiagram.__buildModulesDict</h4>
118
<b>__buildModulesDict</b>(<i></i>)
120
Private method to build a dictionary of modules contained in the package.
124
dictionary of modules contained in the package.
126
</dl><a NAME="ImportsDiagram.__createAssociations" ID="ImportsDiagram.__createAssociations"></a>
127
<h4>ImportsDiagram.__createAssociations</h4>
128
<b>__createAssociations</b>(<i>shapes</i>)
130
Private method to generate the associations between the module shapes.
132
<dt><i>shapes</i></dt>
136
</dl><a NAME="ImportsDiagram.relayout" ID="ImportsDiagram.relayout"></a>
137
<h4>ImportsDiagram.relayout</h4>
138
<b>relayout</b>(<i></i>)
140
Method to relayout the diagram.
141
</p><a NAME="ImportsDiagram.show" ID="ImportsDiagram.show"></a>
142
<h4>ImportsDiagram.show</h4>
145
Overriden method to show the dialog.
147
<div align="right"><a href="#top">Up</a></div>
b'\\ No newline at end of file'