54 <table> |
54 <table> |
55 <tr><td>None</td></tr> |
55 <tr><td>None</td></tr> |
56 </table> |
56 </table> |
57 <h3>Class Methods</h3> |
57 <h3>Class Methods</h3> |
58 <table> |
58 <table> |
59 <tr><td>None</td></tr> |
59 <tr> |
|
60 <td><a href="#AssociationItem.parseAssociationItemDataString">parseAssociationItemDataString</a></td> |
|
61 <td>Class method to parse the given persistence data.</td> |
|
62 </tr> |
60 </table> |
63 </table> |
61 <h3>Methods</h3> |
64 <h3>Methods</h3> |
62 <table> |
65 <table> |
63 <tr> |
66 <tr> |
64 <td><a href="#AssociationItem.__init__">AssociationItem</a></td> |
67 <td><a href="#AssociationItem.__init__">AssociationItem</a></td> |
86 <td>Private method to map item's rectangle to this item's coordinate system.</td> |
89 <td>Private method to map item's rectangle to this item's coordinate system.</td> |
87 </tr><tr> |
90 </tr><tr> |
88 <td><a href="#AssociationItem.__updateEndPoint">__updateEndPoint</a></td> |
91 <td><a href="#AssociationItem.__updateEndPoint">__updateEndPoint</a></td> |
89 <td>Private method to update an endpoint.</td> |
92 <td>Private method to update an endpoint.</td> |
90 </tr><tr> |
93 </tr><tr> |
|
94 <td><a href="#AssociationItem.buildAssociationItemDataString">buildAssociationItemDataString</a></td> |
|
95 <td>Public method to build a string to persist the specific item data.</td> |
|
96 </tr><tr> |
91 <td><a href="#AssociationItem.unassociate">unassociate</a></td> |
97 <td><a href="#AssociationItem.unassociate">unassociate</a></td> |
92 <td>Public method to unassociate from the widgets.</td> |
98 <td>Public method to unassociate from the widgets.</td> |
93 </tr><tr> |
99 </tr><tr> |
94 <td><a href="#AssociationItem.widgetMoved">widgetMoved</a></td> |
100 <td><a href="#AssociationItem.widgetMoved">widgetMoved</a></td> |
95 <td>Public method to recalculate the association after a widget was moved.</td> |
101 <td>Public method to recalculate the association after a widget was moved.</td> |
97 </table> |
103 </table> |
98 <h3>Static Methods</h3> |
104 <h3>Static Methods</h3> |
99 <table> |
105 <table> |
100 <tr><td>None</td></tr> |
106 <tr><td>None</td></tr> |
101 </table> |
107 </table> |
102 <a NAME="AssociationItem.__init__" ID="AssociationItem.__init__"></a> |
108 <a NAME="AssociationItem.parseAssociationItemDataString" ID="AssociationItem.parseAssociationItemDataString"></a> |
|
109 <h4>AssociationItem.parseAssociationItemDataString (class method)</h4> |
|
110 <b>parseAssociationItemDataString</b>(<i>data</i>) |
|
111 <p> |
|
112 Class method to parse the given persistence data. |
|
113 </p><dl> |
|
114 <dt><i>data</i></dt> |
|
115 <dd> |
|
116 persisted data to be parsed (string) |
|
117 </dd> |
|
118 </dl><dl> |
|
119 <dt>Returns:</dt> |
|
120 <dd> |
|
121 tuple with the IDs of the source and destination items, |
|
122 the association type and a flag indicating to associate from top |
|
123 to bottom (integer, integer, integer, boolean) |
|
124 </dd> |
|
125 </dl><a NAME="AssociationItem.__init__" ID="AssociationItem.__init__"></a> |
103 <h4>AssociationItem (Constructor)</h4> |
126 <h4>AssociationItem (Constructor)</h4> |
104 <b>AssociationItem</b>(<i>itemA, itemB, type=Normal, topToBottom=False, parent=None</i>) |
127 <b>AssociationItem</b>(<i>itemA, itemB, type=Normal, topToBottom=False, parent=None</i>) |
105 <p> |
128 <p> |
106 Constructor |
129 Constructor |
107 </p><dl> |
130 </p><dl> |
298 the region for the endpoint (integer) |
321 the region for the endpoint (integer) |
299 </dd><dt><i>isWidgetA</i></dt> |
322 </dd><dt><i>isWidgetA</i></dt> |
300 <dd> |
323 <dd> |
301 flag indicating update for itemA is done (boolean) |
324 flag indicating update for itemA is done (boolean) |
302 </dd> |
325 </dd> |
|
326 </dl><a NAME="AssociationItem.buildAssociationItemDataString" ID="AssociationItem.buildAssociationItemDataString"></a> |
|
327 <h4>AssociationItem.buildAssociationItemDataString</h4> |
|
328 <b>buildAssociationItemDataString</b>(<i></i>) |
|
329 <p> |
|
330 Public method to build a string to persist the specific item data. |
|
331 </p><p> |
|
332 This string should be built like "attribute=value" with pairs separated |
|
333 by ", ". value must not contain ", " or newlines. |
|
334 </p><dl> |
|
335 <dt>Returns:</dt> |
|
336 <dd> |
|
337 persistence data (string) |
|
338 </dd> |
303 </dl><a NAME="AssociationItem.unassociate" ID="AssociationItem.unassociate"></a> |
339 </dl><a NAME="AssociationItem.unassociate" ID="AssociationItem.unassociate"></a> |
304 <h4>AssociationItem.unassociate</h4> |
340 <h4>AssociationItem.unassociate</h4> |
305 <b>unassociate</b>(<i></i>) |
341 <b>unassociate</b>(<i></i>) |
306 <p> |
342 <p> |
307 Public method to unassociate from the widgets. |
343 Public method to unassociate from the widgets. |