eric6/Documentation/Source/eric6.Graphics.UMLItem.html

changeset 8296
14f33eededf7
parent 8294
cb4e5bbf3a2c
equal deleted inserted replaced
8295:3f5e8b0a338e 8296:14f33eededf7
64 <tr><td>ItemType</td></tr> 64 <tr><td>ItemType</td></tr>
65 </table> 65 </table>
66 <h3>Class Methods</h3> 66 <h3>Class Methods</h3>
67 67
68 <table> 68 <table>
69 <tr><td>None</td></tr> 69
70 <tr>
71 <td><a href="#UMLItem.fromDict">fromDict</a></td>
72 <td>Class method to create a generic UML item from persisted data.</td>
73 </tr>
70 </table> 74 </table>
71 <h3>Methods</h3> 75 <h3>Methods</h3>
72 76
73 <table> 77 <table>
74 78
145 149
146 <table> 150 <table>
147 <tr><td>None</td></tr> 151 <tr><td>None</td></tr>
148 </table> 152 </table>
149 153
154 <a NAME="UMLItem.fromDict" ID="UMLItem.fromDict"></a>
155 <h4>UMLItem.fromDict (class method)</h4>
156 <b>fromDict</b>(<i>data, colors=None</i>)
157
158 <p>
159 Class method to create a generic UML item from persisted data.
160 </p>
161 <dl>
162
163 <dt><i>data</i> (dict)</dt>
164 <dd>
165 dictionary containing the persisted data as generated
166 by toDict()
167 </dd>
168 <dt><i>colors</i> (tuple of (QColor, QColor))</dt>
169 <dd>
170 tuple containing the foreground and background colors
171 </dd>
172 </dl>
173 <dl>
174 <dt>Return:</dt>
175 <dd>
176 created UML item
177 </dd>
178 </dl>
179 <dl>
180 <dt>Return Type:</dt>
181 <dd>
182 UMLItem
183 </dd>
184 </dl>
150 <a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a> 185 <a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a>
151 <h4>UMLItem (Constructor)</h4> 186 <h4>UMLItem (Constructor)</h4>
152 <b>UMLItem</b>(<i>model=None, x=0, y=0, rounded=False, colors=None, parent=None</i>) 187 <b>UMLItem</b>(<i>model=None, x=0, y=0, rounded=False, colors=None, parent=None</i>)
153 188
154 <p> 189 <p>

eric ide

mercurial