Documentation/Source/eric5.Graphics.UMLItem.html

changeset 2031
c36c2eb62a75
parent 1229
a8207dc73672
child 2033
4b99609f6a87
equal deleted inserted replaced
2030:db11a2fe9bbc 2031:c36c2eb62a75
65 <td>Method to add an association to this widget.</td> 65 <td>Method to add an association to this widget.</td>
66 </tr><tr> 66 </tr><tr>
67 <td><a href="#UMLItem.adjustAssociations">adjustAssociations</a></td> 67 <td><a href="#UMLItem.adjustAssociations">adjustAssociations</a></td>
68 <td>Method to adjust the associations to widget movements.</td> 68 <td>Method to adjust the associations to widget movements.</td>
69 </tr><tr> 69 </tr><tr>
70 <td><a href="#UMLItem.buildItemDataString">buildItemDataString</a></td>
71 <td>Public method to build a string to persist the specific item data.</td>
72 </tr><tr>
73 <td><a href="#UMLItem.getId">getId</a></td>
74 <td>Public method to get the item ID.</td>
75 </tr><tr>
70 <td><a href="#UMLItem.itemChange">itemChange</a></td> 76 <td><a href="#UMLItem.itemChange">itemChange</a></td>
71 <td>Protected method called when an items state changes.</td> 77 <td>Protected method called when an items state changes.</td>
72 </tr><tr> 78 </tr><tr>
73 <td><a href="#UMLItem.moveBy">moveBy</a></td> 79 <td><a href="#UMLItem.moveBy">moveBy</a></td>
74 <td>Overriden method to move the widget relative.</td> 80 <td>Overriden method to move the widget relative.</td>
75 </tr><tr> 81 </tr><tr>
76 <td><a href="#UMLItem.paint">paint</a></td> 82 <td><a href="#UMLItem.paint">paint</a></td>
77 <td>Public method to paint the item in local coordinates.</td> 83 <td>Public method to paint the item in local coordinates.</td>
78 </tr><tr> 84 </tr><tr>
85 <td><a href="#UMLItem.parseItemDataString">parseItemDataString</a></td>
86 <td>Public method to parse the given persistence data.</td>
87 </tr><tr>
79 <td><a href="#UMLItem.removeAssociation">removeAssociation</a></td> 88 <td><a href="#UMLItem.removeAssociation">removeAssociation</a></td>
80 <td>Method to remove an association to this widget.</td> 89 <td>Method to remove an association to this widget.</td>
81 </tr><tr> 90 </tr><tr>
82 <td><a href="#UMLItem.removeAssociations">removeAssociations</a></td> 91 <td><a href="#UMLItem.removeAssociations">removeAssociations</a></td>
83 <td>Method to remove all associations of this widget.</td> 92 <td>Method to remove all associations of this widget.</td>
93 </tr><tr>
94 <td><a href="#UMLItem.setId">setId</a></td>
95 <td>Public method to assign an ID to the item.</td>
84 </tr><tr> 96 </tr><tr>
85 <td><a href="#UMLItem.setPos">setPos</a></td> 97 <td><a href="#UMLItem.setPos">setPos</a></td>
86 <td>Overriden method to set the items position.</td> 98 <td>Overriden method to set the items position.</td>
87 </tr><tr> 99 </tr><tr>
88 <td><a href="#UMLItem.setSize">setSize</a></td> 100 <td><a href="#UMLItem.setSize">setSize</a></td>
125 </dl><a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a> 137 </dl><a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a>
126 <h4>UMLItem.adjustAssociations</h4> 138 <h4>UMLItem.adjustAssociations</h4>
127 <b>adjustAssociations</b>(<i></i>) 139 <b>adjustAssociations</b>(<i></i>)
128 <p> 140 <p>
129 Method to adjust the associations to widget movements. 141 Method to adjust the associations to widget movements.
130 </p><a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a> 142 </p><a NAME="UMLItem.buildItemDataString" ID="UMLItem.buildItemDataString"></a>
143 <h4>UMLItem.buildItemDataString</h4>
144 <b>buildItemDataString</b>(<i></i>)
145 <p>
146 Public method to build a string to persist the specific item data.
147 </p><p>
148 This string must start with ", " and should be built like
149 "attribute=value" with pairs separated by ", ". value must not contain ", "
150 or newlines.
151 </p><dl>
152 <dt>Returns:</dt>
153 <dd>
154 persistence data (string)
155 </dd>
156 </dl><a NAME="UMLItem.getId" ID="UMLItem.getId"></a>
157 <h4>UMLItem.getId</h4>
158 <b>getId</b>(<i></i>)
159 <p>
160 Public method to get the item ID.
161 </p><dl>
162 <dt>Returns:</dt>
163 <dd>
164 ID of the item (integer)
165 </dd>
166 </dl><a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a>
131 <h4>UMLItem.itemChange</h4> 167 <h4>UMLItem.itemChange</h4>
132 <b>itemChange</b>(<i>change, value</i>) 168 <b>itemChange</b>(<i>change, value</i>)
133 <p> 169 <p>
134 Protected method called when an items state changes. 170 Protected method called when an items state changes.
135 </p><dl> 171 </p><dl>
172 style options (QStyleOptionGraphicsItem) 208 style options (QStyleOptionGraphicsItem)
173 </dd><dt><i>widget</i></dt> 209 </dd><dt><i>widget</i></dt>
174 <dd> 210 <dd>
175 optional reference to the widget painted on (QWidget) 211 optional reference to the widget painted on (QWidget)
176 </dd> 212 </dd>
213 </dl><a NAME="UMLItem.parseItemDataString" ID="UMLItem.parseItemDataString"></a>
214 <h4>UMLItem.parseItemDataString</h4>
215 <b>parseItemDataString</b>(<i>data</i>)
216 <p>
217 Public method to parse the given persistence data.
218 </p><dl>
219 <dt><i>data</i></dt>
220 <dd>
221 persisted data to be parsed (string)
222 </dd>
177 </dl><a NAME="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a> 223 </dl><a NAME="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a>
178 <h4>UMLItem.removeAssociation</h4> 224 <h4>UMLItem.removeAssociation</h4>
179 <b>removeAssociation</b>(<i>assoc</i>) 225 <b>removeAssociation</b>(<i>assoc</i>)
180 <p> 226 <p>
181 Method to remove an association to this widget. 227 Method to remove an association to this widget.
187 </dl><a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a> 233 </dl><a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a>
188 <h4>UMLItem.removeAssociations</h4> 234 <h4>UMLItem.removeAssociations</h4>
189 <b>removeAssociations</b>(<i></i>) 235 <b>removeAssociations</b>(<i></i>)
190 <p> 236 <p>
191 Method to remove all associations of this widget. 237 Method to remove all associations of this widget.
192 </p><a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a> 238 </p><a NAME="UMLItem.setId" ID="UMLItem.setId"></a>
239 <h4>UMLItem.setId</h4>
240 <b>setId</b>(<i>id</i>)
241 <p>
242 Public method to assign an ID to the item.
243 </p><dl>
244 <dt><i>id</i></dt>
245 <dd>
246 assigned ID (integer)
247 </dd>
248 </dl><a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a>
193 <h4>UMLItem.setPos</h4> 249 <h4>UMLItem.setPos</h4>
194 <b>setPos</b>(<i>x, y</i>) 250 <b>setPos</b>(<i>x, y</i>)
195 <p> 251 <p>
196 Overriden method to set the items position. 252 Overriden method to set the items position.
197 </p><dl> 253 </p><dl>

eric ide

mercurial