184 <p> |
184 <p> |
185 Public method to add an association to this widget. |
185 Public method to add an association to this widget. |
186 </p> |
186 </p> |
187 <dl> |
187 <dl> |
188 |
188 |
189 <dt><i>assoc</i></dt> |
189 <dt><i>assoc</i> (AssociationWidget)</dt> |
190 <dd> |
190 <dd> |
191 association to be added (AssociationWidget) |
191 association to be added |
192 </dd> |
192 </dd> |
193 </dl> |
193 </dl> |
194 <a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a> |
194 <a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a> |
195 <h4>UMLItem.adjustAssociations</h4> |
195 <h4>UMLItem.adjustAssociations</h4> |
196 <b>adjustAssociations</b>(<i></i>) |
196 <b>adjustAssociations</b>(<i></i>) |
211 contain ", " or newlines. |
211 contain ", " or newlines. |
212 </p> |
212 </p> |
213 <dl> |
213 <dl> |
214 <dt>Return:</dt> |
214 <dt>Return:</dt> |
215 <dd> |
215 <dd> |
216 persistence data (string) |
216 persistence data |
|
217 </dd> |
|
218 </dl> |
|
219 <dl> |
|
220 <dt>Return Type:</dt> |
|
221 <dd> |
|
222 str |
217 </dd> |
223 </dd> |
218 </dl> |
224 </dl> |
219 <a NAME="UMLItem.getId" ID="UMLItem.getId"></a> |
225 <a NAME="UMLItem.getId" ID="UMLItem.getId"></a> |
220 <h4>UMLItem.getId</h4> |
226 <h4>UMLItem.getId</h4> |
221 <b>getId</b>(<i></i>) |
227 <b>getId</b>(<i></i>) |
224 Public method to get the item ID. |
230 Public method to get the item ID. |
225 </p> |
231 </p> |
226 <dl> |
232 <dl> |
227 <dt>Return:</dt> |
233 <dt>Return:</dt> |
228 <dd> |
234 <dd> |
229 ID of the item (integer) |
235 ID of the item |
|
236 </dd> |
|
237 </dl> |
|
238 <dl> |
|
239 <dt>Return Type:</dt> |
|
240 <dd> |
|
241 int |
230 </dd> |
242 </dd> |
231 </dl> |
243 </dl> |
232 <a NAME="UMLItem.getItemType" ID="UMLItem.getItemType"></a> |
244 <a NAME="UMLItem.getItemType" ID="UMLItem.getItemType"></a> |
233 <h4>UMLItem.getItemType</h4> |
245 <h4>UMLItem.getItemType</h4> |
234 <b>getItemType</b>(<i></i>) |
246 <b>getItemType</b>(<i></i>) |
250 Public method to retrieve the item name. |
268 Public method to retrieve the item name. |
251 </p> |
269 </p> |
252 <dl> |
270 <dl> |
253 <dt>Return:</dt> |
271 <dt>Return:</dt> |
254 <dd> |
272 <dd> |
255 item name (string) |
273 item name |
|
274 </dd> |
|
275 </dl> |
|
276 <dl> |
|
277 <dt>Return Type:</dt> |
|
278 <dd> |
|
279 str |
256 </dd> |
280 </dd> |
257 </dl> |
281 </dl> |
258 <a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a> |
282 <a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a> |
259 <h4>UMLItem.itemChange</h4> |
283 <h4>UMLItem.itemChange</h4> |
260 <b>itemChange</b>(<i>change, value</i>) |
284 <b>itemChange</b>(<i>change, value</i>) |
286 <p> |
310 <p> |
287 Public overriden method to move the widget relative. |
311 Public overriden method to move the widget relative. |
288 </p> |
312 </p> |
289 <dl> |
313 <dl> |
290 |
314 |
291 <dt><i>dx</i></dt> |
315 <dt><i>dx</i> (float)</dt> |
292 <dd> |
316 <dd> |
293 relative movement in x-direction (float) |
317 relative movement in x-direction |
294 </dd> |
318 </dd> |
295 <dt><i>dy</i></dt> |
319 <dt><i>dy</i> (float)</dt> |
296 <dd> |
320 <dd> |
297 relative movement in y-direction (float) |
321 relative movement in y-direction |
298 </dd> |
322 </dd> |
299 </dl> |
323 </dl> |
300 <a NAME="UMLItem.paint" ID="UMLItem.paint"></a> |
324 <a NAME="UMLItem.paint" ID="UMLItem.paint"></a> |
301 <h4>UMLItem.paint</h4> |
325 <h4>UMLItem.paint</h4> |
302 <b>paint</b>(<i>painter, option, widget=None</i>) |
326 <b>paint</b>(<i>painter, option, widget=None</i>) |
304 <p> |
328 <p> |
305 Public method to paint the item in local coordinates. |
329 Public method to paint the item in local coordinates. |
306 </p> |
330 </p> |
307 <dl> |
331 <dl> |
308 |
332 |
309 <dt><i>painter</i></dt> |
333 <dt><i>painter</i> (QPainter)</dt> |
310 <dd> |
334 <dd> |
311 reference to the painter object (QPainter) |
335 reference to the painter object |
312 </dd> |
336 </dd> |
313 <dt><i>option</i></dt> |
337 <dt><i>option</i> (QStyleOptionGraphicsItem)</dt> |
314 <dd> |
338 <dd> |
315 style options (QStyleOptionGraphicsItem) |
339 style options |
316 </dd> |
340 </dd> |
317 <dt><i>widget</i></dt> |
341 <dt><i>widget</i> (QWidget)</dt> |
318 <dd> |
342 <dd> |
319 optional reference to the widget painted on (QWidget) |
343 optional reference to the widget painted on |
320 </dd> |
344 </dd> |
321 </dl> |
345 </dl> |
322 <a NAME="UMLItem.parseItemDataString" ID="UMLItem.parseItemDataString"></a> |
346 <a NAME="UMLItem.parseItemDataString" ID="UMLItem.parseItemDataString"></a> |
323 <h4>UMLItem.parseItemDataString</h4> |
347 <h4>UMLItem.parseItemDataString</h4> |
324 <b>parseItemDataString</b>(<i>version, data</i>) |
348 <b>parseItemDataString</b>(<i>version, data</i>) |
326 <p> |
350 <p> |
327 Public method to parse the given persistence data. |
351 Public method to parse the given persistence data. |
328 </p> |
352 </p> |
329 <dl> |
353 <dl> |
330 |
354 |
331 <dt><i>version</i></dt> |
355 <dt><i>version</i> (str)</dt> |
332 <dd> |
356 <dd> |
333 version of the data (string) |
357 version of the data |
334 </dd> |
358 </dd> |
335 <dt><i>data</i></dt> |
359 <dt><i>data</i> (str)</dt> |
336 <dd> |
360 <dd> |
337 persisted data to be parsed (string) |
361 persisted data to be parsed |
338 </dd> |
362 </dd> |
339 </dl> |
363 </dl> |
340 <dl> |
364 <dl> |
341 <dt>Return:</dt> |
365 <dt>Return:</dt> |
342 <dd> |
366 <dd> |
343 flag indicating success (boolean) |
367 flag indicating success |
|
368 </dd> |
|
369 </dl> |
|
370 <dl> |
|
371 <dt>Return Type:</dt> |
|
372 <dd> |
|
373 bool |
344 </dd> |
374 </dd> |
345 </dl> |
375 </dl> |
346 <a NAME="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a> |
376 <a NAME="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a> |
347 <h4>UMLItem.removeAssociation</h4> |
377 <h4>UMLItem.removeAssociation</h4> |
348 <b>removeAssociation</b>(<i>assoc</i>) |
378 <b>removeAssociation</b>(<i>assoc</i>) |
350 <p> |
380 <p> |
351 Public method to remove an association to this widget. |
381 Public method to remove an association to this widget. |
352 </p> |
382 </p> |
353 <dl> |
383 <dl> |
354 |
384 |
355 <dt><i>assoc</i></dt> |
385 <dt><i>assoc</i> (AssociationWidget)</dt> |
356 <dd> |
386 <dd> |
357 association to be removed (AssociationWidget) |
387 association to be removed |
358 </dd> |
388 </dd> |
359 </dl> |
389 </dl> |
360 <a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a> |
390 <a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a> |
361 <h4>UMLItem.removeAssociations</h4> |
391 <h4>UMLItem.removeAssociations</h4> |
362 <b>removeAssociations</b>(<i></i>) |
392 <b>removeAssociations</b>(<i></i>) |
371 <p> |
401 <p> |
372 Public method to assign an ID to the item. |
402 Public method to assign an ID to the item. |
373 </p> |
403 </p> |
374 <dl> |
404 <dl> |
375 |
405 |
376 <dt><i>itemId</i></dt> |
406 <dt><i>itemId</i> (int)</dt> |
377 <dd> |
407 <dd> |
378 assigned ID (integer) |
408 assigned ID |
379 </dd> |
409 </dd> |
380 </dl> |
410 </dl> |
381 <a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a> |
411 <a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a> |
382 <h4>UMLItem.setPos</h4> |
412 <h4>UMLItem.setPos</h4> |
383 <b>setPos</b>(<i>x, y</i>) |
413 <b>setPos</b>(<i>x, y</i>) |
385 <p> |
415 <p> |
386 Public overriden method to set the items position. |
416 Public overriden method to set the items position. |
387 </p> |
417 </p> |
388 <dl> |
418 <dl> |
389 |
419 |
390 <dt><i>x</i></dt> |
420 <dt><i>x</i> (float)</dt> |
391 <dd> |
421 <dd> |
392 absolute x-position (float) |
422 absolute x-position |
393 </dd> |
423 </dd> |
394 <dt><i>y</i></dt> |
424 <dt><i>y</i> (float)</dt> |
395 <dd> |
425 <dd> |
396 absolute y-position (float) |
426 absolute y-position |
397 </dd> |
427 </dd> |
398 </dl> |
428 </dl> |
399 <a NAME="UMLItem.setSize" ID="UMLItem.setSize"></a> |
429 <a NAME="UMLItem.setSize" ID="UMLItem.setSize"></a> |
400 <h4>UMLItem.setSize</h4> |
430 <h4>UMLItem.setSize</h4> |
401 <b>setSize</b>(<i>width, height</i>) |
431 <b>setSize</b>(<i>width, height</i>) |
403 <p> |
433 <p> |
404 Public method to set the rectangles size. |
434 Public method to set the rectangles size. |
405 </p> |
435 </p> |
406 <dl> |
436 <dl> |
407 |
437 |
408 <dt><i>width</i></dt> |
438 <dt><i>width</i> (float)</dt> |
409 <dd> |
439 <dd> |
410 width of the rectangle (float) |
440 width of the rectangle |
411 </dd> |
441 </dd> |
412 <dt><i>height</i></dt> |
442 <dt><i>height</i> (float)</dt> |
413 <dd> |
443 <dd> |
414 height of the rectangle (float) |
444 height of the rectangle |
415 </dd> |
445 </dd> |
416 </dl> |
446 </dl> |
417 <div align="right"><a href="#top">Up</a></div> |
447 <div align="right"><a href="#top">Up</a></div> |
418 <hr /> |
448 <hr /> |
419 <hr /> |
449 <hr /> |