Documentation/Source/eric5.Graphics.ClassItem.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.ClassItem</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.ClassItem</h1>
12 <p>
13 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97;&#110; &#85;&#77;&#76; &#108;&#105;&#107;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.
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="#ClassItem">ClassItem</a></td>
23 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97;&#110; &#85;&#77;&#76; &#108;&#105;&#107;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.</td>
24 </tr><tr>
25 <td><a href="#ClassModel">ClassModel</a></td>
26 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108;.</td>
27 </tr>
28 </table>
29 <h3>Functions</h3>
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <hr /><hr />
34 <a NAME="ClassItem" ID="ClassItem"></a>
35 <h2>ClassItem</h2>
36 <p>
37 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97;&#110; &#85;&#77;&#76; &#108;&#105;&#107;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.
38 </p>
39 <h3>Derived from</h3>
40 UMLItem
41 <h3>Class Attributes</h3>
42 <table>
43 <tr><td>None</td></tr>
44 </table>
45 <h3>Methods</h3>
46 <table>
47 <tr>
48 <td><a href="#ClassItem.__init__">ClassItem</a></td>
49 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
50 </tr><tr>
51 <td><a href="#ClassItem.__calculateSize">__calculateSize</a></td>
52 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#115;&#105;z&#101; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.</td>
53 </tr><tr>
54 <td><a href="#ClassItem.__createTexts">__createTexts</a></td>
55 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#116;&#104;&#101; &#116;&#101;x&#116; &#105;&#116;&#101;&#109;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.</td>
56 </tr><tr>
57 <td><a href="#ClassItem.isExternal">isExternal</a></td>
58 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#114;&#101;&#116;&#117;&#114;&#110;&#105;&#110;&#103; &#116;&#104;&#101; &#101;x&#116;&#101;&#114;&#110;&#97;&#108; &#115;&#116;&#97;&#116;&#101;.</td>
59 </tr><tr>
60 <td><a href="#ClassItem.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="#ClassItem.setModel">setModel</a></td>
64 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108;.</td>
65 </tr>
66 </table>
67 <a NAME="ClassItem.__init__" ID="ClassItem.__init__"></a>
68 <h4>ClassItem (Constructor)</h4>
69 <b>ClassItem</b>(<i>model = None, external = False, x = 0, y = 0, rounded = False, noAttrs = False, parent = None, scene = None</i>)
70 <p>
71 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
72 </p><dl>
73 <dt><i>model</i></dt>
74 <dd>
75 &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#100;&#97;&#116;&#97; (&#67;&#108;&#97;&#115;&#115;&#77;&#111;&#100;&#101;&#108;)
76 </dd><dt><i>external</i></dt>
77 <dd>
78 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97; &#99;&#108;&#97;&#115;&#115; &#100;&#101;&#102;&#105;&#110;&#101;&#100; &#111;&#117;&#116;&#115;&#105;&#100;&#101; &#111;&#117;&#114; &#115;&#99;&#111;&#112;&#101; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)
79 </dd><dt><i>x</i></dt>
80 <dd>
81 x-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
82 </dd><dt><i>y</i></dt>
83 <dd>
84 y-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
85 </dd><dt><i>rounded=</i></dt>
86 <dd>
87 &#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;)
88 </dd><dt><i>noAttrs=</i></dt>
89 <dd>
90 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103;, &#116;&#104;&#97;&#116; &#110;&#111; &#97;&#116;&#116;&#114;&#105;&#98;&#117;&#116;&#101;&#115; &#115;&#104;&#111;&#117;&#108;&#100; &#98;&#101; &#115;&#104;&#111;w&#110; (&#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><dt><i>scene=</i></dt>
95 <dd>
96 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#115;&#99;&#101;&#110;&#101; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#83;&#99;&#101;&#110;&#101;)
97 </dd>
98 </dl><a NAME="ClassItem.__calculateSize" ID="ClassItem.__calculateSize"></a>
99 <h4>ClassItem.__calculateSize</h4>
100 <b>__calculateSize</b>(<i></i>)
101 <p>
102 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#115;&#105;z&#101; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.
103 </p><a NAME="ClassItem.__createTexts" ID="ClassItem.__createTexts"></a>
104 <h4>ClassItem.__createTexts</h4>
105 <b>__createTexts</b>(<i></i>)
106 <p>
107 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#116;&#104;&#101; &#116;&#101;x&#116; &#105;&#116;&#101;&#109;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.
108 </p><a NAME="ClassItem.isExternal" ID="ClassItem.isExternal"></a>
109 <h4>ClassItem.isExternal</h4>
110 <b>isExternal</b>(<i></i>)
111 <p>
112 &#77;&#101;&#116;&#104;&#111;&#100; &#114;&#101;&#116;&#117;&#114;&#110;&#105;&#110;&#103; &#116;&#104;&#101; &#101;x&#116;&#101;&#114;&#110;&#97;&#108; &#115;&#116;&#97;&#116;&#101;.
113 </p><dl>
114 <dt>Returns:</dt>
115 <dd>
116 &#101;x&#116;&#101;&#114;&#110;&#97;&#108; &#115;&#116;&#97;&#116;&#101; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)
117 </dd>
118 </dl><a NAME="ClassItem.paint" ID="ClassItem.paint"></a>
119 <h4>ClassItem.paint</h4>
120 <b>paint</b>(<i>painter, option, widget = None</i>)
121 <p>
122 &#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;.
123 </p><dl>
124 <dt><i>painter</i></dt>
125 <dd>
126 &#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;)
127 </dd><dt><i>option</i></dt>
128 <dd>
129 &#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;)
130 </dd><dt><i>widget</i></dt>
131 <dd>
132 &#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;)
133 </dd>
134 </dl><a NAME="ClassItem.setModel" ID="ClassItem.setModel"></a>
135 <h4>ClassItem.setModel</h4>
136 <b>setModel</b>(<i>model</i>)
137 <p>
138 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108;.
139 </p><dl>
140 <dt><i>model</i></dt>
141 <dd>
142 &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#100;&#97;&#116;&#97; (&#67;&#108;&#97;&#115;&#115;&#77;&#111;&#100;&#101;&#108;)
143 </dd>
144 </dl>
145 <div align="right"><a href="#top">Up</a></div>
146 <hr /><hr />
147 <a NAME="ClassModel" ID="ClassModel"></a>
148 <h2>ClassModel</h2>
149 <p>
150 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108;.
151 </p>
152 <h3>Derived from</h3>
153 object
154 <h3>Class Attributes</h3>
155 <table>
156 <tr><td>None</td></tr>
157 </table>
158 <h3>Methods</h3>
159 <table>
160 <tr>
161 <td><a href="#ClassModel.__init__">ClassModel</a></td>
162 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
163 </tr><tr>
164 <td><a href="#ClassModel.addAttribute">addAttribute</a></td>
165 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#116;&#116;&#114;&#105;&#98;&#117;&#116;&#101; &#116;&#111; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108;.</td>
166 </tr><tr>
167 <td><a href="#ClassModel.addMethod">addMethod</a></td>
168 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108;.</td>
169 </tr><tr>
170 <td><a href="#ClassModel.getAttributes">getAttributes</a></td>
171 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#97;&#116;&#116;&#114;&#105;&#98;&#117;&#116;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;.</td>
172 </tr><tr>
173 <td><a href="#ClassModel.getMethods">getMethods</a></td>
174 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#109;&#101;&#116;&#104;&#111;&#100;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;.</td>
175 </tr><tr>
176 <td><a href="#ClassModel.getName">getName</a></td>
177 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#110;&#97;&#109;&#101;.</td>
178 </tr>
179 </table>
180 <a NAME="ClassModel.__init__" ID="ClassModel.__init__"></a>
181 <h4>ClassModel (Constructor)</h4>
182 <b>ClassModel</b>(<i>name, methods = [], attributes = []</i>)
183 <p>
184 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
185 </p><dl>
186 <dt><i>name</i></dt>
187 <dd>
188 &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;)
189 </dd><dt><i>methods</i></dt>
190 <dd>
191 &#108;&#105;&#115;&#116; &#111;&#102; &#109;&#101;&#116;&#104;&#111;&#100; &#110;&#97;&#109;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;
192 (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;)
193 </dd><dt><i>attributes</i></dt>
194 <dd>
195 &#108;&#105;&#115;&#116; &#111;&#102; &#97;&#116;&#116;&#114;&#105;&#98;&#117;&#116;&#101; &#110;&#97;&#109;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;
196 (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;)
197 </dd>
198 </dl><a NAME="ClassModel.addAttribute" ID="ClassModel.addAttribute"></a>
199 <h4>ClassModel.addAttribute</h4>
200 <b>addAttribute</b>(<i>attribute</i>)
201 <p>
202 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#116;&#116;&#114;&#105;&#98;&#117;&#116;&#101; &#116;&#111; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108;.
203 </p><dl>
204 <dt><i>attribute</i></dt>
205 <dd>
206 &#97;&#116;&#116;&#114;&#105;&#98;&#117;&#116;&#101; &#110;&#97;&#109;&#101; &#116;&#111; &#98;&#101; &#97;&#100;&#100;&#101;&#100; (&#115;&#116;&#114;&#105;&#110;&#103;)
207 </dd>
208 </dl><a NAME="ClassModel.addMethod" ID="ClassModel.addMethod"></a>
209 <h4>ClassModel.addMethod</h4>
210 <b>addMethod</b>(<i>method</i>)
211 <p>
212 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#109;&#111;&#100;&#101;&#108;.
213 </p><dl>
214 <dt><i>method</i></dt>
215 <dd>
216 &#109;&#101;&#116;&#104;&#111;&#100; &#110;&#97;&#109;&#101; &#116;&#111; &#98;&#101; &#97;&#100;&#100;&#101;&#100; (&#115;&#116;&#114;&#105;&#110;&#103;)
217 </dd>
218 </dl><a NAME="ClassModel.getAttributes" ID="ClassModel.getAttributes"></a>
219 <h4>ClassModel.getAttributes</h4>
220 <b>getAttributes</b>(<i></i>)
221 <p>
222 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#97;&#116;&#116;&#114;&#105;&#98;&#117;&#116;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;.
223 </p><dl>
224 <dt>Returns:</dt>
225 <dd>
226 &#108;&#105;&#115;&#116; &#111;&#102; &#99;&#108;&#97;&#115;&#115; &#97;&#116;&#116;&#114;&#105;&#98;&#117;&#116;&#101;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;)
227 </dd>
228 </dl><a NAME="ClassModel.getMethods" ID="ClassModel.getMethods"></a>
229 <h4>ClassModel.getMethods</h4>
230 <b>getMethods</b>(<i></i>)
231 <p>
232 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#109;&#101;&#116;&#104;&#111;&#100;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;.
233 </p><dl>
234 <dt>Returns:</dt>
235 <dd>
236 &#108;&#105;&#115;&#116; &#111;&#102; &#99;&#108;&#97;&#115;&#115; &#109;&#101;&#116;&#104;&#111;&#100;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;)
237 </dd>
238 </dl><a NAME="ClassModel.getName" ID="ClassModel.getName"></a>
239 <h4>ClassModel.getName</h4>
240 <b>getName</b>(<i></i>)
241 <p>
242 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#110;&#97;&#109;&#101;.
243 </p><dl>
244 <dt>Returns:</dt>
245 <dd>
246 &#99;&#108;&#97;&#115;&#115; &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;)
247 </dd>
248 </dl>
249 <div align="right"><a href="#top">Up</a></div>
250 <hr />
251 </body></html>

eric ide

mercurial