62 <tr> |
62 <tr> |
63 <td><a href="#UMLItem.__init__">UMLItem</a></td> |
63 <td><a href="#UMLItem.__init__">UMLItem</a></td> |
64 <td>Constructor</td> |
64 <td>Constructor</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#UMLItem.addAssociation">addAssociation</a></td> |
66 <td><a href="#UMLItem.addAssociation">addAssociation</a></td> |
67 <td>Method to add an association to this widget.</td> |
67 <td>Public method to add an association to this widget.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#UMLItem.adjustAssociations">adjustAssociations</a></td> |
69 <td><a href="#UMLItem.adjustAssociations">adjustAssociations</a></td> |
70 <td>Method to adjust the associations to widget movements.</td> |
70 <td>Public method to adjust the associations to widget movements.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#UMLItem.buildItemDataString">buildItemDataString</a></td> |
72 <td><a href="#UMLItem.buildItemDataString">buildItemDataString</a></td> |
73 <td>Public method to build a string to persist the specific item data.</td> |
73 <td>Public method to build a string to persist the specific item data.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#UMLItem.getId">getId</a></td> |
75 <td><a href="#UMLItem.getId">getId</a></td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#UMLItem.getItemType">getItemType</a></td> |
78 <td><a href="#UMLItem.getItemType">getItemType</a></td> |
79 <td>Public method to get the item's type.</td> |
79 <td>Public method to get the item's type.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#UMLItem.getName">getName</a></td> |
81 <td><a href="#UMLItem.getName">getName</a></td> |
82 <td>Method to retrieve the item name.</td> |
82 <td>Public method to retrieve the item name.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#UMLItem.itemChange">itemChange</a></td> |
84 <td><a href="#UMLItem.itemChange">itemChange</a></td> |
85 <td>Protected method called when an items state changes.</td> |
85 <td>Public method called when an items state changes.</td> |
86 </tr><tr> |
86 </tr><tr> |
87 <td><a href="#UMLItem.moveBy">moveBy</a></td> |
87 <td><a href="#UMLItem.moveBy">moveBy</a></td> |
88 <td>Overriden method to move the widget relative.</td> |
88 <td>Public overriden method to move the widget relative.</td> |
89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#UMLItem.paint">paint</a></td> |
90 <td><a href="#UMLItem.paint">paint</a></td> |
91 <td>Public method to paint the item in local coordinates.</td> |
91 <td>Public method to paint the item in local coordinates.</td> |
92 </tr><tr> |
92 </tr><tr> |
93 <td><a href="#UMLItem.parseItemDataString">parseItemDataString</a></td> |
93 <td><a href="#UMLItem.parseItemDataString">parseItemDataString</a></td> |
94 <td>Public method to parse the given persistence data.</td> |
94 <td>Public method to parse the given persistence data.</td> |
95 </tr><tr> |
95 </tr><tr> |
96 <td><a href="#UMLItem.removeAssociation">removeAssociation</a></td> |
96 <td><a href="#UMLItem.removeAssociation">removeAssociation</a></td> |
97 <td>Method to remove an association to this widget.</td> |
97 <td>Public method to remove an association to this widget.</td> |
98 </tr><tr> |
98 </tr><tr> |
99 <td><a href="#UMLItem.removeAssociations">removeAssociations</a></td> |
99 <td><a href="#UMLItem.removeAssociations">removeAssociations</a></td> |
100 <td>Method to remove all associations of this widget.</td> |
100 <td>Public method to remove all associations of this widget.</td> |
101 </tr><tr> |
101 </tr><tr> |
102 <td><a href="#UMLItem.setId">setId</a></td> |
102 <td><a href="#UMLItem.setId">setId</a></td> |
103 <td>Public method to assign an ID to the item.</td> |
103 <td>Public method to assign an ID to the item.</td> |
104 </tr><tr> |
104 </tr><tr> |
105 <td><a href="#UMLItem.setPos">setPos</a></td> |
105 <td><a href="#UMLItem.setPos">setPos</a></td> |
106 <td>Overriden method to set the items position.</td> |
106 <td>Public overriden method to set the items position.</td> |
107 </tr><tr> |
107 </tr><tr> |
108 <td><a href="#UMLItem.setSize">setSize</a></td> |
108 <td><a href="#UMLItem.setSize">setSize</a></td> |
109 <td>Public method to set the rectangles size.</td> |
109 <td>Public method to set the rectangles size.</td> |
110 </tr> |
110 </tr> |
111 </table> |
111 </table> |
137 </dd> |
137 </dd> |
138 </dl><a NAME="UMLItem.addAssociation" ID="UMLItem.addAssociation"></a> |
138 </dl><a NAME="UMLItem.addAssociation" ID="UMLItem.addAssociation"></a> |
139 <h4>UMLItem.addAssociation</h4> |
139 <h4>UMLItem.addAssociation</h4> |
140 <b>addAssociation</b>(<i>assoc</i>) |
140 <b>addAssociation</b>(<i>assoc</i>) |
141 <p> |
141 <p> |
142 Method to add an association to this widget. |
142 Public method to add an association to this widget. |
143 </p><dl> |
143 </p><dl> |
144 <dt><i>assoc</i></dt> |
144 <dt><i>assoc</i></dt> |
145 <dd> |
145 <dd> |
146 association to be added (AssociationWidget) |
146 association to be added (AssociationWidget) |
147 </dd> |
147 </dd> |
148 </dl><a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a> |
148 </dl><a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a> |
149 <h4>UMLItem.adjustAssociations</h4> |
149 <h4>UMLItem.adjustAssociations</h4> |
150 <b>adjustAssociations</b>(<i></i>) |
150 <b>adjustAssociations</b>(<i></i>) |
151 <p> |
151 <p> |
152 Method to adjust the associations to widget movements. |
152 Public method to adjust the associations to widget movements. |
153 </p><a NAME="UMLItem.buildItemDataString" ID="UMLItem.buildItemDataString"></a> |
153 </p><a NAME="UMLItem.buildItemDataString" ID="UMLItem.buildItemDataString"></a> |
154 <h4>UMLItem.buildItemDataString</h4> |
154 <h4>UMLItem.buildItemDataString</h4> |
155 <b>buildItemDataString</b>(<i></i>) |
155 <b>buildItemDataString</b>(<i></i>) |
156 <p> |
156 <p> |
157 Public method to build a string to persist the specific item data. |
157 Public method to build a string to persist the specific item data. |
186 </dd> |
186 </dd> |
187 </dl><a NAME="UMLItem.getName" ID="UMLItem.getName"></a> |
187 </dl><a NAME="UMLItem.getName" ID="UMLItem.getName"></a> |
188 <h4>UMLItem.getName</h4> |
188 <h4>UMLItem.getName</h4> |
189 <b>getName</b>(<i></i>) |
189 <b>getName</b>(<i></i>) |
190 <p> |
190 <p> |
191 Method to retrieve the item name. |
191 Public method to retrieve the item name. |
192 </p><dl> |
192 </p><dl> |
193 <dt>Returns:</dt> |
193 <dt>Returns:</dt> |
194 <dd> |
194 <dd> |
195 item name (string) |
195 item name (string) |
196 </dd> |
196 </dd> |
197 </dl><a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a> |
197 </dl><a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a> |
198 <h4>UMLItem.itemChange</h4> |
198 <h4>UMLItem.itemChange</h4> |
199 <b>itemChange</b>(<i>change, value</i>) |
199 <b>itemChange</b>(<i>change, value</i>) |
200 <p> |
200 <p> |
201 Protected method called when an items state changes. |
201 Public method called when an items state changes. |
202 </p><dl> |
202 </p><dl> |
203 <dt><i>change</i></dt> |
203 <dt><i>change</i></dt> |
204 <dd> |
204 <dd> |
205 the item's change (QGraphicsItem.GraphicsItemChange) |
205 the item's change (QGraphicsItem.GraphicsItemChange) |
206 </dd><dt><i>value</i></dt> |
206 </dd><dt><i>value</i></dt> |
214 </dd> |
214 </dd> |
215 </dl><a NAME="UMLItem.moveBy" ID="UMLItem.moveBy"></a> |
215 </dl><a NAME="UMLItem.moveBy" ID="UMLItem.moveBy"></a> |
216 <h4>UMLItem.moveBy</h4> |
216 <h4>UMLItem.moveBy</h4> |
217 <b>moveBy</b>(<i>dx, dy</i>) |
217 <b>moveBy</b>(<i>dx, dy</i>) |
218 <p> |
218 <p> |
219 Overriden method to move the widget relative. |
219 Public overriden method to move the widget relative. |
220 </p><dl> |
220 </p><dl> |
221 <dt><i>dx</i></dt> |
221 <dt><i>dx</i></dt> |
222 <dd> |
222 <dd> |
223 relative movement in x-direction (float) |
223 relative movement in x-direction (float) |
224 </dd><dt><i>dy</i></dt> |
224 </dd><dt><i>dy</i></dt> |
261 </dd> |
261 </dd> |
262 </dl><a NAME="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a> |
262 </dl><a NAME="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a> |
263 <h4>UMLItem.removeAssociation</h4> |
263 <h4>UMLItem.removeAssociation</h4> |
264 <b>removeAssociation</b>(<i>assoc</i>) |
264 <b>removeAssociation</b>(<i>assoc</i>) |
265 <p> |
265 <p> |
266 Method to remove an association to this widget. |
266 Public method to remove an association to this widget. |
267 </p><dl> |
267 </p><dl> |
268 <dt><i>assoc</i></dt> |
268 <dt><i>assoc</i></dt> |
269 <dd> |
269 <dd> |
270 association to be removed (AssociationWidget) |
270 association to be removed (AssociationWidget) |
271 </dd> |
271 </dd> |
272 </dl><a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a> |
272 </dl><a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a> |
273 <h4>UMLItem.removeAssociations</h4> |
273 <h4>UMLItem.removeAssociations</h4> |
274 <b>removeAssociations</b>(<i></i>) |
274 <b>removeAssociations</b>(<i></i>) |
275 <p> |
275 <p> |
276 Method to remove all associations of this widget. |
276 Public method to remove all associations of this widget. |
277 </p><a NAME="UMLItem.setId" ID="UMLItem.setId"></a> |
277 </p><a NAME="UMLItem.setId" ID="UMLItem.setId"></a> |
278 <h4>UMLItem.setId</h4> |
278 <h4>UMLItem.setId</h4> |
279 <b>setId</b>(<i>id</i>) |
279 <b>setId</b>(<i>id</i>) |
280 <p> |
280 <p> |
281 Public method to assign an ID to the item. |
281 Public method to assign an ID to the item. |
286 </dd> |
286 </dd> |
287 </dl><a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a> |
287 </dl><a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a> |
288 <h4>UMLItem.setPos</h4> |
288 <h4>UMLItem.setPos</h4> |
289 <b>setPos</b>(<i>x, y</i>) |
289 <b>setPos</b>(<i>x, y</i>) |
290 <p> |
290 <p> |
291 Overriden method to set the items position. |
291 Public overriden method to set the items position. |
292 </p><dl> |
292 </p><dl> |
293 <dt><i>x</i></dt> |
293 <dt><i>x</i></dt> |
294 <dd> |
294 <dd> |
295 absolute x-position (float) |
295 absolute x-position (float) |
296 </dd><dt><i>y</i></dt> |
296 </dd><dt><i>y</i></dt> |
333 <tr> |
333 <tr> |
334 <td><a href="#UMLModel.__init__">UMLModel</a></td> |
334 <td><a href="#UMLModel.__init__">UMLModel</a></td> |
335 <td>Constructor</td> |
335 <td>Constructor</td> |
336 </tr><tr> |
336 </tr><tr> |
337 <td><a href="#UMLModel.getName">getName</a></td> |
337 <td><a href="#UMLModel.getName">getName</a></td> |
338 <td>Method to retrieve the model name.</td> |
338 <td>Public method to retrieve the model name.</td> |
339 </tr> |
339 </tr> |
340 </table> |
340 </table> |
341 <h3>Static Methods</h3> |
341 <h3>Static Methods</h3> |
342 <table> |
342 <table> |
343 <tr><td>None</td></tr> |
343 <tr><td>None</td></tr> |