Documentation/Source/eric5.Graphics.UMLItem.html

changeset 17
edde1fe80b3e
child 21
b88a0e6268bd
equal deleted inserted replaced
16:892c1787d666 17:edde1fe80b3e
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'>
4 <html><head>
5 <title>eric5.Graphics.UMLItem</title>
6 <style>
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n'
8 </style>
9 </head>
10 <body><a NAME="top" ID="top"></a>
11 <h1>eric5.Graphics.UMLItem</h1>
12 <p>
13 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#87;&#105;&#100;&#103;&#101;&#116; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.
14 </p>
15 <h3>Global Attributes</h3>
16 <table>
17 <tr><td>None</td></tr>
18 </table>
19 <h3>Classes</h3>
20 <table>
21 <tr>
22 <td><a href="#UMLItem">UMLItem</a></td>
23 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#73;&#116;&#101;&#109; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.</td>
24 </tr>
25 </table>
26 <h3>Functions</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <hr /><hr />
31 <a NAME="UMLItem" ID="UMLItem"></a>
32 <h2>UMLItem</h2>
33 <p>
34 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#73;&#116;&#101;&#109; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.
35 </p>
36 <h3>Derived from</h3>
37 QGraphicsRectItem
38 <h3>Class Attributes</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <h3>Methods</h3>
43 <table>
44 <tr>
45 <td><a href="#UMLItem.__init__">UMLItem</a></td>
46 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
47 </tr><tr>
48 <td><a href="#UMLItem.addAssociation">addAssociation</a></td>
49 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
50 </tr><tr>
51 <td><a href="#UMLItem.adjustAssociations">adjustAssociations</a></td>
52 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#106;&#117;&#115;&#116; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#116;&#111; w&#105;&#100;&#103;&#101;&#116; &#109;&#111;v&#101;&#109;&#101;&#110;&#116;&#115;.</td>
53 </tr><tr>
54 <td><a href="#UMLItem.itemChange">itemChange</a></td>
55 <td>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; w&#104;&#101;&#110; &#97;&#110; &#105;&#116;&#101;&#109;&#115; &#115;&#116;&#97;&#116;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115;.</td>
56 </tr><tr>
57 <td><a href="#UMLItem.moveBy">moveBy</a></td>
58 <td>&#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#111;v&#101; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#114;&#101;&#108;&#97;&#116;&#105;v&#101;.</td>
59 </tr><tr>
60 <td><a href="#UMLItem.paint">paint</a></td>
61 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#97;&#105;&#110;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#105;&#110; &#108;&#111;&#99;&#97;&#108; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115;.</td>
62 </tr><tr>
63 <td><a href="#UMLItem.removeAssociation">removeAssociation</a></td>
64 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
65 </tr><tr>
66 <td><a href="#UMLItem.removeAssociations">removeAssociations</a></td>
67 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#108;&#108; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#111;&#102; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
68 </tr><tr>
69 <td><a href="#UMLItem.setPos">setPos</a></td>
70 <td>&#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109;&#115; &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110;.</td>
71 </tr><tr>
72 <td><a href="#UMLItem.setSize">setSize</a></td>
73 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;&#115; &#115;&#105;z&#101;.</td>
74 </tr>
75 </table>
76 <a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a>
77 <h4>UMLItem (Constructor)</h4>
78 <b>UMLItem</b>(<i>x = 0, y = 0, rounded = False, parent = None</i>)
79 <p>
80 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
81 </p><dl>
82 <dt><i>x</i></dt>
83 <dd>
84 x-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
85 </dd><dt><i>y</i></dt>
86 <dd>
87 y-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
88 </dd><dt><i>rounded</i></dt>
89 <dd>
90 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97; &#114;&#111;&#117;&#110;&#100;&#101;&#100; &#99;&#111;&#114;&#110;&#101;&#114; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)
91 </dd><dt><i>parent=</i></dt>
92 <dd>
93 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;)
94 </dd>
95 </dl><a NAME="UMLItem.addAssociation" ID="UMLItem.addAssociation"></a>
96 <h4>UMLItem.addAssociation</h4>
97 <b>addAssociation</b>(<i>assoc</i>)
98 <p>
99 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
100 </p><dl>
101 <dt><i>assoc</i></dt>
102 <dd>
103 &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#101; &#97;&#100;&#100;&#101;&#100; (&#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#87;&#105;&#100;&#103;&#101;&#116;)
104 </dd>
105 </dl><a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a>
106 <h4>UMLItem.adjustAssociations</h4>
107 <b>adjustAssociations</b>(<i></i>)
108 <p>
109 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#106;&#117;&#115;&#116; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#116;&#111; w&#105;&#100;&#103;&#101;&#116; &#109;&#111;v&#101;&#109;&#101;&#110;&#116;&#115;.
110 </p><a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a>
111 <h4>UMLItem.itemChange</h4>
112 <b>itemChange</b>(<i>change, value</i>)
113 <p>
114 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; w&#104;&#101;&#110; &#97;&#110; &#105;&#116;&#101;&#109;&#115; &#115;&#116;&#97;&#116;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115;.
115 </p><dl>
116 <dt><i>change</i></dt>
117 <dd>
118 &#116;&#104;&#101; &#105;&#116;&#101;&#109;'&#115; &#99;&#104;&#97;&#110;&#103;&#101; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;.&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;&#67;&#104;&#97;&#110;&#103;&#101;)
119 </dd><dt><i>value</i></dt>
120 <dd>
121 &#116;&#104;&#101; v&#97;&#108;&#117;&#101; &#111;&#102; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101;
122 </dd>
123 </dl><dl>
124 <dt>Returns:</dt>
125 <dd>
126 &#97;&#100;&#106;&#117;&#115;&#116;&#101;&#100; v&#97;&#108;&#117;&#101;&#115;
127 </dd>
128 </dl><a NAME="UMLItem.moveBy" ID="UMLItem.moveBy"></a>
129 <h4>UMLItem.moveBy</h4>
130 <b>moveBy</b>(<i>dx, dy</i>)
131 <p>
132 &#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#111;v&#101; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#114;&#101;&#108;&#97;&#116;&#105;v&#101;.
133 </p><dl>
134 <dt><i>dx</i></dt>
135 <dd>
136 &#114;&#101;&#108;&#97;&#116;&#105;v&#101; &#109;&#111;v&#101;&#109;&#101;&#110;&#116; &#105;&#110; x-&#100;&#105;&#114;&#101;&#99;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
137 </dd><dt><i>dy</i></dt>
138 <dd>
139 &#114;&#101;&#108;&#97;&#116;&#105;v&#101; &#109;&#111;v&#101;&#109;&#101;&#110;&#116; &#105;&#110; y-&#100;&#105;&#114;&#101;&#99;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
140 </dd>
141 </dl><a NAME="UMLItem.paint" ID="UMLItem.paint"></a>
142 <h4>UMLItem.paint</h4>
143 <b>paint</b>(<i>painter, option, widget = None</i>)
144 <p>
145 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#97;&#105;&#110;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#105;&#110; &#108;&#111;&#99;&#97;&#108; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115;.
146 </p><dl>
147 <dt><i>painter</i></dt>
148 <dd>
149 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#105;&#110;&#116;&#101;&#114; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#80;&#97;&#105;&#110;&#116;&#101;&#114;)
150 </dd><dt><i>option</i></dt>
151 <dd>
152 &#115;&#116;y&#108;&#101; &#111;&#112;&#116;&#105;&#111;&#110;&#115; (&#81;&#83;&#116;y&#108;&#101;&#79;&#112;&#116;&#105;&#111;&#110;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;)
153 </dd><dt><i>widget</i></dt>
154 <dd>
155 &#111;&#112;&#116;&#105;&#111;&#110;&#97;&#108; &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#112;&#97;&#105;&#110;&#116;&#101;&#100; &#111;&#110; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;)
156 </dd>
157 </dl><a NAME="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a>
158 <h4>UMLItem.removeAssociation</h4>
159 <b>removeAssociation</b>(<i>assoc</i>)
160 <p>
161 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
162 </p><dl>
163 <dt><i>assoc</i></dt>
164 <dd>
165 &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#101; &#114;&#101;&#109;&#111;v&#101;&#100; (&#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#87;&#105;&#100;&#103;&#101;&#116;)
166 </dd>
167 </dl><a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a>
168 <h4>UMLItem.removeAssociations</h4>
169 <b>removeAssociations</b>(<i></i>)
170 <p>
171 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#108;&#108; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#111;&#102; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
172 </p><a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a>
173 <h4>UMLItem.setPos</h4>
174 <b>setPos</b>(<i>x, y</i>)
175 <p>
176 &#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109;&#115; &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110;.
177 </p><dl>
178 <dt><i>x</i></dt>
179 <dd>
180 &#97;&#98;&#115;&#111;&#108;&#117;&#116;&#101; x-&#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
181 </dd><dt><i>y</i></dt>
182 <dd>
183 &#97;&#98;&#115;&#111;&#108;&#117;&#116;&#101; y-&#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
184 </dd>
185 </dl><a NAME="UMLItem.setSize" ID="UMLItem.setSize"></a>
186 <h4>UMLItem.setSize</h4>
187 <b>setSize</b>(<i>width, height</i>)
188 <p>
189 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;&#115; &#115;&#105;z&#101;.
190 </p><dl>
191 <dt><i>width</i></dt>
192 <dd>
193 w&#105;&#100;&#116;&#104; &#111;&#102; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; (&#102;&#108;&#111;&#97;&#116;)
194 </dd><dt><i>height</i></dt>
195 <dd>
196 &#104;&#101;&#105;&#103;&#104;&#116; &#111;&#102; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; (&#102;&#108;&#111;&#97;&#116;)
197 </dd>
198 </dl>
199 <div align="right"><a href="#top">Up</a></div>
200 <hr />
201 </body></html>

eric ide

mercurial